users@glassfish.java.net

Re: Disabling JPA deployment

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Wed, 10 Sep 2008 13:33:15 -0700

If there are no EM/EMF injection or lookup, JPA should be ignored until used.
What kind of deployment problems do you encounter?

thanks,
-marina

Jose Noheda wrote:
> Hi,
>
> While deploying a WAR file that includes a persistence.xml Glassfish
> starts the JPA deployment. I'd like to use Spring JPA support instead
> this time (because the production server does not support JEE yet..).
> This would be no problem (other than an increased deployment time) if it
> wasn't for a log4j init error that happens and leaves me with no traces.
> This of course is a deal breaker so I'm wondering how can I disable the
> automatic discovery of JPA.
>
> Regards