Results 1 to 1 of 1

Thread: Externalizing a List of Values

  1. #1
    Join Date
    Nov 2007
    Posts
    9

    Default Externalizing a List of Values

    Hi,

    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:

    Code:
    <bean id="messageUtility" class="com.mycompany.MessageUtility">
            <property name="pilotStoreNumbers" value="${myfile.storeNumbers}" />
     </bean>
    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 at 08:45 AM. Reason: Hide company info

Posting Permissions

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