Instead of doing this:

  |  mLog.info("Looking up environment context");
  | Context envCtx = (Context) ic.lookup("java:comp/env");
  | 
  | mLog.info("Looking up Connection factory");
  | ConnectionFactory cf = 
(ConnectionFactory)envCtx.lookup("/ConnectionFactory"); 
  | 

Can you not just look up the connection factory directly i.e.

  | mLog.info("Looking up Connection factory");
  | ConnectionFactory cf = (ConnectionFactory)iclookup("/ConnectionFactory"); 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129322#4129322

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129322
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to