[jboss-user] [Messaging, JMS & JBossMQ] - Property from Properties Service not replace in JMS Bridge d

jammann do-not-reply at jboss.com
Tue Dec 4 17:14:38 EST 2007

Hi all

I have a strange problem with JBoss 4.0.5 with JBoss Messaging 1.4.0. When I define a JMS bridge, I would like to set the username/password using a property which is set via the Properties Service og JBoss. It does not work as expected, the placeholder is not replaced.

The definition of the bridge looks like (spaces in tags added because I couldn't get the post to render meaningfully :-/)

  < mbean code="org.jboss.jms.server.bridge.BridgeService"
      < depends>jboss:type=Service,name=SystemProperties< /depends>
      < attribute name="TargetUsername">${my.jms.user}< /attribute>
      < attribute name="TargetPassword">${my.jms.pw}< /attribute>
    < /mbean>

Although the properties are defined correctly in the Properties Service (I can use them in other descriptors), they are not replaced in this specific configuration file.

What I've tried so far:

- if I define the properties as "regular" system properties (-Dmy.jms.....), the values are correctly replaced
- if I add a default value (e.g. ${my.jms.pw:defaultpw}, the values are correctly replaced

Any idea what is happening here?

Thanks, Joe

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110355#4110355

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110355

More information about the jboss-user mailing list