1 Reply Latest reply on Jun 14, 2008 6:59 AM by Tim Fox

    Polled jms connection factory

    ramkumar chinta Newbie

      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 ..