  | 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
|
|
|
  | | | - Re: need help for Transaction Attribute Types | - Re: need help for Transaction Attribute Types 2007-08-13 - By grdzeli_kaci
Back "ALRubinger" wrote : Looks like you'd just like an Extended Persistence Context , so that your EM isn't flushed to the DB automatically at JTA Commit. | | http://docs.jboss.org/ejb3/app-server/tutorial/extended_pc/extended.html | | S, | ALR
Great Thanks for your posts, i did what you say but problems is not resolved, my example now looks like :
| @(protected) | @(protected)(TestFasade.class) | public class TestFasadeBean implements TestFasade { | | @(protected)(type = PersistenceContextType.EXTENDED) | EntityManager oracleManager; | | Test test; | | public Long create() { | try { | System.out.println("start persist"); | test = new Test(); | test.setAge(21L); | test.setName("adsdasd"); | test.setSurname("asdasd"); | oracleManager.persist(test); | System.out.println("end persist"); | Long ret = test.getId(); | return ret; | } catch (Exception e) { | e.printStackTrace(); | return 0L; | } | } | public void comit() { | try { | System.out.println("start comit"); | oracleManager.flush(); | System.out.println("start end"); | } catch (Exception e) { | e.printStackTrace(); | } | } | } |
and after call create method information is flushed into database :( did i something incorrect ? or maybe i have some bad versions of enviroment : AS : JBoss AS 4.2.1.GA with ejb 3 included
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4073548#4073548
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4073548 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |