Read Environment Variables in persistence.xml file
问题 I want to read environment variables inside persistence.xml file. Idea is that i don't want my database details to be read from properties file as there is a change of getting properties file override.Instead i want to read details from environment variables. Is there any way to achieve this criteria. Iam using Spring 3 my standalone application will be deployed in unix machine. 回答1: You can update properties in a persistence unit by supplying a Map (see this). Conveniently, environment