Newbie to ORBit2 threading



Hi,

Sorry for such a basic question, but, I would like to write a CORBA server 
(using orbit2), so that when a user logs in, a separate thread is created for 
that user's session. At the moment the apploications being run are not 
trivial which causes long delays for multiple users.

So far I've set up a simple object factory "Session_Manager" which creates an 
"Applications" object, but I need to know where to go from here. 

How do I tell the server to fork off a new thread when the 
Session_Manager_login method is called?




The idl file looks a little like this...
-----------------------------------------------------------------
interface Applications{
	void do_application_stuff(out string result);
	void logout();
};


interface Session_Manager{
 		Applications login(in string login,in string password);	
	
};	
-------------------------------------------------------------------




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]