• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to run it..........??  RSS feed

 
pardha saradhi
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I developed a small application that is sateless session bean adding two numbers. It is working fine at my system now.
Now I want to run the same client application from different system in our network. Then my system will become server.
so how do I create the client environment in onthr system making my system as server.
Please help me thankning you in advance
Saradhi
 
Tim Holloway
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You point the client's JNDI lookup of the EJB to the server RMI registry. That should be a matter of specifying the proper host (and, if needed port) in the Properties object used to create the initial context. The only real difference in the code should be that instead of referring to "localhost", you now refer to a different machine.
That's assuming there are no firewalls in the way, of course.
 
Kishore Dandu
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saradhi,
Is your last name really Java.
Just curious.
Kishore.
 
pardha saradhi
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No my last name is not java. I keep simalr type of logins for all sites.
for eg. asp site "saradhiasp", .NET saradhiNET
I followed similar naming convention.
Thank u
Saradhi
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please note that your name is a violation of the JavaRanch naming standards. You must use your real first name - space - your real last name as your display name.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!