[
https://issues.apache.org/jira/browse/TOMEE-1977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15719324#comment-15719324
]
Dev Null 52 commented on TOMEE-1977:
------------------------------------
Romain -- I think I was able to identify what may have led to the situation. I
had initially put all my Queue and ConnectionFactory resource descriptors in
resource.xml within the web app. I moved it to to tomee.xml within TomEE's conf
directory and MDB started working as expected. Thanks much for the time and
attention. I will try to eyeball why it did not work within the webapp but for
now I am able to move on.
I will close the issue. Appreciate you looking.
> MDB not listening to ActiveMQ messages
> --------------------------------------
>
> Key: TOMEE-1977
> URL: https://issues.apache.org/jira/browse/TOMEE-1977
> Project: TomEE
> Issue Type: Documentation
> Components: TomEE Core Server
> Affects Versions: 7.0.2
> Environment: Mac OS Sierra,
> Reporter: Dev Null 52
> Priority: Trivial
>
> I have been trying for couple of days to have a trivial MDB example working
> to listen on ActiveMQ Queue on default port. I am using TomEE 7.0.2.
> I tried first using an embedded Active MQ 5.2.0 broker, then moved it as a
> stand alone process using activemq-maven-plugin plugin to rule out Active MQ
> out as a variable.I tried MDB with annotation using activation config,
> without annotation but no avail. Examples online vary and none of them appear
> to work. I am able to send to the Queue using a seperate Servlet and able to
> validate then but not able to read.
> Also I am seeing very strange Auto-linking resource-ref logs whereby I see
> injections for Beans that do not have those instances/types defined -- so
> very confused.
> Plain JMS and EJB worked like a charm on JEE. Using Maven
> META-INF/beans.xml ( empty )
> META-INF/ejb-jar.xml ( MDB and basic EJB descriptor )
> WEB-INF/resources.xml (ConnectionFactory and Queue definition pointing to
> localhost ActiveMQ on default port ).
> WEB-INF/web.xml ( empty )
> Please help if possible.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)