Distributed systems
Q: I m researching methods by which one JVM can interact with another JVM,
which is running on the same machine.
I know that there are various network models, which can be applied if a JVM needs
to talk to another one across a network, but in addition to these (which could I guess
be applied to JVMs on the same machine) I wondered if you knew of a system of
JVM communication that requires less system resources, where the JVMs are both
running on the same system.
Answer: CORBA, RMI, HTTP, sockets....
But if you have no TCP/IP stack on your platform, so for Windows it could be
clipboard...
  
by dmitry
Q: I have a question about sending a reference to the object via the socket...
I have a question about sending a reference to the object via the socket. Two threads
are communicating via sockets running on the same machine. I don t need to send
the whole object, but I need to send just
a reference.
Does anyone knows how to do that?
Answer: Reference to an Object? A reference is only valid within the same memory
space! If you want to be able to invoke methods on an object remotely, then you will
need to use a remote technology like RMI, CORBA, or some such.
  
by Bret Hansen
(c)1999, 2000, 2001. JavaFAQ.nu. All rights reserved worldwide.
This document is free for distribution, you can send it to everybody who is interested in Java.
This document can not be changed, either in whole or in part
without the express written permission of the publisher.
All questions please 
mailto:info@javafaq.nu
file:///F|/a_jsite/350_tips/distributed_systems.htm (3 of 3) [2001 07 08 11:24:48]






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java web hosting

 

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved