Announcement Announcement Module
No announcement yet.
Externalizing a List of Values Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Externalizing a List of Values


    I'm wondering what the correct way to externalize a list of values is? In the app I'm working on, I need to pass in a list of store numbers to a bean. I'd like to externalize the list so it doesn't need to be hardcoded in the bean configuration file but instead can be read from an external file. I'd like my bean configuration to look something like:

    <bean id="messageUtility" class="com.mycompany.MessageUtility">
            <property name="pilotStoreNumbers" value="${myfile.storeNumbers}" />
    The problem with this approach is I'm unsure how to specify the list in the external file.

    Can this be done?
    Last edited by jpalmer1026; Apr 7th, 2011, 09:45 AM. Reason: Hide company info