do both use the same broker? - ie do you have set up the connection factory
accordingly?


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-09-09 20:17 GMT-07:00 hkgot <[email protected]>:

> 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