From: David J. <dav...@ad...> - 2003-05-05 13:32:28
|
On 2003.05.05 04:39 Brian Wallis wrote: > > I need to call a JCA (that supports transactions) from a bean that has a > current transaction context. Problem is I don't want the transaction to > be > used in that and subsequent calls to the JCA. > > Reason? I need to implement two modes of operation on the EIS that the > JCA > talks to. Atomic operation where either all or no operations are executed > > (ie: transactional) and BestEffort where failures of operations on the > JCA > are noted but the operations that succeeded are not rolled back. > > I could indirect the operations thru a third bean with a NotSupported > transcaction attribute, but is there a more direct way of doing this? Basically, no. However, here are a couple of other, equivalent ideas: 1. deploy another copy of the adapter, with "NoTx" support and choose which one to look up. 2. Have 2 exposed methods on your ejb, one with NotSupported. They both directly call the (NOT ON EJB INTERFACE) internalDoSomething method that does the work. david jencks > > brian wallis... > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > JBoss-user mailing list > JBo...@li... > https://lists.sourceforge.net/lists/listinfo/jboss-user > > |