Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

RMI server lifecycle/threading

Thread view: 
Delta-Z - 30 Jun 2007 10:02 GMT
Hi everybody
  I am looking for a good reference on how the RMI remote object
runtime is managed:

  *) Is it possible to register another object from within a remote
call (server side)? Is it possible to unbind an object from within a
remote call? Does the main process exit automatically when all the
objects it bound are unbind?
  *) What threads/processes are running to support remote calls? How
does the call thread pool operate?

  I don't want to see any actual code, just to understand exactly
what is happening. If you can recommend a book, it would be just as
good!

Thanks a lot
Dmitry
Esmond Pitt - 01 Jul 2007 09:41 GMT
>    *) Is it possible to register another object from within a remote
> call (server side)?

Yes.

> Is it possible to unbind an object from within a
> remote call?

Yes.

> Does the main process exit automatically when all the
> objects it bound are unbind?

No. It exits when all the required DGC has taken place. unbinds() are a
necessary precondition to this.

You could have answered these three questions for yourself with a little
testing.

>    *) What threads/processes are running to support remote calls? How
> does the call thread pool operate?

Unspecified, but the one thing you *cannot* assume is that it's
single-threaded. In practice in Sun's implementation there is a
client-side connection pool, which causes a server-side thread pool to
exist, one thread per pooled connection. IBM's implementation uses a
server-side thread pool in addition to that so thread creation is
conserved even more.

>    I don't want to see any actual code, just to understand exactly
> what is happening. If you can recommend a book, it would be just as
> good!

<plug>
http://www.telekinesis.com.au/wipv3_6/java.rmi.A21 ;-)
</plug>
I wrote it.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.