• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Application Static variable isolation

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Would using a context-param in web.xml as a key help?
 
Eat that pie! EAT IT! Now read this tiny ad. READ IT!
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic