users@glassfish.java.net

Re: what settings might kill a long running JDBC connection?

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Mon, 16 Apr 2012 11:43:54 +0200

On 04/13/2012 09:04 PM, modjklist_at_comcast.net wrote:
> Let me restate this question (bringing into the conversation the client connection as well):
>
> I have an application server using a GlassFish 3.1.2 to connect a web application used by many clients over the internet to access a Java method. This Java method communicates with a stored procedure in a database server running Oracle 11.2 using a JNDI connection pool in GlassFish.
>
> The stored procedure polls the database to determine when a process completes and then returns results to the calling Java method. This process may take some time to complete (minutes to hours).
>
>
> I'm worried that some (perhaps default) setting within GlassFish will kill either the client-to-application-server connection, or the java-method-JDBC connection, before the stored procedure completes.
>
> What are the issues that could effect this and how to access their settings to change them to something appropriate for this scenario? Any downside to doing so?
I can't be sure, but try to disable request-timeout in http protocol like:
asadmin set
server-config.network-config.protocols.protocol.http-listener-1.http.request-timeout-seconds=-1

If long running servlets is what you expect - there is no downside.

WBR,
Alexey.