Re: help: applet to applet communication

Niclas Hedhman <[email protected]>
Newsgroups gmane.comp.java.sun.rmi
Organization Private
Message-ID <[email protected]>
On Wednesday 08 December 2004 05:19, Eduardo Fernandez Oliver wrote:
> hi
> I am implementing an application where two clients ( applets running in
> different hosts) communicate with each other. Is it possible?
> Can anybody tell me a way to do this?

My good grief; Applets !   Haven't done that this decade :o)

You will first need to establish a fair amount of Permissions for the JVM,
since by default only socket client connection to the host the applet
originated from is allowed.
Secondly, you will need some way to transfer the Stub from one of the clients
to the other, and you have a at least a couple of ways to do that;
1. Run the java.rmi.naming in one the the hosts.
2. Serialize the Stub and transfer its binary either by upload to another
server, by email or some other transport mechansim that the other can pick
up.

But again, most importantly, you need to figure out how to increase the
permissions in the sandbox.


Cheers
Niclas

P.S. Why don't you just run JNLP ?
--
   +------//-------------------+
  / http://www.dpml.net       /
 / http://niclas.hedhman.org /
+------//-------------------+

===========================================================================
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.