Hello!

I have something that works which I didnt expect it would :-)

Using jboss326, I have 2 ears that each contain a war. Both wars are identical 
with the exception of the content in a x.properties file. The x.properties file 
is loaded with a class org.apache.struts.util.PropertyMessageResources using 

  | ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
  | is = classLoader.getResourceAsStream(name);
  | props.load(is);
  | 
Checking the UnifiedLoadedRepository3 from the log or the jmx-console, as 
described in the excellent documentation, I find that 
org.apache.struts.util.PropertyMessageResources has two UCL associated with it. 
But I dont find the x.properties file UCL:ed anywhere and to my surprise the 
properties dont interfere as I expected they would. Doesnt the ULR3 cache 
properties? Or does the thread context class loader bypass the  ULR3 mechanism?

BR Niklas


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869280#3869280

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869280


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to