  | 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 | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | 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
|
|
|
  | | | - need help for Transaction Attribute Types | - need help for Transaction Attribute Types 2007-08-13 - By grdzeli_kaci
Back good day, i need something like that :
| @(protected) | @(protected)(TestFasade.class) | public class TestFasadeBean implements TestFasade { | | @(protected)(unitName = "Oracle") | private EntityManager oracleManager; | | @(protected)(??????????????) | public void create(Test test) { | try { | System.out.println("start persist"); | oracleManager.persist(test); | System.out.println("end persist"); | } catch (Exception e) { | e.printStackTrace(); | } | } | @(protected)(??????????????) | public void comit() { | try { | System.out.println("start comit"); | oracleManager.flush(); | System.out.println("end comit"); | } catch (Exception e) { | e.printStackTrace(); | } | } | } | i want that first method "create" must not be flushed into database before i call commit. is it possible, and i don't want class variable initialization. is it possible by transaction types or something like that ?
any idea will be appreciated.
__ ____ ____ ____ _____ Regards Paata,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4073522#4073522
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4073522 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |