Re: Solution with RMI?



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.
.



Relevant Pages

  • Re: Synchronized objects
    ... > proxies to remote objects and the appropriate one to use depends on how ... > plan to use the object in your clients and on your server. ... > 1) Does every client that connects need to access the same Foo instance ...
    (microsoft.public.dotnet.framework.remoting)
  • Three areas of confusion: instantiating remote objects locally on server side, extending the lifetim
    ... I'm working with remote objects for a client server application. ... Instantiating remote objects locally on the server side. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: .NET Remoting - client development/design-time and run-time requirements
    ... Service on my remote server. ... proxy object and the remote objects aren't instantiated on the server until ... My client is a hybrid ASP/ASP.NET ... remote object to take an additional, optional parameter. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: IP, hostnames and DNS issues
    ... > If the end user is giving you urls, they can be domain style or ip ... They aren't directly giving the server any URLs or similiar, ... see "who" the client is, as in whether it's an IP or hostname. ... it's only during initial creation of remote objects (we create about 10 ...
    (comp.lang.java.programmer)
  • RE: Delegation fails over remoting if user is logged in for too lo
    ... So event after you restart the client program does the user still get the ... If the behavior remains after the client recreate new server ... remote objects, I'm thinking whether the token is cached by the server ...
    (microsoft.public.dotnet.framework)