Guys, I'm looking for some constructive criticism or feedback on what I'm doing. I'm attempting to deploy an application with an
EJB that has remote access so other applications can use its logic. My EJB has a JPA persistence
unit in it. So my strategy looks like this:
1. Assemble EJB class and persistence.xml into a jar (ejb.jar).
2. Assemble the remote EJB interface and persistence classes into a jar (remote.jar).
3. Assemble both jars into an ear and deploy on a local glassfish instance.
4. Put the remote.jar and hibernate jar(s) somewhere on the remote machine in the classpath of the remote glassfish instance.
5. Build and deploy remote application on remote server using jars from previous step.
Does this sound like I'm using the right approach? So far all my EJB work has been local so any feedback is appreciated.