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.

RMI without registry

Thread view: 
jena.alok@gmail.com - 27 Jan 2006 11:18 GMT
Hi,
I want to create a RMI based client server without using the registry.I
am using the database as a storage instead of the registry.

Here is what i am doing

a) The server extends UnicastRemoteObject .I bring-up the server and
writes it's RemoteRef to the database .
b) The client comes up and reads the RemoteRef object from the
database.It constructs the Stub and invokes the remote method on the
stub .

I get the unknown source method error .Why the client is not able to
contact the server and load the server code ....

Thanks,
AJ
EJP - 07 Feb 2006 04:31 GMT
> Hi,
> I want to create a RMI based client server without using the registry.I
[quoted text clipped - 10 lines]
> I get the unknown source method error .Why the client is not able to
> contact the server and load the server code ....

You should be writing the entire stub, not just the RemoteRef. Simpler,
better. You understand that the stub & reference are not persistent,
i.e. they only apply to that invocation of the server? If you want a
persistent stub use Activation.


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.