aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes how to move configuration file outside ear Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how to move configuration file outside ear" Watch "how to move configuration file outside ear" New topic
Author

how to move configuration file outside ear

Klament J. Kruoghst
Ranch Hand

Joined: Oct 24, 2008
Posts: 37
    
    1
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

Joined: Jan 30, 2007
Posts: 80

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

Joined: Oct 24, 2008
Posts: 37
    
    1
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!
 
jQuery in Action, 2nd edition
 
subject: how to move configuration file outside ear