JBoss Community

using system properties in mbeans

created by Mikhail Voronin in JBoss Microcontainer - View the full discussion

Hello,

 

I'm not sure if my problem is related to JBoss kernel but...

Could anybody please tell me if it is possible to reference jboss system properties in jboss-bean.xml?

I have properties configured in properties-service.xml and I'd like to use them to create my mbeans, something like that:

 

<bean name="SforceLoginFactory" class="com.XXX.SforceSingleLoginFactory" init-method="login" destroy-method="logout">

        <property name="username">get value from system properties ???</property>

        <property name="password">get value from system properties ???</property>

</bean>

 

Is this possible in general or not?

 

Thanks in advance,

Mikhail

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community