• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to specify multiple jar files in the codebase while Binding RMI Objects  RSS feed

 
shekhar dontula
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I am facing a problem while Binding RMI Objects into the registry....
we have various jar files which are included in RMI Implementation classes...
while binding the these remote objects into the RMI Registry i need to incluse all these jar files...
how it is passible to specify all these jar files into code base...
here i am using this command for Binding the classes...
java -Djava.rmi.server.codebase=file:/d:/RMIComponents/rmiobjects.jar RMIObjectLoader
here RMIObjectLoader class will load all the RMI Objects into the registry...
but the thing is these RMI objects are using some other jar files apart from rmiobjects.jar which are there in the same directory
so in the codebase i can not include all those jar files....
do you have any idea on this issue...to solve this problem...
i also tryied like this by giving
java -Djava.rmi.server.codebase=file:/d:/RMIComponents/rmiobjects.jar -classpath d:/RMIComponents RMIObjectLoader but it is not working....
if u know the same please update me the same...
my requirement is i wanted to Bind the components which uses multiple jar files
please get back to me if any one knows the solution for this
 
Chris Shepherd
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know if it would work, but you could try leaving off the jar file specifically liek this.

and see if it would pick up the jar files on its own. Seems like I might have gotten that to work before but I can't rememeber
try it out and see if it works.
Chris
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!