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

adrian@jboss.org do-not-reply at jboss.com
Mon Dec 1 09:38:40 EST 2008


"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 at a556cf
  | 15:35:44,780 INFO  [STDOUT] java:/comp/UserTransaction=org.jboss.tm.usertx.client.ServerVMClientUserTransaction at 1b8b91f
  | 15:35:44,780 INFO  [STDOUT] UserTransaction=org.jboss.tm.usertx.client.ServerVMClientUserTransaction at 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#4193444

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



More information about the jboss-dev-forums mailing list