[jboss-dev-forums] [Design of EJB 3.0] - Re: ejb3 user transaction and serlvets

wolfc do-not-reply at jboss.com
Mon Dec 1 10:32:12 EST 2008


If it's configured on-demand it should still be injected. So no NPE.

As for the optional part, I still say that it's not ejb3's call to say that lazy transaction enlistment is done or not. Ejb3 defers to the UserTransactionRegistry for that.
We're not talking about the CCM being there or not. Installing a CCM should be optional. (Although I removed the optional function from EJBContainer (maybe not the smartest move. ;-) ). There was a null check there (as it should be for optional functions.))

The UserTransactionRegistry must be there, not optional, not on-demand (because of static usage).

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193491#4193491

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4193491



More information about the jboss-dev-forums mailing list