Hi Jeff,

On 2.8.2010 2:41, jsloyer wrote:
I am using OpenJPA as my persistence layer in my web application and I am
running into issues with multiple transaction hitting my broker.  My broker
class contains The entity manager and the code the uses the entity manager
to access the DB.  Each of my servlets instantiates the Broker class and
then calls the particular methods it needs to in the Broker class.  I know
this isn't the correct design, can anyone help me out with what the correct
design for a web application.

OpenJPA is Apache implementation of Java persistence (JPA) specification. It is not a J2EE/JavaEE container.

You may use it stand-alone, together with JSP/Servlet container like Apache Tomcat, or with JavaEE application server like Apache Geronimo. How do you use it? How do you manage transactions?

Could you also post relevant parts of your code, and provide more details about issues you have with transaction handling? Do you use resource injection? How about stateless session beans?

-Ognjen

Reply via email to