tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Tomee and wmq - MDB container
Date Thu, 02 Mar 2017 15:20:53 GMT
Hi

maybe add in system.properties openejb.offline=true to see if some resource
is created automatically (and default to activemq)


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-03-02 13:11 GMT+01:00 essex2014 <hamidhussain1973@gmail.com>:

>  Hi Guys,
>
> I am trying to configure the Container in tomee.xml of type MESSAGE and
> define MDB in env-jar.xml.  Tomee should automatically link the MDB to the
> container but it does not work for me. The MDB does not read messages of
> the
> queue. I followed the steps mentioned in the link below plus I added the
> MDB
> definition in env-jar.xml
>
> http://tomee.apache.org/tomee-and-webspheremq.html
>
> I tried exactly same setup with activeMQ and it works fine. Is there any
> other setting/config required ?
>
> The MDB works fine when I just define all the properties in enb-jar.xml as
> below without using Container in tomee.xml
>
>
> <message-driven>
>         <ejb-name>beanName</ejb-name>
>         <ejb-class>beanClass</ejb-class>
>         <messaging-type>javax.jms.MessageListener</messaging-type>
>         <transaction-type>Bean</transaction-type>
>         <message-destination-type>javax.jms.Queue</message-
> destination-type>
>         <activation-config>
>              <activation-config-property>
>
> <activation-config-property-name>destinationType</
> activation-config-property-name>
>
> <activation-config-property-value>javax.jms.Queue</
> activation-config-property-value>
>              </activation-config-property>
>              <activation-config-property>
>
> <activation-config-property-name>destination</activation-
> config-property-name>
>
> <activation-config-property-value>*queueName*</activation-
> config-property-value>
>              </activation-config-property>
>              <activation-config-property>
>
> <activation-config-property-name>channel</activation-config-property-name>
>
> <activation-config-property-value>*channelName*</
> activation-config-property-value>
>              </activation-config-property>
>              <activation-config-property>
>
> <activation-config-property-name>hostName</activation-
> config-property-name>
>
> <activation-config-property-value>*hostName*</activation-
> config-property-value>
>              </activation-config-property>
>              <activation-config-property>
>
> <activation-config-property-name>port</activation-config-property-name>
>
> <activation-config-property-value>1414</activation-config-property-value>
>              </activation-config-property>
>              <activation-config-property>
>
> <activation-config-property-name>queueManager</activation-
> config-property-name>
>
> <activation-config-property-value>*queueManager*</
> activation-config-property-value>
>              </activation-config-property>
>              <activation-config-property>
>
> <activation-config-property-name>transportType</
> activation-config-property-name>
>
> <activation-config-property-value>CLIENT</activation-
> config-property-value>
>              </activation-config-property>
>            </activation-config>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/Tomee-and-wmq-MDB-container-tp4681190.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message