We are still using Seam 2 (2.2.GA) for one legacy webapp. We have JRebel to hot-reload all the stuffs (xhtml, java), but not the i18n messages.properties. Its so annoying!
So, what have we tried? We tried to override the following Seam's built-in components while debug mode (during development):
- org.jboss.seam.core.ResourceLoader - @Name("org.jboss.seam.core.resourceLoader")
- org.jboss.seam.international.Messages - @Name("org.jboss.seam.international.messagesFactory")
- org.jboss.seam.core.ResourceBundle - @Name("org.jboss.seam.core.resourceBundle")
and the following classes are also overrided:
- DynamicSeamResourceBundle extends org.jboss.seam.core.SeamResourceBundle (so that it does NOT cache the bundles intenally anymore, the own caching mechanis of seam)
- DynamicResourceBundleControl extends ResourceBundle.Control (with timeToLive = TTL_DONT_CACHE to override the caching behavior of Java)
Of course, the customized components are initialized and used by Seam and of course the properties files have bean changes before each try. But all the tricks do not help! The Idee of the customized codes can be found here: https://community.jboss.org/thread/184261
Pls help me!