Hello, In my JMX bean, i did the following testing:
Object o1 = ctx.lookup("java:/ConnectionFactory"); Object o2 = ctx.lookup("java:/Jms"); log.debug("" + (o1 instanceof QueueConnectionFactory)); log.debug("" + (o2 instanceof QueueConnectionFactory)); The results show that both o1 and o2 are instanceof QueueConnectionFactory. But i cannot use o2 to create QueueConnection: ((QueueConnectionFactory)o1).createQueueConnection(); ((QueueConnectionFactory)o2).createQueueConnection(); The second creation throws exception : java.lang.IllegalStateException: This method is not a pplicatable in JMS resource adapter How to use pooled connection outside the ejb? Please help! Thanks a lot yang View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841507#3841507 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841507 ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user