  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | - LR conversationand unique HibernateSession after exc | - LR conversationand unique HibernateSession after exc 2007-07-12 - By ptravas
Back After database exception during flush Hibernate Session should be no more used. Knowing that I'm searching for a good design for a multipage wizard which in the last step persist all my data using Hibernate. I want to be sure that in case of an exception thrown because of i.e. overriding update etc, I will be able to repeat the last step after presenting user with something like "Original attempt was not successful, try again after fixing this and that". But I have a single managed hibernate session for the whole conversation and apparently nested conversations just gets the same instance (checked in the debugger). So even creating nested conversation I shouldn't try to repeat last step as far as I understand.
How this should be solved? I think that the problem here is that hibernate session is conversation-scoped, I need iteraction with it only on the first and (repetitive) last step of my conversation.
Is invoking converstationHibernateSession.getFactory.getSession() from this last conversation-commiting method the only way to be able to retry session commit?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4063424#4063424
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4063424 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |