Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to move configuration file outside ear

 
Klament J. Kruoghst
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.
 
Santhosh ayiappan
Ranch Hand
Posts: 80
Eclipse IDE Java Oracle
  • 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic