|
How come my Client app was able to get
InitialContext and talk to my EJB Server (JOnAS) without having a stub or
descriptor (it's not a bean or EJB)?
I got the code for the client out of a book, and it worked perfectly and created an entity bean (that was persisted to the db) and read back the entity bean's properties. It also did: Context myContext = new InitialContext(); (and then did the javax.rmi.PortableRemoteObject.narrow) and the myContext.lookup they all worked! Why? How? I did not need to compile my client for the ejb server or create stubs for it. So how did it know where to get the context from? |
