persistence@glassfish.java.net

Re: can you set the persistence-unit data-source at runtime?

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Fri, 20 Oct 2006 16:54:34 -0700

Hi Nitin,

Can you be a bit more specific at what are you trying to accomplish?

thanks,
-marina

Nitin Nahata wrote:
> data-source for a persistence-unit is set in the persistence.xml file.
> Which means that it should be known at compile time.
>
> Is there a way to set the data-source at runtime instead?
>
> Thanks
> Nitin