Hi which version fo you use? 7.x has that
We have two kind of overrides: - though system properties without placeholders: -D<ejbname>.activation.<property name>=<value> (note: we also support global override for all mdb but not sure it is what you want, just replace ejbname by "mdb"). samples at https://github.com/apache/tomee/blob/master/container/openejb-core/src/test/java/org/apache/openejb/config/ActivationConfigPropertyOverrideTest.java#L256 - though system properties with placeholders which is your 1) and 2) - sample at https://github.com/apache/tomee/blob/master/container/openejb-core/src/test/java/org/apache/openejb/core/mdb/MDBPlaceholderTest.java#L87 Side note: your xml config should work too but you put quotes making the overriding not behaving as you want i think If it doesn't expant it means either the system properties are not matching (can be the case if you set it in arquillian test JVM and use tomee remote adapter for instance) or something else in your setup probably 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-01-31 5:02 GMT+01:00 suyogbarve <[email protected]>: > 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. >
