Announcement Announcement Module
No announcement yet.
1 war for test and production database Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 1 war for test and production database

    Is it possible to externally configure database properties (via applicationContext-jdbc.xml and perhaps), so that one and only one war file would on test server access test database and on production server would access production database? So, war file would not have any info about database properties, but would get them from the environment.
    I have tried to set or applicationContext-jdbc.xml outsed WEB-INF directory, but it does not work.

    Thanks for any idea.

  • #2
    Why not use JNDI - then you can configure it externally.