-
May 5th, 2009, 07:06 AM
#1
Is it possible to read bean property from env variable or properties file ?
Hi All
While using JMX with spring, the spring extension XML file, generally uses the "serverConnector" as below
<bean id="serverConnector"
class="org.springframework.jmx.support.ConnectorSe rverFactoryBean">
<property name="serviceUrl" value="service:jmx:rmi:///jndi/rmi://<host>:<port>:jndiname"/>
</bean>
Is there any was to read the value for the property "serviceUrl" from one of the following options [1] an environment variable or [2] a properties file ?
Thanks
jdempsky
-
Aug 25th, 2009, 11:39 PM
#2
use PropertyPlaceholderConfigurer
Thanks
Saad Khawaja
-
May 12th, 2010, 12:36 AM
#3
I am not 100% qualified to answer this question, Please take help of some other person.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules