I'm implemeting a small application with using JBoss Application server. To keep connection between server and the Db I use Entity manager object.
In my bean definition class i use following code for that
Then in save ,delete ,retrieve methods just use entityManager and call Entity Manager class methods.But I don't have any idea why we don't initialize this entityManager
How we achieve our behaviors without initializing?