How to deploy the Persistence unit in the global JNDI ?

By default the persistence unit are available in the java: Context. If you wish to make them available also in the global naming Context you have to add two properties to your persistence.xml configuration file:

   <persistence-unit name="manager1">
         <property name="" value="java:/Manager1"/>
         <property name="" value="java:/Manager1Factory"/>
</persistence> gives you a transaction scoped entity manager you can interact with, while binds the entity manager factory into global JNDI.