"wolfc" wrote : As for the 1st: I don't know.
Its the injection stuff. This is what I get
|
| @Resource
| private UserTransaction ut;
|
| System.out.println("@Resource=" + ut);
| System.out.println("java:/comp/UserTransaction=" +
ctx.lookup("java:/comp/UserTransaction"));
| System.out.println("UserTransaction=" +
ctx.lookup("UserTransaction"));
|
| 15:35:44,779 INFO [STDOUT] @Resource=org.jboss.ejb3.tx.UserTransactionImpl@a556cf
| 15:35:44,780 INFO [STDOUT]
java:/comp/UserTransaction=org.jboss.tm.usertx.client.ServerVMClientUserTransaction@1b8b91f
| 15:35:44,780 INFO [STDOUT]
UserTransaction=org.jboss.tm.usertx.client.ServerVMClientUserTransaction@1b8b91f
|
So the resource injection is not injecting java:comp/UserTransaction like it should
be doing.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193444#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...