• Post Reply Bookmark Topic Watch Topic
  • New Topic

starting rmiregistry  RSS feed

 
Ariffin Ahmad
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there any way that enable me to check either rmiregistry is available or not, and if not i can start it from my java code?
i heard from somewhere, that i can use jndi instead of rmiregistery, and also know that tomcat 4.0.2 support tthis jndi. is this true..
and, if true, how can i use it....
 
gautam shah
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ariffin Ahmad:
is there any way that enable me to check either rmiregistry is available or not, and if not i can start it from my java code?
i heard from somewhere, that i can use jndi instead of rmiregistery, and also know that tomcat 4.0.2 support tthis jndi. is this true..
and, if true, how can i use it....

public static Registry getRegistry(int port)
throws RemoteException
Returns a reference to the the remote object Registry for the local host on the specified port.
Parameters:
port - port on which the registry accepts requests
Returns:
reference (a stub) to the remote object registry
Throws:
RemoteException - if the reference could not be created
Since:
JDK1.1
to know how to use jndi for the registry point of view go through the docs provided by the application server provider.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!