Please try the following: @Stateful | @Remote(TestFasade.class) | public class TestFasadeBean implements TestFasade { | | @PersistenceContext(type = PersistenceContextType.EXTENDED) | EntityManager oracleManager; | Test test; | | @TransactionAttribute(NEVER) | public Long create() { | try { | test = new Test(); | test.setAge(21L); | test.setName("adsdasd"); | test.setSurname("asdasd"); | oracleManager.persist(test); | return test.getId(); | } catch (Exception e) { | e.printStackTrace(); | return 0L; | } | } | | @TransactionAttribute(REQUIRED) | public void comit() { | try { | oracleManager.flush(); | } catch (Exception e) { | e.printStackTrace(); | } | } | }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074599#4074599 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074599 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user