Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7189399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:17:38+00:00 2026-05-28T19:17:38+00:00

I have created a CORBA Server and two clients – Client1 and Client2 ,

  • 0

I have created a CORBA Server and two clients – Client1 and Client2, the server is implemented using Java which are connecting to this Server. When the client(s) connect to the server, the server has to maintain the connection state, i.e., connected = true or false

For instance, there are two methods in the server :

  1. connect()
  2. disconnect()

When a client calls the connect() method, this connected state should be saved at the Server for this Client1. If the same (connected) client calls connect() method again, then the Server should return an error.
Similarly, if the Client2 calls disconnect() before connecting, the Server has to detect that Client2 has not connected yet and return an error

My question is how to identify the CORBA client uniquely ?

Any ideas/suggestions are appreciated. Thanks..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T19:17:39+00:00Added an answer on May 28, 2026 at 7:17 pm

    CORBA does not precisely define the notion of a “client”, because it has a number of meanings for different people:

    • The client’s machine (identified by an IP address)
    • The NIC which the client used to connected to the server (identified by a MAC address)
    • The client’s process (identified by a process ID)
    • The client’s socket for their connection to the server (identified by a file descriptor)
    • The ORB within that process (identified by the ORB identifier which might be passed to ORB::init())
    • The thread within the process making the call (identified by a thread ID)

    Adding to the complexity is the fact that some of these items (especially connection-based identity) cannot be used reliably within CORBA to identify clients or track their lifetime because ORBs are allowed to close idle connections and later re-establish them when activity resumes.

    The best way to deal with this problem is to push the management of client lifetime into your application, and specifically into your IDL. Have the client request a cookie at “connect” time and pass that cookie within each subsequent request:

    interface Foo {
       void connect(out string cookie) throws AlreadyConnected;
       void doWork(in float data, in string cookie) throws NotConnected;
       void disconnect(in string cookie) throws NotConnected;
    };
    

    My IDL syntax might not be perfect, but you’ll get the idea. You should also look into ways to transparently send the cookie without having to affect your IDL using PortableInterceptors and/or Service Contexts.

    Regardless of how you transmit the cookie or session token, your server will have to manage them carefully and purge old ones if necessary. Session cookie management can be a real burden on a service and impede its ability to scale well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created an xPages application which uses a lot of server side javascript
I have created a windows service which is set to start automatically. This service
I have created infopath form library in SharePoint sever2010. I am using Windows server
I have created a custom dialog for Visual Studio Setup Project using the steps
I have created a PHP-script to update a web server that is live inside
I have created a C# class file by using a XSD-file as an input.
I have created a foreign key (in SQL Server) by: alter table company add
Have created a ATL COM project through which I am inserting Menu Items to
have created REST service using servicestack and in post request I have return object
Have created a small two tab app, then subclassed another view controller to create

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.