Use timers to close connections, or better use a pool and forget to close
connections.

2011/6/7 jeroni <[email protected]>

> Can the Request.cancel() from the client-side be caught on the server
> side?
>
> I've got a database connection from a pool that must be freed before
> cancelling the request.
>
> try {
>          ...database stuff.....
> } catch (SQLException e) {
>          ...error handling here....
> } finally {
>          Database.release(connection); <-- this is not executed when
> cancelling the request
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to