I had a similar problem and what i did was set the autoReconnect attribute
to true en my tomee.xml datasource.
What do you mean with retry until the connection springs to life? do you
have some schedules or jobs running and want to retry again when the
connection is available again? or just want when somebody click any button
the app can connect again (this was my case)??


2013/6/28 Romain Manni-Bucau <[email protected]>

> With an ejb timer?
> Le 28 juin 2013 17:46, "James Green" <[email protected]> a écrit :
>
> > Hopefully a quick one.
> >
> > On boot our application attempts to read data through a JPA
> EntityManager.
> > If the database connection fails at this point the entire application is
> > effectively dead.
> >
> > Is there a way to essentially ask the database layer to retry until the
> > connection springs to life?
> >
> > Thanks,
> >
> > James
> >
>



-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Reply via email to