File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes RMI-IIOP Pass By reference Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI-IIOP Pass By reference" Watch "RMI-IIOP Pass By reference" New topic

RMI-IIOP Pass By reference


Joined: Dec 19, 2007
Posts: 1
Hi , i am new to this forum.Got some doubts to clear!!!

In RMI-IIOP one can pass Method parameters by Reference which results in the Client generating and sending a stub for the Object parameter to the remote server.Correct me!!! if i am wrong here ,[the server then calls the stub method to connect back to the client thereby Modifying the Objects State(In this Whole process the client Also creates a skeleton to complement the stub that it sent previously to the server ,so that the server can Invoke methods on the referenced Client Object).]

Now!! What is the result if the Object which is Passed by reference (for which a stub and skeleton is created on the client side), contains a method which inturn takes the Object of the Same Class or of a different Class as a Parameter which is marked to be passed by reference i.e[which implements the 'Remote' Interface] ?

Would it not create an Ininite loop of 'Stub & Skeleton' Creation ???
[ December 19, 2007: Message edited by: Lathish ]
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
Welcome to JavaRanch. I hope you can find an answer to your question here. Unfortunately, I myself don't know about RMI-IIOP.

When you registered, you seem not to have spotted the JavaRanch name policy. You are required to use real(-sounding) first and last names, and "GCoolJnx" does not meet this requirement. Please edit your profile and choose a real name. This is NOT OPTIONAL and non-compliance will be followed-up.

Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
I agree. Here's the link:
subject: RMI-IIOP Pass By reference
It's not a secret anymore!