Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

classpath for rmiregistry

Thread view: 
cnwy@263.net - 08 Feb 2006 01:52 GMT
Hi,
   I have started rmiregistry at 1099,but can't bind the object with
java.rmi.UnmarshalException,And bind successfully Only after I set the
classpath and restart rmiregistry service.
   So I want to set the classpath dynamic than restart the service.
   Any suggestions?

wy.
Owen Jacobson - 08 Feb 2006 03:34 GMT
On Tue, 07 Feb 2006 17:52:56 -0800, cnwy wrote:

> Hi,
>     I have started rmiregistry at 1099,but can't bind the object with
[quoted text clipped - 4 lines]
>
> wy.

When starting the "server" JVM that exports the remote objects, set the
java.rmi.server.codebase system property to something both rmiregistry and
client applications can resolve.  Eg.,

rmiregistry &
java -Djava.rmi.server.codebase=http://example.com/classes/stubs.jar -jar
server.jar

Ensure that the server's security policy is set to something sensible, too.

-Owen


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.