System.setProperty("aQueue",
"queue:org.apache.activemq.command.ActiveMQQueue:LISTENER");

final Queue destination = (Queue) context.lookup("java:aQueue"); ------>
This seems to be working

In ejb.jar.xml:
 <enterprise-beans>
    
    <message-driven>
      <ejb-name>MyMessageBean</ejb-name>
      <ejb-class>com.xyz.MyMessageBean</ejb-class>
        <messaging-type>javax.jms.MessageListener</messaging-type>
      <transaction-type>Container</transaction-type>
<activation-config>
          <activation-config-property>
             
<activation-config-property-name>destination</activation-config-property-name>
             
<activation-config-property-value>aQueue</activation-config-property-value>
          </activation-config-property>
          .
          .
          .


The above configuration is not invoking MyMessageBean even after I send a
message to aQueue. 



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/How-to-reference-connection-factory-and-queues-from-code-tp4675980p4676171.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to