-
1. Re: Multiple data sources for CMP
jcordes Oct 14, 2003 12:34 AM (in response to kentcb)Hi Kent !
AFAIK you have to define the datasource-mapping along with the datasource (how else could the container guess which database-type is actually used ?). But you can get past the limitation of setting a static value in XDoclet. Just specify a property, lets say datasource-jndi-name and datasource-mapping in build.xml. Then just use
@jboss.persistence
* create-table="false"
* remove-table="false"
* datasource="${datasource-jndi-name}"
* datasource-mapping="${datasource-mapping}"
HTH,
Jochen. -
2. Re: Multiple data sources for CMP
kentcb Oct 14, 2003 1:02 AM (in response to kentcb)Thanks Jochen - that helps a little.
I guess my aim is to avoid environment-specific information being included as part of the build. If I can avoid this then I can deploy the same EAR regardless of the environment. Settings specific to the environment can then be configured separately.
I'm not sure whether that utopia is even possible. Anyone else been faced with the same problem?
Thanks,
Kent