Results 1 to 3 of 3

Thread: Is it possible to read bean property from env variable or properties file ?

  1. #1
    Join Date
    May 2009
    Posts
    2

    Default 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. #2
    Join Date
    Jun 2005
    Location
    Dallas,TX
    Posts
    17

    Default

    use PropertyPlaceholderConfigurer
    Thanks
    Saad Khawaja

  3. #3
    Join Date
    May 2010
    Posts
    1

    Default

    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
  •