[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Polled jms connection factory

ramsblogs do-not-reply at jboss.com
Sat Jun 14 05:19:51 EDT 2008


Hi Friends,
The below code is taking more time for getting the connection factory, session ,queue respectively.
My requirement is to use a pooled Jms connection factory for getting the sessions.
Please help me for the same.


  | QueueConnectionFactory qcf =   (QueueConnectionFactory)ic.lookup("java:comp/env/jms/QCF");
  | 
  | Queue destQueue =  (Queue)ic.lookup("java:comp/env/jms/TESTQUEUE");ic.close();
  | QueueConnection connection = qcf.createQueueConnection();
  |   QueueSession session = connection.createQueueSession(0, false);
  | 
  | Please let me know the solution for the same.
  | 
  | Many Thanks in Advance ..

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

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



More information about the jboss-dev-forums mailing list