dcsimg
How to run Corba Client and Server in different machines
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, May 11, 2001 08:51 AM

Hi,

I am working in Visi Broker for Java 4.5

I ran one of the Corba Examples in VisiBroker which is
under /vbroker/examples/basic/bank_agent

The programs are working fine.. But if i have to
run the same example with the client and server in
different machines.....What are the class file to be
kept in Client & Server side..

And how to send the request from the Remote Client to the Server.

Please reply.

Regards,
Vidyasagar

Re: How to run Corba Client and Server in different machines

Posted By:   sandhya_s  
Posted On:   Friday, August 17, 2001 03:37 AM

Simple. Run the Bank.idl file through idl2java.
Remember, you still have only the interfaces and the stubs and skeletons.
Now compile all the java files in the 'Bank' folder.
Copy these class files into your client machine.
On the server, you will have to write the implementation and the server program.
Run the OSAgent on any machine on the network.
Start the server and the client using vbj.
Thats it !

Re: How to run Corba Client and Server in different machines

Posted By:   Arvind_Sama  
Posted On:   Monday, July 30, 2001 05:07 AM

Buddy I think I can help you out.

I have working experience on CORBA applications using C++ only but I can give you some hints.



Use :



orb->string_to_object("corbaloc:iiop:xyz.com:3075/NameService");




here xyz.com is your server host IP address
and
"3075" { could be different in your case }is the default port.


The above thing will give give access to the initial naming context of the server. The rest you must be knowing.


Hope this helps.
About | Sitemap | Contact