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
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?