Results 1 to 6 of 6

Thread: ReloadableResourceBundleMessageSource broken in nightly

  1. #1
    Join Date
    Sep 2005
    Location
    Chicago, IL
    Posts
    143

    Default ReloadableResourceBundleMessageSource broken in nightly

    I have been using the "ReloadableResourceBundleMessageSource" to load my message sources but it seems recently this has stopped working..

    What I had before was:
    Code:
        <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
            <property name="basenames">
                <list>
                    <value>com/vodori/dolce/web/resources/applicationResources</value>
                </list>
            </property>
            <property name="useCodeAsDefaultMessage" value="false"/> 
            <property name="cacheSeconds" value="3"/>
        </bean>
    but that was not finding any of my messages and so just to see what would happen, I switched it to the normal "ResourceBundleMessageSource" and it's working just fine.. So this snip of code does work:

    Code:
        <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
            <property name="basenames">
                <list>
                    <value>com/vodori/dolce/web/resources/applicationResources</value>
                </list>
            </property>
            <property name="useCodeAsDefaultMessage" value="false"/>
        </bean>
    Grant Gochnauer
    Vodori Inc.
    Personal Blog

  2. #2
    Join Date
    Sep 2005
    Location
    Chicago, IL
    Posts
    143

    Default

    Oops. I should have posted this under the "Web" forum. Sorry about that.
    Grant Gochnauer
    Vodori Inc.
    Personal Blog

  3. #3
    Join Date
    Sep 2005
    Location
    Chicago, IL
    Posts
    143

  4. #4
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Could you test your code against a stable build? If the error persists please raise an issue on jira. Thanks!
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  5. #5
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    You read my mind... over the wire! Thanks for the feedback - it is very important for us as we can't fix bugs we don't know about.
    Last edited by Costin Leau; Jul 18th, 2006 at 03:58 PM. Reason: I keep having too many smilies then intended
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  6. #6
    Join Date
    Sep 2005
    Location
    Chicago, IL
    Posts
    143

    Default

    I did test this with Spring 1.2.x and it does work fine. In fact, I actually took a web app based on 1.2.x, made a copy which included the Reloadable resource bean, put in Spring 2.0RC3 (nightly) and have been working on it for a few weeks only to recently start adding in resource bundles which is when I ran into this problem...

    I'm not sure if any certain Spring 2.x build broke it unfortunately but I do know it worked just fine in 1.2.x

    Thanks!
    Grant Gochnauer
    Vodori Inc.
    Personal Blog

Posting Permissions

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