users@glassfish.java.net

Re: specifying jta-data-source at deploy time

From: <glassfish_at_javadesktop.org>
Date: Tue, 22 Jun 2010 13:20:55 PDT

Hello,

In the DataSourceDefinition case, we would need to specify the serverName, user, password, ... in the source files, which means that if we would like to deploy an application multiple times (in another contextroot, using another database) we would need to modify the source and rebuild the application.

It would be much more convenient to deploy the same war (or ear) file again, but overruling the contextroot (using --contextroot) and some other (to be defined) deploy time option to overrule the JDBC resource. However, I guess this is more tricky than the contextroot option since there can be multiple persistence units specified in the persistence.xml.


Thanks for the replies.
Erwin
[Message sent by forum member 'erwin_lodgon']

http://forums.java.net/jive/thread.jspa?messageID=475411