[jboss-user] [JBoss Portal] - Re: Hibernate Open Session In View (in Portlet)

EricML do-not-reply at jboss.com
Wed Mar 26 10:46:04 EDT 2008


Hi PMN, thanks for your suggestions, but I dont think that this would be the best way to handle it for several reasons:

* Writing Java Code in a JSP is not recommended
* Opening a new session and reattaching the objects in the JSP violates the MVC-pattern. 
* Performance will suffer a lot because you need additional selects for the reattachment

Is there no way to span the transaction around the whole request?

TXStart-->processAction-->...-->doView-->...-->(rendering JSP)-->TXEnd

Is there no equivalent of an HibernateSessionRequestFilter (http://www.hibernate.org/43.html) for ServletApps in JBoss Portal?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138999#4138999

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138999



More information about the jboss-user mailing list