File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Application Static variable isolation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Application Static variable isolation " Watch "Application Static variable isolation " New topic
Author

Application Static variable isolation

kumaran rajendran
Greenhorn

Joined: Jan 11, 2005
Posts: 1
Hi all,
I am having a web application that creates the properties file when it gets deployed by means of ini.java that said to be �load-on-startup� servlet class and save the database properties as static by calling simple java class. I deployed the same web application once again in the same server that the first application deployed. But I need to create different proper file for the second application and use newly created property file. In my case all the filed are hold by static reference in simple java and its getting shared by two applications and I am not able to hold different property values for second application. How could I deploy second application that has its own static reference?

Thanks in advance
Kumaran
Jeff Shelley
Ranch Hand

Joined: May 21, 2003
Posts: 70
Would using a context-param in web.xml as a key help?


It's almost Friday
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Application Static variable isolation
 
Similar Threads
Is editing of client copy of jnlp file possible when using JWS?
Log4J configuration problem
Properties file in EJB Ear
web application - property file
How to read .properties files on classpath in a web application