[jboss-user] [Beginner's Corner] New message: "How to using propertyService to substitute parameter in ejb-jar.xml file"

Louie Liu do-not-reply at jboss.com
Fri Feb 19 12:11:27 EST 2010

User development,

A new message was posted in the thread "How to using propertyService to substitute parameter in ejb-jar.xml file":


Author  : Louie Liu
Profile : http://community.jboss.org/people/liuxiaodu

We have a MDB with some activation parameters needed to be externalized due to the security reason.  We we are running application in JBOSS 4.2, we are using the org.jboss.varia.property.SystemPropertiesService service to define the properties which are used in my ejb mdb configuration file (ejb-jar.xml).
Here is the example:
In my ejb-jar.xml, we define the activation attribute place holder like the following:
*    <activation-config>
and we define the properties service:
*<mbean code="org.jboss.varia.property.SystemPropertiesService" 
*        <attribute name="Properties">**            ConnectionURLs=tcp://server:3507,tcp://server:3508*
*            ......**
*   * *</mbean>*
It works in JBOSS 4.2, meaning the value defined in properties service get substituted during the server startup.
However, when we upgrade the JBOSS to 5.1, it is not working anymore.  Basically, eventhrough there is properties service available in JBOSS 5.1, but for some reason, if we have parameters defined in ejb-jar.xml, the values defined in the JBOSS 5.1 properties service mbean did not substitute the parameters in ejb-jar.xml and then MDB deploy FAILED.
I would like to get help and pointing me the right directory of how to make it work.
Thanks a lot.
Louie Liu


To reply to this message visit the message page: http://community.jboss.org/message/527316#527316

More information about the jboss-user mailing list