You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Yann BLAZART <ya...@externe.bnpparibas.com> on 2016/05/06 14:22:24 UTC

Multiple MDB Container type=MESSAGE

Hello,

How can I do if I have multiple Connection Factories for different MDB ?

For now I'm using tome-embedded then I use system properties to configure mdb :

<containerProperties>
    <!-- LOGS -->
    <xxx.log.server.appender>Console</xxx.log.server.appender>

    <!-- JMS -->
    <prototype-src-amq-adapter>new://Resource?type=ActiveMQResourceAdapter</prototype-src-amq-adapter>
    <prototype-src-amq-adapter.ServerUrl>tcp://127.0.0.1:61616</prototype-src-amq-adapter.ServerUrl>

    <xxxJMSCF>new://Resource?type=javax.jms.ConnectionFactory</ xxxJMSCF >
    <xxxJMSCF.ResourceAdapter>prototype-src-amq-adapter</ xxxJMSCF.ResourceAdapter>

    <xxxMDBContainer>new://Container?type=MESSAGE</ xxxMDBContainer >
    <xxxMDBContainer.ResourceAdapter>prototype-src-amq-adapter</ xxxMDBContainer.ResourceAdapter>

    <jms-xxx-protosrc-eventsQ>new://Resource?type=javax.jms.Queue</jms- xxx -protosrc-eventsQ>


But If I need to have One mdb that  connect to this AMQ and another to Another AMQ, How can I do it ?

Thanks & regards.


This message and any attachments (the "message") is
intended solely for the intended addressees and is confidential. 
If you receive this message in error,or are not the intended recipient(s), 
please delete it and any copies from your systems and immediately notify
the sender. Any unauthorized view, use that does not comply with its purpose, 
dissemination or disclosure, either whole or partial, is prohibited. Since the internet 
cannot guarantee the integrity of this message which may not be reliable, BNP PARIBAS 
(and its subsidiaries) shall not be liable for the message if modified, changed or falsified. 
Do not print this message unless it is necessary,consider the environment.

----------------------------------------------------------------------------------------------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le "message") 
sont etablis a l'intention exclusive de ses destinataires et sont confidentiels.
Si vous recevez ce message par erreur ou s'il ne vous est pas destine,
merci de le detruire ainsi que toute copie de votre systeme et d'en avertir
immediatement l'expediteur. Toute lecture non autorisee, toute utilisation de 
ce message qui n'est pas conforme a sa destination, toute diffusion ou toute 
publication, totale ou partielle, est interdite. L'Internet ne permettant pas d'assurer
l'integrite de ce message electronique susceptible d'alteration, BNP Paribas 
(et ses filiales) decline(nt) toute responsabilite au titre de ce message dans l'hypothese
ou il aurait ete modifie, deforme ou falsifie. 
N'imprimez ce message que si necessaire, pensez a l'environnement.

Re: Multiple MDB Container type=MESSAGE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

You can bind a mdb to a container through openejb-jar.xml.
Le 6 mai 2016 16:22, "Yann BLAZART" <ya...@externe.bnpparibas.com> a
écrit :

> Hello,
>
> How can I do if I have multiple Connection Factories for different MDB ?
>
> For now I'm using tome-embedded then I use system properties to configure
> mdb :
>
> <containerProperties>
>     <!-- LOGS -->
>     <xxx.log.server.appender>Console</xxx.log.server.appender>
>
>     <!-- JMS -->
>
> <prototype-src-amq-adapter>new://Resource?type=ActiveMQResourceAdapter</prototype-src-amq-adapter>
>     <prototype-src-amq-adapter.ServerUrl>tcp://127.0.0.1:61616
> </prototype-src-amq-adapter.ServerUrl>
>
>     <xxxJMSCF>new://Resource?type=javax.jms.ConnectionFactory</ xxxJMSCF >
>     <xxxJMSCF.ResourceAdapter>prototype-src-amq-adapter</
> xxxJMSCF.ResourceAdapter>
>
>     <xxxMDBContainer>new://Container?type=MESSAGE</ xxxMDBContainer >
>     <xxxMDBContainer.ResourceAdapter>prototype-src-amq-adapter</
> xxxMDBContainer.ResourceAdapter>
>
>     <jms-xxx-protosrc-eventsQ>new://Resource?type=javax.jms.Queue</jms-
> xxx -protosrc-eventsQ>
>
>
> But If I need to have One mdb that  connect to this AMQ and another to
> Another AMQ, How can I do it ?
>
> Thanks & regards.
>
>
> This message and any attachments (the "message") is
> intended solely for the intended addressees and is confidential.
> If you receive this message in error,or are not the intended recipient(s),
> please delete it and any copies from your systems and immediately notify
> the sender. Any unauthorized view, use that does not comply with its
> purpose,
> dissemination or disclosure, either whole or partial, is prohibited. Since
> the internet
> cannot guarantee the integrity of this message which may not be reliable,
> BNP PARIBAS
> (and its subsidiaries) shall not be liable for the message if modified,
> changed or falsified.
> Do not print this message unless it is necessary,consider the environment.
>
>
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Ce message et toutes les pieces jointes (ci-apres le "message")
> sont etablis a l'intention exclusive de ses destinataires et sont
> confidentiels.
> Si vous recevez ce message par erreur ou s'il ne vous est pas destine,
> merci de le detruire ainsi que toute copie de votre systeme et d'en avertir
> immediatement l'expediteur. Toute lecture non autorisee, toute utilisation
> de
> ce message qui n'est pas conforme a sa destination, toute diffusion ou
> toute
> publication, totale ou partielle, est interdite. L'Internet ne permettant
> pas d'assurer
> l'integrite de ce message electronique susceptible d'alteration, BNP
> Paribas
> (et ses filiales) decline(nt) toute responsabilite au titre de ce message
> dans l'hypothese
> ou il aurait ete modifie, deforme ou falsifie.
> N'imprimez ce message que si necessaire, pensez a l'environnement.
>