Very good questions
As you would have understood the objective of this sample is to make the
deployed application 100% configurable to switch between AMQ and IMQ, for the
same reasons none of the configuration is done in tomee.xml
Secondly, you see host,port type properties are re-declared in
activation-config (it was already declared in resources.xml under Resource
id="imq_qcf")as Container id="imq_container" is unable to link these properties
from imq_qcf
This problem is very specific to MDB, as MessageProducer example in
JmsTestResource class is directly able to engage the imq_qcf.
Same works fine for MDB using ActiveMQ targets( amq_qcf and amq_container)
Third, since I am using 2 different containers in my JVM (ejb-jar.xml and
openejb-jar.xml helps me to deterministically bind an ejb to respective
container) detail explanation in README file
Thanks and Best RegardsSuyog Barve
From: essex2014 [via TomEE & OpenEJB]
<[email protected]>
To: suyogbarve <[email protected]>
Sent: Thursday, March 2, 2017 5:35 PM
Subject: Re: Tomee and wmq - MDB container
Hi suyogbarve,
Thanks for the sample code. I can see from your code that MDB WMQReadBean that
u defined in ejb-jar.xml has all the MQ connection details like host, port etc.
this is what I don't want in this config file. I want the MDB config in
ejb-jar.xml to pick those details from tomee Container and resources.
Also, I see that u used openejb-jar.xml. What is the purpose of this ? Is this
the config which links ejb-jar.xml to the Container & resources defined in
tomee ?
If you reply to this email, your message will be added to the discussion
below:
http://tomee-openejb.979440.n4.nabble.com/Tomee-and-wmq-MDB-container-tp4681190p4681195.html
To start a new topic under TomEE Users, email
[email protected]
To unsubscribe from TomEE Users, click here.
NAML
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/Tomee-and-wmq-MDB-container-tp4681190p4681196.html
Sent from the TomEE Users mailing list archive at Nabble.com.