Hi All How do I override configuration of JavaEE specific resources per environment? Resources I need to override: <env-entry> in web.xml <resource-ref> datasources and email resources in web.xml or <Resource> in resources.xml
So far this is what I think could work: - Inspired by Tomcat i guess an external config in /conf/Catalina/localhost/<context>.xml where <Environment> would override <end-entry> and <Resource> would override <resource-ref> could work? - Probably TomEE specific solution of overriding /WEB-INF/resources.xml properties with system properties -DmyResource...=...? The latter I found in a example to configure JavaMail on openejb.apache.com. Would this also work for datasources? And is there a similar way to override the value of <env-entry> with system properties? What is the correct way to do this?
