(The database should not fail - but when it does...) For handling
those the irrecoverable errors you could use Tynamo's
tapestry-exceptionpage module, see
http://tynamo.org/tapestry-exceptionpage+guide for details.

Kalle


On Fri, Aug 20, 2010 at 4:54 AM, Elin <polit...@gmail.com> wrote:
>
> I have a project where im using hibernate with Tapestry. Everything works
> fine. Following the tutorials, i created my Hibernate entities, i created my
> DAOs where i inject the hibernate session at and i use them for my data
> access. The problem comes when my database fails (its down, unreachable or
> whatever). I get a weird tapestry error page cause of the components trying
> to access to data.
>
> Is it possible to configure tapestry (or tomcat, dunno who should manage the
> exception at this point) so i can capture if database connection with
> hibernate fails and im redirected to a custom error page? Alternative
> options are wellcome too.
>
> Thx in advance.
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Capturing-hibernate-exception-tp2642048p2642048.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to