• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is codebase required

 
Garry Kalra
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is codebase required to be specified if i don't use dynamic stub downloading.
Pls guide me as i am having trouble running a server when it was packaged in a jar file.
Garry
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think so. I didn't use Codebase, and I also did not use Dynamic Loading.
Mark
 
Garry Kalra
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also think that way. Maybe if i don't use dynamic stub loading and package all the stub files with the client, then i need to start rmiregistry after setting the classpath to include the files where the stubs are located or the server won't bind.
am i right on this, beacuse it is working this way only on a win95 system.
waiting for your response
Garry
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Garry Kalra:
then i need to start rmiregistry after setting the classpath to include the files where the stubs are located or the server won't bind.
am i right on this, beacuse it is working this way only on a win95 system.
waiting for your response
Garry

Not quite sure what you mean by this. But the stub and skeleton's are included with both the server and the client. and only the server starts RMIRegistry, starting RMIRegistry has nothing to do with the classpath.
When you start your server, your classpath is set, and you create a new instance of the Remote object, then bind it into the Registry. But this is in the server code. And I also would say the the classes and the stubs would all be in the same directory of class files anyway which is in your server's package.
Hope that clears things
 
Garry Kalra
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But if i start my rmiregistry from a shell where the classpath is not set, then the server is not able to start and it throws an exception saying that the stubs were not found.
The stubs are in the same package as suncertify.server
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic