Re: - Best method to pass information from client to server?

Gregg Wonderly <[email protected]> Tue, 3 Apr 2007 06:12:55 +0000 (UTC)
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
Do, Soi (Contractor) wrote:
> Hi RMI-Users,
>
> I have an asynchronous server that needs dynamic information from the
> client to perform further computations.
> What is the best method to pass information from client to server using
> RMI?

What I usually do is use a smart proxy to wrap a socket connection into a
listener API.  Thus, the client make be making a method call to send events, but
the underlying implementation can be an ObjectOutputStream instead of individual
method calls.

Gregg Wonderly

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html