[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2364) Resource-bundle from different modules
Gregory Tanneau (JIRA)
jira-events at lists.jboss.org
Mon Mar 31 04:40:39 EDT 2008
[ http://jira.jboss.com/jira/browse/JBSEAM-2364?page=comments#action_12405757 ]
Gregory Tanneau commented on JBSEAM-2364:
-----------------------------------------
I think this really is an issue, according to the following scenario :
One MAIN.EAR with tow web modules
- APP1.WAR (with messages_one_xx.properties)
- APP2.WAR (with messages_two_xx.properties)
When starting JBoss, the first webapp accessed makes the Resource Loader search for bundles (ie. I access APP1, messages_one_xx.properties are found).
When the second webapp is accessed, the Resource Loader assumes bundles are already loaded (messages_two are NOT loaded).
So, there should be TWO ResourceLoaders, one per web module.
> Resource-bundle from different modules
> --------------------------------------
>
> Key: JBSEAM-2364
> URL: http://jira.jboss.com/jira/browse/JBSEAM-2364
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Core
> Affects Versions: 2.0.0.GA
> Environment: Windows XP, Eclipse, Seam running in a Tomcat 5.5.25
> Reporter: Pierre Ingmansson
> Priority: Trivial
>
> We have a application that consists of several modules. Each module has it's own resource-bundle and therefore we created several "components.xml", one per module.
> In every "components.xml" we have the following (the name of the bundle varies per module off course..):
> <core:resource-loader>
> <core:bundle-names>
> <value>mymodule_messages</value>
> </core:bundle-names>
> </core:resource-loader>
> In a perfect world you would expect this to work, but it doesn't. Only the resource-bundle declared in the "components.xml" that was loaded last, is loaded into the ResourceLoader. My guess is that Seam stores all "component.xml"-parameters in some property during load, and when a new "components.xml" is loaded the settings are overwritten. Only the settings in the last "component.xml" is loaded..
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list