Announcement Announcement Module
Collapse
No announcement yet.
Is it possible to read bean property from env variable or properties file ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    use PropertyPlaceholderConfigurer

    Comment


    • #3
      I am not 100% qualified to answer this question, Please take help of some other person.

      Comment

      Working...
      X