• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

how to move configuration file outside ear

 
Ranch Hand
Posts: 37
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I'm building a web application and I want to be able to move one of the property files externaly so that I don't have to re-reploy the whole application when I do a change to this xml file.
Any ideas how to achieve this?

Oh and I'm using Ant to build my webapp if that helps.
 
Ranch Hand
Posts: 81
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create a seperate path to place all the configuration files and define that path in your code where it is referred.

You can use the below steps to reload it when you make any changes instead of recycling your server.

1. Create your own servlet to reload the cache when ever it is modified.
2. Use the Commons api to reload the configuration whenever it is modified
Commons API
 
Klament J. Kruoghst
Ranch Hand
Posts: 37
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the response.

I'm not too clear on #1 tho so I'm gonna go ahead straight to #2, I just need to upload some queue names so that shouldn't need step #1 I don't think.

Thanks again!
 
Well don't expect me to do the dishes! This ad has been cleaned for your convenience:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!