I'm starting a development that will be deployed into JBoss. I'm trying to reuse a bunch of classes I'm currently using in a J2SE application. These classes do already use JPA and get EntityManager through a JNDI lookup.
I don't want to convert them into EJB so I can keep reusing them.
I have successfully obtained EntityManager through JNDI from within JBoss by adding the following line into "persistence.xml" file: