[omniORB] How to write single threaded hydrid application..

Frederic Prin frederic.prin at silvaco.com
Fri Feb 25 17:07:38 GMT 2005


You can use oneway invocation (but it's not realy reliable!)
Or use the not yet implemented AMI feature ;-) 



-----Original Message-----
From: omniorb-list-bounces at omniorb-support.com
[mailto:omniorb-list-bounces at omniorb-support.com] On Behalf Of Diez B.
Roggisch
Sent: vendredi 25 février 2005 16:32
To: omniorb-list at omniorb-support.com
Subject: Re: [omniORB] How to write single threaded hydrid application..

> You need to instantiate your objects in a POA that has MAIN_THREAD
policy.
> Then, instead of calling ORB::run(), use ORB::work_pending() &
> ORB::perform_work().

Cool. Didn't know that. But it still won't work if client and server
share one 
thread, wouldn't it? Because at least the client  to block. Or are there
some 
tricks to make a method return immediatly and then fetch the result
later?

Diez 

_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list




More information about the omniORB-list mailing list