Bug 1090012
| Summary: | Document: Enable property substitution in MDB and EJB via @Resource and @ActivationConfigProperty annotation | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Miroslav Novak <mnovak> |
| Component: | Documentation | Assignee: | sgilda |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Russell Dickenson <rdickens> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.3.0 | CC: | mnovak, sgilda, smumford |
| Target Milestone: | ER4 | Keywords: | Documentation, FutureFeature, Triaged |
| Target Release: | EAP 6.3.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-28 15:39:25 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1051640 | ||
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 |
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)