aspose file tools
The moose likes Distributed Java and the fly likes How to specify multiple jar files in the codebase while Binding RMI Objects Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "How to specify multiple jar files in the codebase while Binding RMI Objects" Watch "How to specify multiple jar files in the codebase while Binding RMI Objects" New topic
Author

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

shekhar dontula
Greenhorn

Joined: Jan 08, 2004
Posts: 1
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


Shekhar Dontula<br />Software Designer & Lead<br />TransLogic Systems.<br />5th Floor, Amogh Plaza, Greenlands,<br />Hyderabad, AP 500016, India<br />Tel # +91-40-23401795<br />Fax # +91-40-23407943<br />Mobile # +91-98490-44496
Chris Shepherd
Ranch Hand

Joined: Jun 27, 2000
Posts: 286
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to specify multiple jar files in the codebase while Binding RMI Objects
 
Similar Threads
rmiregistry will not bind with codebases not on drive c
RMI from start to finish
problem executing executable jar file
how can i place the .policy file in rmi technology??
RMI and Name Resolution for multiple drives