users@glassfish.java.net

Re: Same app twice using JPA

From: Edson Carlos Ericksson Richter <edson.richter_at_mgrinformatica.com.br>
Date: Thu, 21 Jun 2007 09:53:38 -0300

> Why can't you have 2 different PU names in 2 different persistence.xml
> files (that reference the same Entities - this shouldn't be the problem)?
>
> thanks,
> -marina
Actually, I don't have 2 different persistence.xml... It's only 1 app
being deployied twice - only connection setting is changed on final WAR,
just before deployment (much like if I open the WAR with WinZip, edit
Persistence.xml to set new connection settings, then update WAR).


Regards,

Edson Richter