Document new feature which enables to set @Resource and values for in ActivationConfigProperty in MDB by a system property. Like: ... @ActivationConfigProperty(propertyName = "destination", propertyValue = "${jms.queue.InQueue}")}) ... @Resource(mappedname="${resource.name}") can be set by specifying system properties -Djms.queue.InQueue=jms/queue/InQueue" and -Dresource.name=CF during start of EAP server or in CLI: [standalone@localhost:9999 /] /system-property=jms.queue.InQueue:add(value=jms/queue/InQueue) [standalone@localhost:9999 /] /system-property=resource.name:add(value=CF) For this to work this functionality must be enabled in ee subsystem by setting attribute "annotation-property-replacement" to true. (Description: Flag indicating whether EJB annotations will have property replacements applied)
I'll take this one. Shouldn't this go in the Developer Guide?
Ignore the above comment. :-)
On second thought, does this topic belong in the Development Guide under '7.4. Message-Driven Beans'?
I've been looking at the helloworld-mdb quickstart to create a version that uses property substitution. How do you replace the values in the hornet-queue.xml file? That quickstart is located here: https://github.com/jboss-developer/jboss-eap-quickstarts/tree/6.3.x-develop/helloworld-mdb
AFAIK replacing value for queue name in hornet-queue.xml is out of scope of this RFE. This is just about replacing values in @Resource and @ActivationConfigProperty in MDB/EJB by system properties.
Created blank topic: Enable Property Substitution in MDB [30840]
The topic can be reviewed on DocStage here: http://documentation-devel.engineering.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/6.3/html-single/Development_Guide/index.html#Enable_EJB_and_MDB_Property_Substitution_in_an_Application
Good to know that property substitution is working also in hornetq-jms.xml. :-) Great work!
John Doyle <jdoyle> updated the status of jira EAP6-38 to Closed
John Doyle <jdoyle> updated the status of jira EAP6-146 to Closed