users@glassfish.java.net

Re: specifying jta-data-source at deploy time

From: Sanjeeb Sahoo <Sahoo_at_Sun.COM>
Date: Wed, 23 Jun 2010 07:08:29 +0530

Both you and Mitesh are right. DataSourceDefinition is not a suitable
alternative here.

On Wednesday 23 June 2010 01:50 AM, glassfish_at_javadesktop.org wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>