Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can every client launch diferent methods in the same server

Status
Not open for further replies.

daldaver

Programmer
Dec 6, 2004
2
ES
The problem is: I have a CORBA server with the tipical public methods:
* setparameters()
* doaction()

But what if two clients connect at same time in this sequence:

1. Client 1: setparameters(1);
2. Client 2: setparameters(2);
3. Client 1: doaction();
4. Client 2: doaction();

Both clients executed "doaction" whith parameter 2, however client 1 set a 1 in parameters.

Something similar is happening in my server. In adittion, my "doaction" method is very large, and if it's invoked 2 times, it results in errors.

I suppose the solution could be that every client create a new diferent object in the server, so every client interact with diferent objects, but I don`t know how to do this.

Please help me. Thanks.
David.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top