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 / May 2006

Tip: Looking for answers? Try searching our database.

RMI Question

Thread view: 
Curt Tabor - 17 May 2006 18:01 GMT
I'm a java newbie and I have a question about RMI on Windows.

In COM on Windows, you can create an out of process server that exists
in it's own process and you can call methods on it. Does RMI work this
way? Can I instantiate remote objects of the same class and have each
instance reside in it's own process space?

Thanks,

Curt
Matt Humphrey - 17 May 2006 18:09 GMT
> I'm a java newbie and I have a question about RMI on Windows.
>
> In COM on Windows, you can create an out of process server that exists
> in it's own process and you can call methods on it. Does RMI work this
> way? Can I instantiate remote objects of the same class and have each
> instance reside in it's own process space?

Using RMI you can instantiate remote objects and interact with them
independently to each other or to the services provided by you published or
main services.  It's kind of like each remote object is its own server.
They all reside in the remote JVM that hosts them, so to the extent they
come from the same JVM they are in the same process space.  However, your
client can connect to any number of objects from any locations (including
itself) without being concerned where the actual server is so there is no
need for the objects to be in the same JVM--you can distribute them as you
like.  What are you trying to accomplish by having each object in a separate
process space?

Cheers,
Matt Humphrey  matth@ivizNOSPAM.com http://www.iviz.com/
Curt Tabor - 17 May 2006 18:13 GMT
Thanks! That clears things up and confirms what I thought. I am writing
a vehicle diagnostic system that uses Win32 DLLs to run concurrent
tests and these DLLs must reside in different process spaces or they
cannot be used concurrently. Since the project requires Win32, it looks
like COM out-of-proc servers is the way to go.

Curt
dimitar - 18 May 2006 16:45 GMT
Fowr what it's worth, you can get out-of-process remote objects by using
RMI Activation. What you need to do is to register each instance in its
own ActivationGroup.

Dimitar


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.