[jboss-user] [JBoss Microcontainer] - using system properties in mbeans

Mikhail Voronin do-not-reply at jboss.com
Tue Dec 27 03:06:58 EST 2011


Mikhail Voronin [http://community.jboss.org/people/minige] created the discussion

"using system properties in mbeans"

To view the discussion, visit: http://community.jboss.org/message/643279#643279

--------------------------------------------------------------
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
[http://community.jboss.org/message/643279#643279]

Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111227/c3b10a7d/attachment.html 


More information about the jboss-user mailing list