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.
Nevermind, folks. I actually solved the problem. In the code I was using, I wasn't exporting the object and then binding the resulting stub. I was binding the instance of the Impl instead. Oops!