If you use Oracle, some DBCP settings may not work and you may need to
use Oracle connection pool classes.
In particular, I was not able to use DBCP and have a loginTimeout when
using Oracle.
Using Oracle connection pool classes, the validation query does not
work in the same way as in Apache DBCP
Mark Eggers wrote:
> When the database is shut down, I get exception messages logged (you do log
> exceptions, right?). Pages that depend on database content are missing that
> content.
>
> When the database is started up again, a refresh of the pages displays the
> content coming from the data
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
David,
On 2/24/2011 12:08 PM, David Smith wrote:
> With tomcat's built-in database pooling, just adding a validation query
> to the resource config should be all that's necessary. On each borrow
> of a connection, the connection is tested and closed
- Original Message (edited)
From: Michael Ludwig
János Löbb schrieb am 24.02.2011 um 11:24 (-0500):
> On Feb 24, 2011, at 10:58 AM, David kerber wrote:
> > On 2/24/2011 10:49 AM, János Löbb wrote:
> >>
> >> What is the very basic structure of a web application that is
> >> connected to
; Date: Fri, 25 Feb 2011 20:09:00 +0100
> From: mil...@gmx.de
> To: users@tomcat.apache.org
> Subject: Re: programming question
>
> János Löbb schrieb am 24.02.2011 um 11:24 (-0500):
> > On Feb 24, 2011, at 10:58 AM, David kerber wrote:
> > > On 2/24/2011 10:49 AM, Já
János Löbb schrieb am 24.02.2011 um 11:24 (-0500):
> On Feb 24, 2011, at 10:58 AM, David kerber wrote:
> > On 2/24/2011 10:49 AM, János Löbb wrote:
> >>
> >> What is the very basic structure of a web application that is
> >> connected to a database through a connection pool, but would not
> >> req
On 2/24/2011 11:35 AM, chris derham wrote:
When I mention them that their programs should handle the situation
resulting from the database bounce automagically and not the dba handling
the web app or Tomcat shutdowns and restarts, they look at me like I came
from Mars or Saturn :-)
If you cod
With tomcat's built-in database pooling, just adding a validation query
to the resource config should be all that's necessary. On each borrow
of a connection, the connection is tested and closed if the test fails.
Failed connections are replaced with new ones.
--David
On 2/24/2011 10:49 AM, Ján
>
> When I mention them that their programs should handle the situation
> resulting from the database bounce automagically and not the dba handling
> the web app or Tomcat shutdowns and restarts, they look at me like I came
> from Mars or Saturn :-)
>
If you code the app to use a connection pool,
On Feb 24, 2011, at 10:58 AM, David kerber wrote:
> On 2/24/2011 10:49 AM, János Löbb wrote:
>> Hi,
>>
>> What is the very basic structure of a web application that is connected to a
>> database through a connection pool, but would not require to restart itself
>> or restart Tomcat when the da
On 2/24/2011 10:49 AM, János Löbb wrote:
Hi,
What is the very basic structure of a web application that is connected to a
database through a connection pool, but would not require to restart itself or
restart Tomcat when the database goes down - let say for maintenance ?
Telling otherwise how
Hi,
What is the very basic structure of a web application that is connected to a
database through a connection pool, but would not require to restart itself or
restart Tomcat when the database goes down - let say for maintenance ?
Telling otherwise how to write a webapp that would survive a dat
El ds 23 de 10 de 2010 a les 03:17 +0400, en/na Konstantin Kolinko va
escriure:
> From Poll.java of Tomcat trunk:
>
> * @param descriptors Array of signaled descriptors (output parameter)
> *The descriptor array must be two times the size of pollset.
> *and are popu
2010/10/21 Francesc Oller :
I cannot say that I throughly know this. Most part of the below
answers is just from reading the sources:
>
> 1.-
>
> call Poll.poll fails with:
>
> Poll.poll: Unknown error 4294847295
>
>From Poll.java of Tomcat trunk:
* @param descriptors Array of signaled des
Again, this code doesn't work:
import org.apache.tomcat.jni.*;
import java.util.*;
public class ExampleAPR {
public static void main(String[] args) {
int err = 0;
try {
// Initialize APR library
Library.initialize(null);
// Create pool
long pool =
Ooopps, yes, I forgot it. Thanks, francesc
El dc 20 de 10 de 2010 a les 06:50 +0200, en/na Mladen Turk va escriure:
> On 10/20/2010 01:21 AM, Francesc Oller wrote:
> > Please what I am doing wrong?
> >
> >Socket.bind(s, addr);
> >
>
> You need to tell the socket to listen after
> binding
On 10/20/2010 01:21 AM, Francesc Oller wrote:
Please what I am doing wrong?
Socket.bind(s, addr);
You need to tell the socket to listen after
binding it to the address. eg:
Socket.listen(s, 10);
long ns = Socket.accept(s);
Regards
--
^TM
-
Please what I am doing wrong?
import org.apache.tomcat.jni.*;
import java.util.*;
public class ExampleAPR {
public static void main(String[] args) {
try {
// Initialize APR library
Library.initialize(null);
// Create pool
long pool = Pool.create(0);
18 matches
Mail list logo