1 Reply Latest reply on Oct 26, 2002 12:22 AM by rgrashel

    HELP!  Need RMI example using JNDI lookup for JBoss 2.4.9...

    rgrashel

      Hi all,

      I've been banging my head against the wall for two days trying to get JBoss 2.4.9 to do remote method calls via JNDI lookup, and I simply cannot get it to work.

      Can someone PLEASE help me by posting some example code. Again, I want to make REMOTE calls from Client to Server while the object resides on the Server.

      As far as I can tell, the object I write has to implement Serializable, which makes no sense. I want a reference... not a copy. My object implements the Remote interface. I have also generated stubs and skels using rmic from JDK1.4.

      Every time I try to bind to the JBoss JNDI registry using my object, I get this: ** java.io.NotSerializableException **

      Can some kind soul out there from the JBoss team shed light on what the deal is here? Is it possible to do true RMI on JBoss 2.4.9 via JNDI lookup? Or do we need another RMI server running?

      Thanks for any sample code, assistance, documentation, and clarity provided.

      Regards,

      Rick Grashel