[
https://issues.apache.org/jira/browse/WW-3602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040286#comment-13040286
]
Greg Huber commented on WW-3602:
--------------------------------
Not sure what you mean. When submit a page with bundlesMap.clear(); it takes 9
seconds, and when I comment out the line it takes 1 second.
>From when I last looked at this, what I think it does is to reload the bundles
>after each time the call to reloadBundles() to get the message from the say
>UI. Since for me it gets called 20+ times, it has to reload all the bundles
>this many times per invocation, taking a long time. bundlesMap.clear(); would
>work if it was called only once at the very start of the invocation. I gave
>up in the end and did the work around as it was quicker than restarting Tomcat
>each time.
Cheers Greg.
> auto-reload of properties not working with jetty and struts 2.2.1.1
> -------------------------------------------------------------------
>
> Key: WW-3602
> URL: https://issues.apache.org/jira/browse/WW-3602
> Project: Struts 2
> Issue Type: Bug
> Components: Other
> Affects Versions: 2.2.1.1
> Environment: Linux samxps 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18
> 18:42:20 UTC 2011 x86_64 GNU/Linux
> java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
> Reporter: Sami Dalouche
> Assignee: Lukasz Lenart
> Fix For: 2.2.3
>
>
> Steps to reproduce:
> - Download Struts 2.2.1.1 : http://struts.apache.org/download.cgi#struts2211
> - Extract
> - cd src/apps/mailreader
> - change pom.xml: <scanIntervalSeconds>0</scanIntervalSeconds>
> - change src/main/java/struts.xml
> <constant name="struts.devMode" value="true" />
> <constant name="struts.i18n.reload" value="true" />
> <constant name="struts.configuration.xml.reload" value="true" />
> - mvn jetty:run
> - load http://localhost:8080/struts2-mailreader/Welcome.do
> - change ./target/classes/mailreader2/MailreaderSupport.properties
> index.heading=MailReader Demonstration Application Options CHANGED
> DYNAMICALLY
> - reload in the browser
> - => the displayed value does not reflect the change in
> ./target/classes/mailreader2/MailreaderSupport.properties
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira