This content has been marked as final.
Show 2 replies
-
1. Re: @TransactionAttribute problem with local invocation
jaikiran Jul 20, 2009 10:54 AM (in response to mireksz)public void saveAllPerson(){ while(true){ savePerson(); } }
Calling savePerson from saveAllPerson results in a plain java invocation and you won't see any EJB semantics. You need to get hold of the EJB business object and then invoke the savePerson on that business object to get the EJB semantics:@Resource private SessionContext sessCtx; public void saveAllPerson(){ // get business object MyBusinessInterface bean = this.sessCtx.getBusinessObject(MyBusinessInterface.class); while(true){ bean.savePerson(); } }
-
2. Re: @TransactionAttribute problem with local invocation
mireksz Jul 21, 2009 8:38 AM (in response to mireksz)Thanks
work fine