Here's an example using J2EE 1.4 syntax:
excerpt from ejb-jar.xml
---------------
<enterprise-beans>
<message-driven>
<ejb-name>MyMDB</ejb-name>
<ejb-class>....MessageDrivenBean</ejb-class>
<transaction-type>Container</transaction-type>
<message-destination-type>javax.jms.Queue</message-destination-type>
<message-destination-link>QueueName</message-destination-link>
</message-driven>
</enterprise-beans>
<assembly-descriptor>
<message-destination>
<message-destination-name>QueueName</message-destination-name>
</message-destination>
</assembly-descriptor>
excerpt from openejb-jar.xml
-----------------------
<enterprise-beans>
<message-driven>
<ejb-name>OrderProcessor</ejb-name>
<naming:resource-adapter>
<naming:resource-link>ResourceAdapterName</naming:resource-link>
</naming:resource-adapter>
<activation-config>
<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>destinationType</activation-config-property-name>
<activation-config-property-value>javax.jms.Queue</activation-config-property-value>
</activation-config-property>
</activation-config>
</message-driven>
</enterprise-beans>
The ResourceAdapterName in that snippet should point to the
resourceadapter-name used when the JMS resources were deployed. The
destinationType and destination have to be specified in openejb-jar
even if, as here, they're already specified in ejb-jar.xml.
Thanks,
Aaron
On 3/26/06, Olivier Voutat <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>
> Neubie, bothering u all again. Situation: I have a Message-Driven-Bean model
> for JBoss that I would like to transform to the Geronimo way. These are my
> xml's:
>
> <ejb-jar>
> <enterprise-beans>
> <message-driven>
> <ejb-name>Log</ejb-name>
> <ejb-class>examples.LogBean</ejb-class>
> <transaction-type>Container</transaction-type>
> <message-driven-destination>
> <destination-type>javax.jms.Topic</destination-type>
> </message-driven-destination>
> </message-driven>
> </enterprise-beans>
> </ejb-jar>
>
> <jboss>
> <enterprise-beans>
> <message-driven>
> <ejb-name>Log</ejb-name>
>
> <destination-jndi-name>topic/testTopic</destination-jndi-name>
> </message-driven>
> </enterprise-beans>
> </jboss>
>
> Could you please give me how they should be adapted to the Geronimo way
> (ejb-jar.xml and openejb-jar.xml) ? Looked some articles but I'm quite
> confused by them.
>
> Thanks a lot,
>
> --
> Olivier Voutat
> Rua Praia de Muriú, 9188
> Cep 59092-390 / Natal - RN
> Tel: (84) 3219-0427 Cel: (84) 9977-3917