[jboss-jira] [JBoss JIRA] (AS7-5368) Lookup of UserTransaction should not be allowed in CMT beans
Eduardo Martins (JIRA)
jira-events at lists.jboss.org
Fri Jan 25 09:19:47 EST 2013
[ https://issues.jboss.org/browse/AS7-5368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750547#comment-12750547 ]
Eduardo Martins commented on AS7-5368:
--------------------------------------
Linked PR which replaces https://github.com/jbossas/jboss-as/pull/3213
> Lookup of UserTransaction should not be allowed in CMT beans
> ------------------------------------------------------------
>
> Key: AS7-5368
> URL: https://issues.jboss.org/browse/AS7-5368
> Project: Application Server 7
> Issue Type: Bug
> Components: EJB
> Affects Versions: 7.2.0.Alpha1
> Reporter: Cheng Fang
> Assignee: Eduardo Martins
>
> EJB spec 8.3.4 Enterprise Beans Using Container-Managed Transaction Demarcation:
> The enterprise bean’s business methods, message listener methods, business method interceptor meth- ods, lifecycle callback interceptor methods, or timeout callback methods must not attempt to obtain or use the javax.transaction.UserTransaction interface.
> Currently lookup("java:comp/UserTransaction") returns an instance of org.jboss.tm.usertx.client.ServerVMClientUserTransaction.
> Similar to AS7-5331
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list