users@glassfish.java.net

Re: specifying jta-data-source at deploy time

From: Mitesh Meswani <mitesh.meswani_at_oracle.com>
Date: Fri, 18 Jun 2010 11:08:51 -0700

Please file an RFE against enetity-persistence component to track this.

Thanks,
Mitesh
On 6/18/2010 1:35 AM, glassfish_at_javadesktop.org wrote:
> Situation: I have a WAR containing a persistence.xml, where a PU is defined and where the jta-data-source is set and points to a jdbc resource.
>
> The issue I have is that I need multiple instances of this WAR for different purposes, and each of these instances should point to a different jdbc resource.
>
> I am wondering if this is something that can be done at deploy-time (e.g. like deploying a war on a specific contextoor). Currently, I have to open the WAR, change the persistence.xml, rebuild it, and repeat this process for every instance. It would be nice if I can specify the jta-data-source of a persistence-unit at deploy time.
>
> Any ideas?
> [Message sent by forum member 'johanvos']
>
> http://forums.java.net/jive/thread.jspa?messageID=474789
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>