13 Replies Latest reply on Apr 20, 2005 11:37 PM by Benson Fung

    how to get the managed jms connectionfactory outside the ejb

    peter Apprentice


      Is it possible to get the jms managed connection factory (JCA) outside the ejbs (e.g., JMX beans)?

      What i want to do is:

      (1) my application get the managed connection factory (mcf) through jndi lookup
      (2)I expect that mcf provides a API like getConnection() to get the managed connection from the connection manager (providing pool function etc).

      Reason: I cannot preconfigure the ejb-jar.xml file because when i deploy the application, not all the connection destination is known.

      In other words, can i use managed connection(factory) in JMX bean (outside of the ejbs)?