• Post Reply Bookmark Topic Watch Topic
  • New Topic

Managing persistence.xml between dev/stage/prod

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A nice thing about defining your datasource in Spring's application context is being able to pull values from properties files. I can then do something like set an environment variable and use that in the app context to tell spring which properties file to load (dev/stage/prod/whatever) and I'd pull the correct database info.

What is the appropriate way to handle this without Spring and using persistence.xml for all your JPA configuration?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!