Java RMI

Hi
If a client of a Remote Object, does not invoke any methods present in this Remote Object, but just passes it as arguments to remote method calls of othe remote methods.

Should such a remote object (first one) extend java.rmi.remote ????

W
W122498Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

heyhey_Commented:
when you pass arguments to remote object.
1. if the object does not implement java.rmi.Remote, it is serialized and sent to the remote JavaVM. on the remote computer you'll get a copy of the same object.
2. if the object implements java.rmi.Remote, only a remote reference to that object is sent.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
g_senthilkumarCommented:
Hi,
  The Remote interface serves to identify all remote objects. Any object that is a remote object must directly or indirectly implement this interface. Only those methods specified in a remote interface are available remotely.
Implementation classes can implement any number of remote interfaces and can extend other remote implementation classes.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.