[omniORB] Client/Server in one application

Luke Deller ldeller at xplantechnology.com
Thu Apr 27 11:15:47 BST 2006


Hi Ramkumar,

On Thu, 2006-04-27 at 06:14 +1000, Ramkumar Nagabhushanam wrote:
> I am writing a test application which has to be able to act as either a 
> Corba client or a corba server to test another application which runs as a 
> Corba server/client. During development I would like to be able to start a 
> Corba server and a corba client in the same application each running in its 
> Own thread. This test application will run under windows. Is it technically 
> Possible to do this ?

You can certainly write a test application which operates as both a
CORBA client and a CORBA server.  There is no need to create a separate
thread for the server, since the ORB creates the necessary threads to
handle incoming calls anyway.

(Note that orb->run() doesn't do anything but wait for the ORB to be
shutdown, so you don't actually need to devote a thread to calling it).

Regards,
Luke.

**********************************************************************************************

Important Note
This email (including any attachments) contains information which is
confidential and may be subject to legal privilege.  If you are not
the intended recipient you must not use, distribute or copy this
email.  If you have received this email in error please notify the
sender immediately and delete this email. Any views expressed in this
email are not necessarily the views of XPlan Technology.

It is the duty of the recipient to virus scan and otherwise test the
information provided before loading onto any computer system.
Xplan Technology does not warrant that the
information is free of a virus or any other defect or error.
**********************************************************************************************




More information about the omniORB-list mailing list