[jboss-jira] [JBoss JIRA] Commented: (AS7-1291) UserTransaction not exposed in JNDI
Aslak Knutsen (JIRA)
jira-events at lists.jboss.org
Sat Jul 16 10:10:23 EDT 2011
[ https://issues.jboss.org/browse/AS7-1291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614634#comment-12614634 ]
Aslak Knutsen commented on AS7-1291:
------------------------------------
This works from within the TestCase itself.
{code}
@RunWith(Arquillian.class)
public class TransactionTestCase
{
@Resource(mappedName = "java:/module/UserTransaction")
private UserTransaction trans;
...
}
{code}
> UserTransaction not exposed in JNDI
> -----------------------------------
>
> Key: AS7-1291
> URL: https://issues.jboss.org/browse/AS7-1291
> Project: Application Server 7
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 7.0.0.Final
> Environment: 7.1.0.Alpha1 Jenkins build 1402
> Reporter: Juergen Zimmermann
> Assignee: Andrew Rubinger
>
> In JBoss 6 UserTransaction was exposed in JNDI named as java:comp/UserTransaction. Thus an Arquillian test method could be encapsulated in one single transaction:
> * lookup() the UserTransaction
> * begin() inside @Before
> * commit() inside @After
> Unfortunately, JBoss 7 doesn't have a JNDI entry for UserTransaction.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list