This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help needed on Servlet connecting RMI

 
Chandan Phukan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having a peculiar problem..

I have a Server written in RMI and I am able to connect to the RMI server through a servlet provided I have to start the rmiregistry manually. But if I start the rmiregistry programatically I am unable to connect the sevlet to the rmi server.(I use my own port to start the registry)

I have also given grant permission in the catalina.policy file as well as start tomcat with -security option, but its of no use.

One interesting fact is that the same program , if a try to connect the rmi server with a normal client, the code works fine. Like if I try with a console based client it works fine, the client able to connect the rmi server.

I am using AIX box.

any idea,help will be highly appreciated.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How you are doing it programatically? I mean can you show up the code snippet?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic