This content has been marked as final.
Show 3 replies
-
1. Re: UserTransaction lookup failed
valsaraj007 Jan 14, 2015 3:51 AM (in response to valsaraj007)This issue fixed when I changed the JNDI lookup as (UserTransaction) ctx.lookup("java:jboss/UserTransaction");
-
2. Re: UserTransaction lookup failed
emmartins Jan 14, 2015 11:05 AM (in response to valsaraj007)The standard JNDI lookup name is java:comp/UserTransaction, and when using @Resource injection you don't need to define any annotation elements, i.e.
@Resource private UserTransaction ut;
should work fine.
-
3. Re: UserTransaction lookup failed
valsaraj007 Jan 14, 2015 11:34 PM (in response to emmartins)I am using WildFly 8.2 and didn't chnaged anything regarding UserTransaction. When I checked the JNDI view, it is shown as java:jboss/UserTransaction.