Results 1 to 2 of 2
  1. #1
    Andrey is offline Member
    Join Date
    Jul 2009
    Posts
    2
    Rep Power
    0

    Default Preserving web application configuration

    Hello,

    For the web applications I developed before I stored application setting (database connection information, logging parameters, etc) under WEB-INF directory. But because of that I cannot just redeploy the application when it needs to be updated, I have to either save these files, redeploy, and then restore them, or update manually, file by file, keeping application settings intact. I'm starting another web application and trying to figure out, maybe there is a better way? The application is supposed to be run under Tomcat but if there is a way to keep it application server agnostic - even better. Does anyone knows how application settings can be kept more easily?

    Thank you,
    Andrey

  2. #2
    kzvi.kzvi.1 is offline Member
    Join Date
    Oct 2008
    Location
    US
    Posts
    58
    Rep Power
    0

    Default

    Anythig inside WEB-INF dir is app specific. If you are looking for db connection which can be shared acrross apps then use app server connection pools using datasource.

    Not sure if there is similar for logging exists.
    Have fun....
    JAVA FAQs

Similar Threads

  1. Deployment of JRE 6 u7 to desktop pc / Configuration
    By rrathbun in forum New To Java
    Replies: 0
    Last Post: 09-12-2008, 08:37 PM
  2. svn and configuration files
    By caffeine in forum New To Java
    Replies: 1
    Last Post: 08-21-2008, 04:14 AM
  3. Replies: 0
    Last Post: 09-26-2007, 08:38 PM
  4. Replies: 0
    Last Post: 09-26-2007, 08:35 PM
  5. save configuration
    By Peter in forum XML
    Replies: 2
    Last Post: 07-04-2007, 07:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •