I am using Bean Managed Transaction and Container-Managed Entity Manager. My project uses the JBoss Application Server. I have the following piece of code.