Results 1 to 3 of 3

Thread: Spring wiring using remote service for properties?

  1. #1
    Join Date
    May 2012
    Posts
    3

    Default Spring wiring using remote service for properties?

    I'm not sure if this is possible but I'll ask the question anyway.

    I currently have several services which are all wired up and working and make use of property files defining URLs, various strings and so on ... What I now want to do is create a configuration service that holds all of these properties centrally and offers an interface to allow remote requests for properties. Is it possible to keep the same basic wiring structure but instead of the spring container getting the properties from a local properties file on the server get them from a remote service ?

    Thanks

    Steve

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    Not by default... However for spring it doesn't matter where the properties come from as long as it is a java.util.Properties object you can simply inject them into the placeholder-configurer. So if you create a FactoryBean which simply pulls the properties from the service you mention you are basically good to go.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    May 2012
    Posts
    3

    Default

    Ah thanks for that, I'll have a read around now I have a line of enquiry to follow

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •