Announcement Announcement Module
Collapse
No announcement yet.
1 war for test and production database Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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 jdbc.properties 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 jdbc.properties 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.

    Comment

    Working...
    X