users@glassfish.java.net

Re: glassfish infinitly repeats tries to insert to database

From: <glassfish_at_javadesktop.org>
Date: Sun, 22 Mar 2009 10:42:27 PDT

I know that all my sql calls or JMS calls need to be wrapped with try-catch, but my question is how to fix hanged glassfish when I forgot to wrap those calls?

> Hi,
>
> Ensure that you got the all yours sql calls inside a
> try catch(Sql
> Exception) and threat it, 'cause otherwise EJB
> Container will retry the
> process whether EJBException is being throw (whether
> the process was started
> by jms).
[Message sent by forum member 'argos' (argos)]

http://forums.java.net/jive/thread.jspa?messageID=338364