• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic