The Artima Developer Community
Sponsored Link

Jini Forum
Codebase problem in Jini

1 reply on 1 page. Most recent reply: Feb 25, 2002 4:59 PM by Frank Sommers

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic    
Flat View: This topic has 1 reply on 1 page
megha

Posts: 2
Nickname: megha
Registered: Feb, 2002

Codebase problem in Jini Posted: Feb 25, 2002 1:27 AM
Reply to this message Reply
Advertisement
If the server whihc has the service to be registered at the lookup, odesnt have a web server, I make
use of the http server provided by Jini.

In that case... where does the codebase lie???


Frank Sommers

Posts: 2642
Nickname: fsommers
Registered: Jan, 2002

Re: Codebase problem in Jini Posted: Feb 25, 2002 4:59 PM
Reply to this message Reply
The codebase is where a VM loads classes from. For example, it would be a URL that offers up classes for downloading.

You can start the JSK-provided HTTP server thus:

java -jar $JINI_HOME/lib/tools jar -port 2002 -dir /export/home/jiniclasses -verbose

Now, put the classes you want the client to download into /export/home/jiniclasses (observing correct package hierarchy, of course).

Then, when you start your service, pass into the VM an enviroment variable thus:

... -Djava.rmi.server.codebase=http://HOSTNAME:2002/ ...

Note (a) that HOSTNAME should *not* be localhost, and (b) the trailing slash at the end of the URL. You can use a web browser to check if you can download classes from that URL.

Hope this helps.

Flat View: This topic has 1 reply on 1 page
Topic: What contains the announcement packet sent by a service ? Previous Topic    

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use