This content has been marked as final.
Show 2 replies
-
1. Re: Configurable MDB
mnovak Feb 13, 2017 2:06 AM (in response to lauradp)1 of 1 people found this helpfulHi Laura,
it's possible to set activation config property from system property like:
@MessageDriven(name = "mdb1", activationConfig = { ... @ActivationConfigProperty(propertyName = "destination", propertyValue = "${jms.queue.testQueue}"), ... }
and start server by:
sh standalone.sh -c standalone-full-ha.xml "-Djms.queue.testQueue=jms/queue/testQueue"
To make this work it's required to enable annotation-property-replacement in server:
[standalone@localhost:9990 /] /subsystem=ee:write-attribute(name=annotation-property-replacement,value=true)
The same replacement can be done also in deployment descriptors for your MDB. The attributes in "ee" subsystem which enable it are:
spec-descriptor-property-replacement
jboss-descriptor-property-replacement
Thanks,
Mirek
-
2. Re: Configurable MDB
lauradp Feb 25, 2017 2:05 PM (in response to mnovak)Thanks Mirek, I was looking for something more flexible (like looking-up the some consumer on more than one queue) so I used standard consumers.