struts « Transaction « JPA Q&A





1. how to manage transaction in business logic layer    stackoverflow.com

I want to know how to manage transaction in business logic layer(BLL). I've searched this site to find the answer to my question but didn't success. I want to use hibernate and struts ...

2. "Preparable" influence hibernate transaction management when using "OpenSessionInViewFilter"    struts.1045723.n5.nabble.com

Keyword: struts2 preparable, spring OpenSessionInViewFilter, hibernate transaction management. Background: We use OpenSessionInViewFilter in our web xml to enable lazy loading in web views. The struts action class provides a basic function in adding, updating and deleting data entity as a controller. Our form fields reference the entity object and its properties with a valid OGNL expression... like The submitform's ...

3. Hibernate Core Session / Transaction injection problem with struts2 and tiles    coderanch.com

Hi, I am using struts2-fullhibarnate plug-in for Hibernate connection with database. Also I am using tiles with struts2 and when try to use success as tiles then it's give error Error invoking Action using Hibernate Core Session / Transaction injection java.lang.NullPointerException at org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:105) at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186) at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:362) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:266) at com.googlecode.s2hibernate.struts2.plugin.s2hibernatevalidator.interceptor.HibernateValidatorInterceptor.intercept(HibernateValidatorInterceptor.java:77) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122) ...

4. Transactions with JBoss 4.0.2, Hibernate and Struts    forum.hibernate.org

Hibernate version: Using JBoss 4.0.2 with built in Hibernate I have built a basic non-EJB struts application. I deploy my Hibernate config as a HAR file. This works fine. Then I deploy my Struts application as a WAR file. I've found that I have to explicitly wrap all my Hibernate activity in a JTA transaction, like the example below, or I ...

5. How to handle Hibernate Transaction in struts execute()?    forum.hibernate.org

Lets say, we need to do a couple of save/updates on different objects inside struts Action's execute(). What is the best way to handle Hibernate Transaction in the execute()? If we want it as an atomic operation, should we create the transaction in the beginning of the execute() and commit it at the end? If we do that, we have to ...