Re: Tomcat "JNDI Datasource How-To" documentation & driver managers

2021-08-17 Thread Andrew Tanton
Thank you - very helpful & much appreciated. On Sat, Aug 14, 2021 at 4:24 PM Mark Thomas wrote: > On 14/08/2021 01:51, Andrew Tanton wrote: > > In the Tomcat "JNDI Datasource How-To" documentation page > > < > http://tomcat.apache.org/tomcat-9.0-doc/

Re: Tomcat "JNDI Datasource How-To" documentation & driver managers

2021-08-14 Thread Mark Thomas
On 14/08/2021 01:51, Andrew Tanton wrote: In the Tomcat "JNDI Datasource How-To" documentation page <http://tomcat.apache.org/tomcat-9.0-doc/jndi-datasource-examples-howto.html#comments_section>, there is an unusually opinionated section, which discusses the Java service provider

Tomcat "JNDI Datasource How-To" documentation & driver managers

2021-08-13 Thread Andrew Tanton
In the Tomcat "JNDI Datasource How-To" documentation page <http://tomcat.apache.org/tomcat-9.0-doc/jndi-datasource-examples-howto.html#comments_section>, there is an unusually opinionated section, which discusses the Java service provider (driver manager) mechanism: "*Howeve

Re: postgresql jndi datasource with certificate authentication?

2019-10-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Felix, On 10/26/19 16:37, Felix Schumacher wrote: > > Am 22.10.19 um 20:07 schrieb Magosányi Árpád: >> Thank you all for the suggestions. >> >> Based on the documentation, my setup should work: The server >> certificate is already processed and ac

Re: postgresql jndi datasource with certificate authentication?

2019-10-26 Thread Felix Schumacher
Am 22.10.19 um 20:07 schrieb Magosányi Árpád: > Thank you all for the suggestions. > > Based on the documentation, my setup should work: The server certificate > is already processed and accepted (I know that because I could not get > it right at the first try). The driver is supposed to work wit

Re: postgresql jndi datasource with certificate authentication?

2019-10-22 Thread Magosányi Árpád
Thank you all for the suggestions. Based on the documentation, my setup should work: The server certificate is already processed and accepted (I know that because I could not get it right at the first try). The driver is supposed to work with a PEM certificate and a pkcs-8 DER encoded key, and tho

Re: postgresql jndi datasource with certificate authentication?

2019-10-22 Thread Christopher Schultz
Arpad, On 10/22/19 12:19, logo wrote: I have the following in context.xml: url="jdbc:postgresql://infra.kodekonveyor.com:5432/users?ssl=true&sslmode=verify-ca" username="market" maxTotal="20" maxIdle="10" maxWaitMillis="-1"/> I have this in ~tomcat/.postgresq

Re: postgresql jndi datasource with certificate authentication?

2019-10-22 Thread logo
Arpad and Chris, Am 2019-10-22 18:07, schrieb Christopher Schultz: Magosányi, On 10/22/19 11:09, Magosányi Árpád wrote: As I understand you are suggesting to use direct connection to the database. The servlet needs a JNDI datasource, and the question is about configuring that datasource in

Re: postgresql jndi datasource with certificate authentication?

2019-10-22 Thread Christopher Schultz
Magosányi, On 10/22/19 11:09, Magosányi Árpád wrote: As I understand you are suggesting to use direct connection to the database. The servlet needs a JNDI datasource, and the question is about configuring that datasource in tomcat. As I can modify the servlet, I could choose to set up hibernate

Re: postgresql jndi datasource with certificate authentication?

2019-10-22 Thread Magosányi Árpád
Peter, As I understand you are suggesting to use direct connection to the database. The servlet needs a JNDI datasource, and the question is about configuring that datasource in tomcat. As I can modify the servlet, I could choose to set up hibernate in other ways, but I would like to separate the

Re: postgresql jndi datasource with certificate authentication?

2019-10-22 Thread logo
this working in mysql... Peter Am 2019-10-22 12:56, schrieb Magosányi Árpád: Hi! Anyone have a postgresql jndi datasource with certificate authentication working? I have the following in context.xml:     I have this in ~tomcat/.postgresql: root@market:/var/lib/tomcat9/.postgr

postgresql jndi datasource with certificate authentication?

2019-10-22 Thread Magosányi Árpád
Hi! Anyone have a postgresql jndi datasource with certificate authentication working? I have the following in context.xml:     I have this in ~tomcat/.postgresql: root@market:/var/lib/tomcat9/.postgresql# ls -lL total 11 -rw-r--r-- 1 root   root 4597 Oct 21 12:49 postgresql.crt -r

Re: Create a JNDI Datasource through JMX

2019-02-04 Thread Arnaud Yahoo
Hello Luis, thanks for your answer. Connection pool exposes an MBean (jmxEnabled is true by default). Using jconsole, I can see pool defined in server configuration or context configuration, but I cannot see neither change properties of existing pool (maxActive for example). Of course I cou

Re: Create a JNDI Datasource through JMX

2019-02-04 Thread Luis Rodríguez Fernández
Hello Arnaud, mmm, nothing stops you from create your custom mbean interface that wraps your datasource. >From Tomcat 8.5 doc "The connection pool object exposes an MBean that can be registered" [1] Perhaps you could start having a look here. Nevertheless may I ask you what is your use case for t

Create a JNDI Datasource through JMX

2019-02-04 Thread Arnaud Yahoo
Hello, I would like to know if it is possible to create/configure a Datasource Ressource in tomcat using JMX. I tried with a tomcat 8.5 and jconsole, I managed to create some resource with type javax.sql.Datasource, but I did not find a way to configure the datasource (jdbc driver, url, max

Re: configuring jndi datasource

2018-08-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Francesco, On 8/1/18 4:10 PM, Francesco Viscomi wrote: > I do not understand unfortunately; I have only one file under conf > directory: contex.xml; You shouldn't be modifying that file, because it will apply to all contexts. Instead, you should cr

Re: configuring jndi datasource

2018-08-01 Thread Mark Thomas
On 01/08/18 21:10, Francesco Viscomi wrote: > I do not understand unfortunately; > I have only one file under conf directory: contex.xml; > So every application installed on this instance of tomcat can view the > resource; It is like I have configured the resource globally; No it is not. Configu

Re: configuring jndi datasource

2018-08-01 Thread Francesco Viscomi
I do not understand unfortunately; I have only one file under conf directory: contex.xml; So every application installed on this instance of tomcat can view the resource; It is like I have configured the resource globally; I can understand it, if every application has it's own context.xml file but

Re: configuring jndi datasource

2018-08-01 Thread Mark Thomas
On 01/08/18 20:22, Francesco Viscomi wrote: > Hi all, > I'm using tomcat 8.5 and I need to configure a datasource in tomcat; > > If a configure it in the contex.xml file under conf directory using the tag > everythings goes well. > > But if I configure it in the server.xml file under the conf di

configuring jndi datasource

2018-08-01 Thread Francesco Viscomi
Hi all, I'm using tomcat 8.5 and I need to configure a datasource in tomcat; If a configure it in the contex.xml file under conf directory using the tag everythings goes well. But if I configure it in the server.xml file under the conf directory, a message tell me that the resource that i have

Re: JNDI DataSource in Tomcat 8: maxTotal and maxWaitMillis

2016-05-25 Thread Woonsan Ko
che.tomcat.dbcp.dbcp2.BasicDataSourceFactory), it works like a charm! Cheers, Woonsan > > Matk > > >> >> Regards, >> >> Woonsan >> >> [1] https://tomcat.apache.org/migration-8.html#Database_Connection_Pooling >> [2] >> http://tomcat.a

Re: JNDI DataSource in Tomcat 8: maxTotal and maxWaitMillis

2016-05-25 Thread Mark Thomas
t implementation (org.apache.tomcat.jdbc). Which one are you actually using? Matk > > Regards, > > Woonsan > > [1] https://tomcat.apache.org/migration-8.html#Database_Connection_Pooling > [2] > http://tomcat.apache.org/tomcat-8.0-doc/jndi-datasource-examples-howto.html

JNDI DataSource in Tomcat 8: maxTotal and maxWaitMillis

2016-05-24 Thread Woonsan Ko
ter even though it's supported by the underlying dbcp? Regards, Woonsan [1] https://tomcat.apache.org/migration-8.html#Database_Connection_Pooling [2] http://tomcat.apache.org/tomcat-8.0-doc/jndi-datasource-examples-howto.html ---

Re: JNDI Datasource override default settings for ALL resources in a central XML ?

2015-09-16 Thread Aurelien Pernoud
Hello Mark, Thanks for the quick reply, we will definitely try this ! Aurelien

Re: JNDI Datasource override default settings for ALL resources in a central XML ?

2015-09-16 Thread Mark Thomas
On 16/09/2015 09:59, Aurelien Pernoud wrote: > Hello, > > In our Tomcat (7 or 8 doesn't matter) servers we always override many > parameters among datasources, in each application context file (we deploy > one context file / application under conf/Catalina/localhost). > > Every time I have to set

JNDI Datasource override default settings for ALL resources in a central XML ?

2015-09-16 Thread Aurelien Pernoud
Hello, In our Tomcat (7 or 8 doesn't matter) servers we always override many parameters among datasources, in each application context file (we deploy one context file / application under conf/Catalina/localhost). Every time I have to set : - maxActive - maxIdle - validationQuery (we mostly work

Re: Tomcat JNDI Datasource

2014-02-07 Thread David Newman
On 2/6/2014 10:45 PM, Filip Hanik wrote: > Yes, define the connection pool in server.xml, then > in context.xml define a That binds the shared connection pool > to each context. Thank you, that worked perfectly. Although I think you meant . -Dave -

Re: Tomcat JNDI Datasource

2014-02-06 Thread Filip Hanik
Yes, define the connection pool in server.xml, then in context.xml define a That binds the shared connection pool to each context. On Thursday, February 6, 2014, David Newman wrote: > I have defined a JNDI JDBC datasource as a resource in the global > context.xml file. I was under the impre

Tomcat JNDI Datasource

2014-02-06 Thread David Newman
I have defined a JNDI JDBC datasource as a resource in the global context.xml file. I was under the impression that what this does is to create a shared connection pool that is tomcat wide. But in practice what seems to happen is that a new instance of that connection pool is created for each con

RE: JAAS Module Tomcat 7 (Bundling and JNDI Datasource access)

2013-01-24 Thread Justin Rosenberg
" for the help. ~Justin -Original Message- From: Justin Rosenberg [mailto:rosenbe...@crlcorp.com] Sent: Wednesday, January 23, 2013 7:06 PM To: users@tomcat.apache.org Subject: JAAS Module Tomcat 7 (Bundling and JNDI Datasource access) I'm running into issues accessing a JNDI

JAAS Module Tomcat 7 (Bundling and JNDI Datasource access)

2013-01-23 Thread Justin Rosenberg
I'm running into issues accessing a JNDI datasource in a JAAS module. Can I bundle a JAAS module in my war file? When I try to do this by defining the Realm in the context.xml of the web application I get a java.lang.ClassNotFoundException. The documentation specifies I must put the m

Re: Injecting JNDI datasource context outside tomcat container

2012-10-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pramod, On 10/30/12 11:32 AM, p.krishnamoor...@accenture.com wrote: > Hi, > > I was working to inject the JNDI datasource context outside the > tomcat container. I referred this link - > https://blogs.oracle.com/r

Re: Injecting JNDI datasource context outside tomcat container

2012-10-30 Thread Mark Eggers
On 10/30/2012 8:32 AM, p.krishnamoor...@accenture.com wrote: Hi, I was working to inject the JNDI datasource context outside the tomcat container. I referred this link - https://blogs.oracle.com/randystuph/entry/injecting_jndi_datasources_for_junit. In order to initialize the datasource

RE: Injecting JNDI datasource context outside tomcat container

2012-10-30 Thread Martin Gainty
. > From: p.krishnamoor...@accenture.com > To: users@tomcat.apache.org > Subject: Injecting JNDI datasource context outside tomcat container > Date: Tue, 30 Oct 2012 15:32:01 + > > Hi, > > I was working to inject the JNDI datasource context outside the tomcat >

Injecting JNDI datasource context outside tomcat container

2012-10-30 Thread p.krishnamoorthy
Hi, I was working to inject the JNDI datasource context outside the tomcat container. I referred this link - https://blogs.oracle.com/randystuph/entry/injecting_jndi_datasources_for_junit. In order to initialize the datasource context, I had to put three java-naming jars (naming-java-5.0.28

RE: JNDI datasource error upgrading from Tomcat 7.0.23 to 7.0.27

2012-10-28 Thread Bob Dietrich
tober 27, 2012 5:24 PM To: Tomcat Users List Subject: Re: JNDI datasource error upgrading from Tomcat 7.0.23 to 7.0.27 Hello, I am mot familiar with Hibernate or Liferay, but I ran into what appear to be similar. Look onto the thread titled " JDBCRealm conection timeout failure on getPasswor

RE: JNDI datasource error upgrading from Tomcat 7.0.23 to 7.0.27

2012-10-28 Thread Bob Dietrich
tion. Bob -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Saturday, October 27, 2012 3:28 PM To: Tomcat Users List Subject: Re: JNDI datasource error upgrading from Tomcat 7.0.23 to 7.0.27 2012/10/28 Bob Dietrich : > Greetings, > I've researched this pro

Re: JNDI datasource error upgrading from Tomcat 7.0.23 to 7.0.27

2012-10-27 Thread Aladin Dajani
Hello, I am mot familiar with Hibernate or Liferay, but I ran into what appear to be similar. Look onto the thread titled " JDBCRealm conection timeout failure on getPassword" in thus list. It may help. Aladin On Oct 27, 2012, at 6:28 PM, Konstantin Kolinko wrote: > 2012/10/28 Bob Dietrich :

Re: JNDI datasource error upgrading from Tomcat 7.0.23 to 7.0.27

2012-10-27 Thread Konstantin Kolinko
2012/10/28 Bob Dietrich : > Greetings, > I've researched this problem for several days, but I must be doing something > wrong. I'm trying to upgrade from Tomcat 7.0.23 to 7.0.27 (actually running > Liferay). I'm getting the following exception when trying to access a > datasource via Hibernate: > >

JNDI datasource error upgrading from Tomcat 7.0.23 to 7.0.27

2012-10-27 Thread Bob Dietrich
Greetings, I've researched this problem for several days, but I must be doing something wrong. I'm trying to upgrade from Tomcat 7.0.23 to 7.0.27 (actually running Liferay). I'm getting the following exception when trying to access a datasource via Hibernate: 16:28:27,694 ERROR [http-bio-8080-

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-06-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zuxiong, On 6/6/12 6:47 AM, zuxiong lin wrote: > Hi ALL. Anybody help ? Filip asked for your startup logs and you never posted them. If you post them, perhaps we can help. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-06-06 Thread zuxiong lin
Hi ALL. Anybody help ? On Thu, May 3, 2012 at 10:00 PM, zuxiong lin wrote: > Hei. Of course, I write the name in element. > But Tomcat 7's logs report it . > Please to find others before this letter, and you will read the Tomcat's > logs! > > minConnectionsPerPartition="3" name="jdbc/SoftmgrV3

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-03 Thread zuxiong lin
Hei. Of course, I write the name in element. But Tomcat 7's logs report it . Please to find others before this letter, and you will read the Tomcat's logs! > minConnectionsPerPartition="3" name="jdbc/SoftmgrV3" partitionCount="2" On Thu, May 3, 2012 at 9:24 PM, Filip Hanik Mailing Lists < devl

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-03 Thread Filip Hanik Mailing Lists
found it, check the logs at startup for the error and post it here. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-03 Thread Filip Hanik Mailing Lists
reading this on my phone, but does your element have a name attribute? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread zuxiong lin
rce" .../> > > Filip > > > -Original Message- > > From: zuxiong lin [mailto:linzuxiong1...@gmail.com] > > Sent: Wednesday, May 02, 2012 8:40 PM > > To: Tomcat Users List > > Subject: Re: How to config the Tomcat 7.x JNDI datasource by using > > Bo

RE: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread Filip Hanik (mailing lists)
Aah, yes you are right. The specify Filip > -Original Message- > From: zuxiong lin [mailto:linzuxiong1...@gmail.com] > Sent: Wednesday, May 02, 2012 8:40 PM > To: Tomcat Users List > Subject: Re: How to config the Tomcat 7.x JNDI datasource by

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread zuxiong lin
> critical features, like validation etc > > Filip > > > -Original Message- > > From: zuxiong lin [mailto:linzuxiong1...@gmail.com] > > Sent: Wednesday, May 02, 2012 7:36 PM > > To: Tomcat Users List > > Subject: Re: How to config the Tomcat 7.x JNDI data

RE: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread Filip Hanik (mailing lists)
ubject: Re: How to config the Tomcat 7.x JNDI datasource by using > BoneCP ?? > > > Don't do that: remove mysql-connector-j-5.1.9.jar from WEB-INF/lib. > > Also remove the JAR for BoneCP. > > I donot have a try now. This morning I received your mail ,UTC+8. > Be

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread zuxiong lin
> Don't do that: remove mysql-connector-j-5.1.9.jar from WEB-INF/lib. > Also remove the JAR for BoneCP. I donot have a try now. This morning I received your mail ,UTC+8. Before I sent my mail for help , I just put the jar in both Tomcat/lib dir and webapp/WEB-INF/lib. And I found I am very confuse

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zuxiong, On 5/2/12 9:13 PM, zuxiong lin wrote: > When I use BoneCP in per-web-app, it is OK with partitionCount . > "partitionCount " is a property of BoneCP. Okay, that's fine then. > MySQL Connector/J 5.1.19, I put it into both Tomcat's lib/

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread zuxiong lin
; > Sent: Wednesday, May 02, 2012 2:35 AM > > To: Tomcat Users List > > Subject: Re: How to config the Tomcat 7.x JNDI datasource by using > > BoneCP ?? > > > > See appending mail. > > > > On Wed, May 2, 2012 at 4:23 PM, Pid wrote: > > &

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread zuxiong lin
When I use BoneCP in per-web-app, it is OK with partitionCount . "partitionCount " is a property of BoneCP. MySQL Connector/J 5.1.19, I put it into both Tomcat's lib/ directory and my webapp's WEB-INF/lib directory . (I can have a try. I think it doesnot work : > you'll need to have the JAR fi

RE: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread Filip Hanik (mailing lists)
http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html > -Original Message- > From: zuxiong lin [mailto:linzuxiong1...@gmail.com] > Sent: Wednesday, May 02, 2012 2:35 AM > To: Tomcat Users List > Subject: Re: How to config the Tomcat 7.x JNDI datasource by using >

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zuxiong, On 5/2/12 3:09 AM, zuxiong lin wrote: > In Tomcat 7 , conf/server.xml -> GlobalNamingResources driverClass="com.mysql.jdbc.Driver" * > factory="com.jolbox.bonecp.BoneCPDataSource"* > idleMaxAgeInMinutes="600" jdbcUrl="jdbc:mysql:// > 10.2

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread zuxiong lin
See appending mail. On Wed, May 2, 2012 at 4:23 PM, Pid wrote: > On 02/05/2012 02:12, zuxiong lin wrote: > > Hi, All. > > Any help ? > > > > Thanks? > > > > Perhaps you could read the following: > > http://www.catb.org/~esr/faqs/smart-questions.html > > and then rephrase your question? > > > p

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread Pid
On 02/05/2012 02:12, zuxiong lin wrote: > Hi, All. > Any help ? > > Thanks? > Perhaps you could read the following: http://www.catb.org/~esr/faqs/smart-questions.html and then rephrase your question? p -- [key:62590808] signature.asc Description: OpenPGP digital signature

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread zuxiong lin
xConnectionsPerPartition="100" > minConnectionsPerPartition="3" name="jdbc/SoftmgrV3" partitionCount="2" > password="root" releaseHelperThreads="2" > type="com.jolbox.bonecp.BoneCPDataSource" username="root" />

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread zuxiong lin
Actually , I have do it 5 times by different way. But Tomcat 7 tells me Exception! In Tomcat 7 , conf/server.xml -> GlobalNamingResources In my Web App: META-INF/context.xml : web-inf/web.xml : jndi datasource jdbc/SoftmgrV3 com.jolbox.bonecp.BoneCPDataSource Container spring jee: *

Re:How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-01 Thread 490548661
see tomcat domcument mybe that will help you -- Original -- From: "zuxiong lin"; Date: 2012??5??2??(??) 9:12 To: "users"; Subject: How to config the Tomcat 7.x JNDI datasource by using BoneCP ?? Hi, All. Any help ? Thanks?

How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-01 Thread zuxiong lin
Hi, All. Any help ? Thanks?

Re: JNDI-Datasource: what happens if the database is not ready when Tomcat starts?

2009-08-25 Thread Mikolaj Rydzewski
Fred Janon wrote: I am looking into using the JNDI/Datasource facility in Tomcat 5.5 to connect to a mySQL 5.0 database on a Windows 2003 server. Both Tomcat and mySQL run as services. What happens if the Tomcat service starts before mySQL? Does Tomcat wait for a while for the DB to be ready

JNDI-Datasource: what happens if the database is not ready when Tomcat starts?

2009-08-25 Thread Fred Janon
Hi, I am looking into using the JNDI/Datasource facility in Tomcat 5.5 to connect to a mySQL 5.0 database on a Windows 2003 server. Both Tomcat and mySQL run as services. What happens if the Tomcat service starts before mySQL? Does Tomcat wait for a while for the DB to be ready? Does it launch

Re: JNDI DataSource Leaks

2009-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nicholas, On 8/7/2009 4:39 PM, Nicholas Sushkin wrote: > On Friday 07 August 2009 10:53, Christopher Schultz wrote: > >> Recently, there was a post on the list regarding connection pool leakage >> from Tomcat (ref: >> http://www.nabble.com/Right-way-

Re: JNDI DataSource Leaks

2009-08-07 Thread Nicholas Sushkin
On Friday 07 August 2009 10:53, Christopher Schultz wrote: > Recently, there was a post on the list regarding connection pool leakage > from Tomcat (ref: > http://www.nabble.com/Right-way-to-close-database-connection-pool-td24832 >197.html). This is the code I picked up from http://wiki.apache.or

Re: JNDI DataSource Leaks

2009-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kees Jan, On 8/7/2009 12:44 PM, Kees Jan Koster wrote: > I have to restart Tomcat regularly because it exhausted my MySQL > connections. Show processlist confirms the problem. > > I use Hibernate. Do you? No, I just use straight JDBC in all my code.

Re: JNDI DataSource Leaks

2009-08-07 Thread Kees Jan Koster
er class that would shut down a JNDI DataSource and installed it in my development environment. Satisfied that I was protected from the evils of JDBC connection pool leakage, I moved on with my life. This morning, as I did a live build-and-re-deploy of my webapp, I saw the JNDIDataSourceShutdownListe

JNDI DataSource Leaks

2009-08-07 Thread Christopher Schultz
ted a listener class that would shut down a JNDI DataSource and installed it in my development environment. Satisfied that I was protected from the evils of JDBC connection pool leakage, I moved on with my life. This morning, as I did a live build-and-re-deploy of my webapp, I sa

Re: How to turn off JNDI datasource connection pooling

2009-01-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Len, Len Popp wrote: > On Fri, Jan 16, 2009 at 16:45, Christopher Schultz > wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Keith, >> >> Keith Thomas wrote: >>> As part of the >>> deployment I just need a way of defining the datasour

Re: How to turn off JNDI datasource connection pooling

2009-01-17 Thread Pid
Caldarale, Charles R wrote: >> From: Pid [mailto:p...@pidster.com] >> Subject: Re: How to turn off JNDI datasource connection pooling >> >> I'm getting a little confused trying to follow this thread. > > There was a distinct lack of specifics in the beginning

RE: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Caldarale, Charles R
> From: Pid [mailto:p...@pidster.com] > Subject: Re: How to turn off JNDI datasource connection pooling > > I'm getting a little confused trying to follow this thread. There was a distinct lack of specifics in the beginning. However, I think I understand why he's doing thi

Re: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Pid
Caldarale, Charles R wrote: >> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] >> Subject: RE: How to turn off JNDI datasource connection pooling >> >> Look at the construct in the servlet spec. > > O.k., that was too simplistic. You'll also ne

Re: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Len Popp
On Fri, Jan 16, 2009 at 16:45, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Keith, > > Keith Thomas wrote: >> As part of the >> deployment I just need a way of defining the datasource in a manner that is >> external to my code and configurable by administrators.

Re: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Keith, Keith Thomas wrote: > As part of the > deployment I just need a way of defining the datasource in a manner that is > external to my code and configurable by administrators. Use of a DataSource implies the use of a connection pool, which seems

RE: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Caldarale, Charles R
> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Subject: RE: How to turn off JNDI datasource connection pooling > > Look at the construct in the servlet spec. O.k., that was too simplistic. You'll also need the following. Does your DB driver include some f

RE: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Caldarale, Charles R
> From: Caldarale, Charles R > Subject: RE: How to turn off JNDI datasource connection pooling > > Make sure you set auth=Servlet in the . That should be auth="Application". - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and i

RE: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Caldarale, Charles R
> From: Keith Thomas [mailto:keith.tho...@gmail.com] > Subject: Re: How to turn off JNDI datasource connection pooling > > I just want to be able to define the datasource using JNDI so > it is external to my application. That's another piece of information you haven't

Re: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Keith Thomas
Thanks Jan. I don't want to use Tomcat's database pool, I just want to be able to define the datasource using JNDI so it is external to my application. I am doing this for various web servers and I'm beginning to think I will have to tell my customers Tomcat does not support

RE: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Keith Thomas
live with the uid/pw being stored in a clear text xml file before taking my app. -- View this message in context: http://www.nabble.com/How-to-turn-off-JNDI-datasource-connection-pooling-tp21490681p21507739.html Sent from the Tomcat - User mailing list archive at Nabble.com

Re: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Kees Jan Koster
Dear Keith, It's not clear what you want to do (as opposed to what you don't want to do). Is your goal to use a >> new DB connection for every DB access your webapp makes, or do you want to do DB connection >> pooling inside your webapp, or ??? Not using connection pooling at all is a r

RE: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Caldarale, Charles R
> From: Keith Thomas [mailto:keith.tho...@gmail.com] > Subject: RE: How to turn off JNDI datasource connection pooling > > The security for the data within the database is entirely > baked into the restriction that every user has their own > database connection. >From the

RE: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Keith Thomas
ns but the app just seems to be hanging. -- View this message in context: http://www.nabble.com/How-to-turn-off-JNDI-datasource-connection-pooling-tp21490681p21507284.html Sent from the Tomcat - User mailing list archive at Nabble.com. -

RE: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Caldarale, Charles R
> From: Keith Thomas [mailto:keith.tho...@gmail.com] > Subject: Re: How to turn off JNDI datasource connection pooling > > provided enough explanation but what I want is for Tomcat > to keep out of connection creation It's not clear what you want to do (as opposed to what

Re: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Keith Thomas
Apologies if I don't understand how a jndi datasource should work or if I've not provided enough explanation but what I want is for Tomcat to keep out of connection creation. Even if I have maxactive set to 1 I still get a stacktrace like

Re: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Keith, Keith Thomas wrote: > I have an application that runs against a legacy database. For reasons I > won't go into here I need to turn off jndi datasource connection pooling. I > have been unsuccessful finding documentation or mailin

Re: How to turn off JNDI datasource connection pooling

2009-01-15 Thread Keith Thomas
Thanks Chuck. I've uploaded it again, this time as a text file. It seems ok this time. On Thu, Jan 15, 2009 at 7:02 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Keith Thomas [mailto:keith.tho...@gmail.com] > > Subject: How to turn off JNDI dataso

RE: How to turn off JNDI datasource connection pooling

2009-01-15 Thread Caldarale, Charles R
> From: Keith Thomas [mailto:keith.tho...@gmail.com] > Subject: How to turn off JNDI datasource connection pooling > > I attach my server.xml file in case this helps. Your attachment failed to materialize. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE

How to turn off JNDI datasource connection pooling

2009-01-15 Thread Keith Thomas
I have an application that runs against a legacy database. For reasons I won't go into here I need to turn off jndi datasource connection pooling. I have been unsuccessful finding documentation or mailing list entries on how to do this. I am running Tomcat 6.0.18 as a service on Win XP agai

Re: JNDI Datasource works in unpacked war, not in packed war

2008-10-19 Thread Yassine
Hi John, just an other suggestion which you could try too: the context.xml file inside yourApp/META-INF/context.xml gets by default copied to $CATALINA_HOME/conf/Catalina/localhost/yourApp.xml at the first deployment normally when undeploying yourApp.war the container does remove the yourApp.xml

Re: JNDI Datasource works in unpacked war, not in packed war

2008-10-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Cartwright wrote: > I have a problem where a Datasource is configured in > META-INF/context.xml and referenced in web.xml. If I install this > webapp unpacked, everything works fine. However, if I try to run this > webapp as a packed war,

JNDI Datasource works in unpacked war, not in packed war

2008-10-16 Thread John Cartwright
Hello All, I have a problem where a Datasource is configured in META-INF/context.xml and referenced in web.xml. If I install this webapp unpacked, everything works fine. However, if I try to run this webapp as a packed war, the datasource fails giving the exception: org.apache.tomcat.dbcp.

Re: define jndi/datasource resource (something similar to websphere?)

2008-09-05 Thread Mikolaj Rydzewski
Aljosa Mohorovic wrote: i'm trying to find a way where i don't need to change my app to work on tomcat, some way to define jndi resource that doesn't require changes to application. every document related to this requires some changes to app so i'm wondering how can i configure tomcat with minima

define jndi/datasource resource (something similar to websphere?)

2008-09-05 Thread Aljosa Mohorovic
i'm trying to deploy a spring/hibernate based application on tomcat and i have this defined in application: - - application is currently running on websphere where

RE: Tomcat JNDI datasource

2008-03-31 Thread Tom Henricksen
on Java 5 very soon. We are stuck in the past like a Simon and Simon re-run... Tom -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2008 10:19 AM To: Tomcat Users List Subject: Re: Tomcat JNDI datasource Just had a brainstorm while responding on

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
Tomcat 5.0.30 that we are trying to get to use JDBC through JNDI. I am trying to follow along with akarta-tomcat-5.0.30/webapps/tomcat-docs/jndi-datasource-examples-howto. html. I have setup the context.xml type="javax.sql.DataS

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
g your .jar files in \WEB-INF\lib of you webapp? "Tom Henricksen" <[EMAIL PROTECTED]> 3/28/2008 8:08 AM >>> I have an application in Tomcat 5.0.30 that we are trying to get to use JDBC through JNDI. I am trying to follow along with akarta-tomca

Re: Tomcat JNDI datasource

2008-03-28 Thread Howard Watson
>>>> >>>> >I have an application in Tomcat 5.0.30 that we are trying to get to use >JDBC through JNDI. > >I am trying to follow along with >akarta-tomcat-5.0.30/webapps/tomcat-docs/jndi-datasource-examples-howto. >html. > > > >I have

Re: Tomcat JNDI datasource

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smith wrote: | |> | | docBase="C:/Java/eclipse-europa/europa-workspace/bop-med/web" |> | path="/bop-med" reloadable="true" |> | workDir="work\Catalina\localhost\bop-med"> |> |> Bad boy: take out the docBase and path attribut

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
;Tom Henricksen" <[EMAIL PROTECTED]> 3/28/2008 8:08 AM >>> I have an application in Tomcat 5.0.30 that we are trying to get to use JDBC through JNDI. I am trying to follow along with akarta-tomcat-5.0.30/webapps/tomcat-docs/jndi-datasource-examples-howto. ht

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
| Bad boy: take out the docBase and path attributes. At best, they will be ignored. At worse, they will confuse both you /and/ Tomcat. Feel free to leave workDir in there, though it is not required. Unless you /need/ to specify it, you should take that out and let Tomcat do what it

  1   2   >