0 Replies Latest reply on Dec 4, 2007 5:14 PM by jammann

    Property from Properties Service not replace in JMS Bridge d

    jammann

      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"
      name="jboss.messaging:service=Bridge,name=DokumentendienstBridge"
      xmbean-dd="xmdesc/Bridge-xmbean.xml">
      ...
      < 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