I am struggling to provide a dynamic queue/topic destination for MDB
1) Failed to use Annotation based approach which is not expanding the
property value
@MessageDriven(name="PingPongMDB", activationConfig = {
@ActivationConfigProperty(
propertyName = "destinationType",
propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(
propertyName = "destination",
propertyValue = "${ref_fooQueue}")})
2) Failed to use -Dref_fooQueue=fooQueue in conjunction with ejb-jar.xml
<activation-config>
<activation-config-property>
<activation-config-property-name>destination</activation-config-property-name>
<activation-config-property-value>"${ref_fooQueue}"</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>
I am not able to find a way to dynamically/runtime pass value of
destination.
I believe ActivationConfigPropertyOverride feature was added in TOMEE-1704
https://issues.apache.org/jira/browse/TOMEE-1704
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/TomEE-override-parameterize-ActivationConfigProperty-tp4680969p4680987.html
Sent from the TomEE Users mailing list archive at Nabble.com.