Hi all,
I am a fairly experienced
Java developer, but am new to EJBs. I've gone through some books and tutorials, and I think I basically understand how to write
EJB server components. All of the sample applications that I wrote run fine.
Problem is, the client and server code of these sample apps all run on the same machine; the same JVM as well. What I am trying to do is write a separate, totally simple, Java app to run from the command line from another computer, separate from where the EJB container is running (I would access the server machine from the client machine over my home DSL hub.)
So my (hopefully simple) question is... what do I need for the client app? Do I need certain JAR files for it to run? I assume it needs the JNDI classes, but does it need any EJB-specific classes as well? How about my custom Enterprise Java Bean... do I need to copy over any of my own code for the client to use? Presumably the client would need the home and remote interfaces in its classpath, else it couldn't compile, but does it need any other of my code?
Presumably this is done all the time with EJBs, so hopefully someone knows the answer!
Thanks in advance!