-
1. Re: Hot deploy problem with properties file
jaikiran Jul 21, 2010 4:50 AM (in response to pratiksurti)What exactly do you mean by property file not hot deployed? How and who is reading the properties file? Can you post relevant code?
-
2. Re: Hot deploy problem with properties file
pratiksurti Jul 21, 2010 5:42 AM (in response to jaikiran)Let's put it in this way:
Properties file which contains key/value pairs for labeling and internationalization of your application. We can say Resource bundle file.
EAR file which contains my application jar files, war files, configuration files which is currently deployed on JBoss AS.
For e.g. my application server is up and running and for displaying a text box label (e.g. User Name) in Flex UI, accepts the value from properties file (Resouce Bundle file).
Now I am making changes to the value present in the property file for any corresponding key (e.g. Your Name instead of User Name) and building the ear file and it is getting hot deployed in JBoss AS.
Now according to the changes made in property file, it should be reflected on Flex UI for the particular text box after hot deploy in JBoss AS which is not happening at my end.
I hope you understand the above scenario.
Also the ref code:
private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME,
new Locale(MYEnvironment.getValue("MYUtil", "PART_LOCALE"),localeCountry),Thread.currentThread().getContextClassLoader());Consider "MYEnvironment.getValue()" part my own dynamic implementation.
-
3. Re: Hot deploy problem with properties file
pratiksurti Jul 23, 2010 2:21 AM (in response to pratiksurti)Can I raise the JIRA for the same ?
No tips or suggestion.
-
4. Re: Hot deploy problem with properties file
jaikiran Jul 23, 2010 2:49 AM (in response to pratiksurti)Pratik Surti wrote:
Can I raise the JIRA for the same ?
I don't yet see anything that makes this look like a bug in AS. Have you attached a debugger and checked your application to see where those property values are being picked up from?
-
5. Re: Hot deploy problem with properties file
pratiksurti Jul 23, 2010 3:18 AM (in response to jaikiran)If I make any changes to Java Class file and do hot deploy, it will work out but it is not picking up the updated properties file values from the debug perspective.
I am replacing my application ear file from admin console to make it redeploy. Because already hot deployment is not working in my current JBAS version.
Possibilities are:
JBAS is not clearing the cache and picking up the old values from the available cache.
JVM behaviour on Windows machine may have their own set of rules of locking or unlocking an object while hot deployment and also clearing the cache (Duplicate tmp folder in JBAS).
May be in later versions of JBAS versions the issue is already resolved. I think there was JIRA pertaining to hot deployment but not sure it also involves property file issue as well.
Let me know your assumption about it.
-
6. Re: Hot deploy problem with properties file
pratiksurti Jul 27, 2010 7:39 AM (in response to jaikiran)Hi,
Can any one look into this issue ?
Let me know if any additional information required.
Regards
Pratik
-
7. Re: Hot deploy problem with properties file
happy-together Aug 27, 2010 7:32 AM (in response to pratiksurti)Hi,
I'm facing the same problem.
(i18n + hot deployment on dev works, i18n + farming/clustering + hot deployment on prod does not)
Any developments?
Is there a workaround?
Any hints or tips would be appreciated.
Thanks,
Roelof
-
8. Re: Hot deploy problem with properties file
pratiksurti Sep 1, 2010 4:21 AM (in response to happy-together)Hi,
At last we manually cleared the cacheList using class loader inside the static block and could able to resolve this issue.
You will also required to do the same thing unless JBAS Dev team provides the solutions .
Another way to let them know about the issue is to raise the JIRA and they will look into it.
Regards
Pratik
-
9. Re: Hot deploy problem with properties file
jaikiran Sep 1, 2010 4:28 AM (in response to pratiksurti)Pratik Surti wrote:
Hi,
At last we manually cleared the cacheList
Which cacheList was that? Any relevant code?
-
10. Re: Hot deploy problem with properties file
happy-together Sep 20, 2010 8:03 AM (in response to happy-together)My problem is solved. It was an error in my code. (A static method jeopardized i18n)