-
1. Re: JBoss property file loading
mp911de Jul 18, 2011 2:13 AM (in response to divyakprabh)Hi Divya,
so your problem is, that the EAR No. 2 gets the content of temp.properties of EAR No. 1? But you want EAR No. 2 to get temp.properties of EAR No. 2.
Either use two different names of property-files or adjust your classloader.
Best regards,
Mark
-
2. Re: JBoss property file loading
divyakprabh Jul 21, 2011 1:51 AM (in response to mp911de)The problem is
1. I cannot use different name for that property file for each Ear. It should be constant accross the Ears.
2. Nor i can make my Ear's to deploy in scoped classloader.
Any other option other than these two.?
-
3. Re: JBoss property file loading
jaikiran Jul 21, 2011 1:55 AM (in response to divyakprabh)divya prabhu wrote:
2. Nor i can make my Ear's to deploy in scoped classloader.
Why not? That's the right solution anyway.
-
4. Re: JBoss property file loading
divyakprabh Jul 21, 2011 2:01 AM (in response to jaikiran)because, there are few dependencies that Ear2 refers to Ear1. So i cannot make it scoped.
I tried with this clearCache() before loading a property file, but dint work for me.