Re: Solution with RMI?
- From: EJP <esmond.not.pitt@xxxxxxxxxxxxxxx>
- Date: Tue, 14 Nov 2006 23:52:19 GMT
nullstring wrote:
Does anybody has experience with Remote Method Invocation?
Yes
Does it run stable??
Yes although not 100% perfect.
If I understood what right, the tcp-connection beneath is holded the
whole time!
No. It is used, then put into a connection pool, where it times out after 15 seconds if it isn't used again. You can control the timeout.
In this case I just make a RMI-Object when I need it, otherwise I
delete the rmi-object from the heap of the client!
The RMI object is in the heap of the server. I don't understand the question.
But!! Whats about the Distributed Garbage Collector, I heard about
problem with it!
It can misfire (trigger prematurely) if there are routers in between the server and the client which go up and down for minutes at a time. But you can prevent DGC happening at all by holding static references to your remote objects in the server JVMs.
(If I just make a RMI-Object when I need it and destroy it after that I
have many object, which should be deleted)
I don't know what you mean by RMI-Object if you're talking about something in the client heap. If you mean a server in a server JVM, yes you can create and destroy them as often as you like. I have seen a production system with 50,000 remote objects.
If you have high-availability requirements I believe you should look at RMI/IIOP, which is much the same thing but using a CORBA ORB as the runtime system instead of the RMI runtime system.
.
- References:
- Solution with RMI?
- From: nullstring
- Solution with RMI?
- Prev by Date: SOAP with Attachment
- Next by Date: Re: How to receive events from a jcombobox in an internal Jpanel ??
- Previous by thread: Re: Solution with RMI?
- Next by thread: JWS app does not update.
- Index(es):
Relevant Pages
|