How to Get the ObjectID?

Alex Co <[email protected]> Mon, 25 May 2009 07:11:18 -0600
Newsgroups gmane.comp.java.sun.rmi
Message-ID <LISTSERV%[email protected]>
Hi all, me again (RMI server and a custom rmi client)

I am trying to invoke a simple RMI method on a RMI server but even lookin=
g to=20
the source code of the SDK it is being very hard for me to implement it.

I can already stablish a socket to the RMI server and exhange with it the=
 initial=20
handshake. everything is ok. Next I want to invoke the method void=20
HelloWorld(void) on the RMI server.=20
First I send the CALL command: 0x50
then I need to send the ObjectID
and after that, the method number (operation index) and the // stub/skele=
ton=20
hash

Focusing on the ObjectID for now:
well, that ObjectID is the ID of the object that implements the remote me=
thod,=20
right. Tipically it is the ID that is stored on the skeleton object (serv=
er side=20
oject), right. But I have no skeletton class, just the stub.

Please, any easy way to get this Object ID?

Many thanks

Alex

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html