[jboss-user] [JBoss Messaging] - Re: Tomcat and JBoss messaging

ataylor do-not-reply at jboss.com
Thu Feb 14 03:49:10 EST 2008


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



More information about the jboss-user mailing list