File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes RMI - Client Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI - Client Application" Watch "RMI - Client Application" New topic
Author

RMI - Client Application

dk
Greenhorn

Joined: Jul 25, 2001
Posts: 3
do u have any idea if i would like to create a server application invoke a client method in RMI?
can anybody show me some examples bcos i jus started programming using RMI.
Tanks in advance...
Harish Kashyap
Ranch Hand

Joined: Jun 14, 2000
Posts: 118
Your application will consist of two-RMI Servers and two-RMI clients.
its simple
as you do in a simple RMI client-server application
in this case
both client & server will extend UnicastRemoteObject
i.e both will implement some Remote methods hence both will act like RMI Servers for clients.
and both will become clients for each other by invoking Remote Methods on each other.
so both are clients as well as servers.
its like C is a client , B & A are a server
C --------------------->B---------------------->A

here B is Server for C and Client for A
in your case A is C itself.
so write 2 RMI server programs.
& implement client code in both of them.
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
hi,
how about creating an RMI server and first do some kind of login with the client. in this login procedure you pass a reference to the client to the server. then there is no need for to servers, two registrys.
would this work ?
karl
dk
Greenhorn

Joined: Jul 25, 2001
Posts: 3
tanks guy for replying me...
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

"dk"
your name doesn't agree with the javaranch guidelines.
please take a moment and re-register after reviewing
the guidelines at http://www.javaranch.com/name.jsp
thanks for your cooperation.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI - Client Application