Re: why is Tomcat 7 invoking WebSocket protocol?

2015-07-01 Thread Ric Bernat
On 7/1/2015 5:44 AM, Konstantin Kolinko wrote: 2015-07-01 13:42 GMT+03:00 André Warnier : Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: why is Tomcat 7 invoking WebSocket protocol? But maybe the solution consists simply in renaming that filter, so th

why is Tomcat 7 invoking WebSocket protocol?

2015-06-28 Thread Ric Bernat
We have a Jersey application running on Tomcat 7.0.62. In production, 99.9% of our web service calls run quickly (e.g., 100ms), but there are about half a dozen web service calls per hour that take an extraordinary amount of time to complete: 30-120 seconds (not ms). We do not use WebSockets

Re: Tomcat 7 JDBC Connection Pool - question about usage from Java code

2014-10-28 Thread Ric Bernat
Thanks, Neven. It turns out the PostgreSQL JDBC driver does not implement the setCatalog method, so this option is not available to me. However, I went ahead and set up my own cache of connection pools (dataSource instances) in a HashMap, and configured Jersey to persist this across web servi

Re: Tomcat 7 JDBC Connection Pool - question about usage from Java code

2014-10-28 Thread Ric Bernat
Thanks, Chris. To answer your suggestion first, differing username/password didn't come into play, because I found that the PostgreSQL JDBC driver does not implement the setCatalog method to change databases on the fly in the first place. (Apparently this is optional for JDBC driver implement

RE: Tomcat 7 JDBC Connection Pool - question about usage from Java code

2014-10-26 Thread Ric Bernat
Thanks, Nevin. I certainly appreciate your deep treatment of my question/issue! I would like to ask for clarification about a point in your #2: > (2) CONTAINER-MANAGED CONNECTION POOL. > (a) using container injection > > @Resource(name="") > private DataSource datasource > > (b) tradition

RE: Tomcat 7 JDBC Connection Pool - question about usage from Java code

2014-10-25 Thread Ric Bernat
question about usage from Java code 2014-10-26 1:49 GMT+04:00 Ric Bernat : >> There is no such method to be called like on the above line. >> "DataSource(PoolConfiguration)" is a constructor. To call a constructor you >> need the keyword "new". > > My ba

RE: Tomcat 7 JDBC Connection Pool - question about usage from Java code

2014-10-25 Thread Ric Bernat
Saturday, October 25, 2014 1:44 PM To: Tomcat Users List Subject: Re: Tomcat 7 JDBC Connection Pool - question about usage from Java code -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/25/2014 12:12 PM, Ric Bernat wrote: > I am using Tomcat 7.0.53, and I am using Tomcat JDBC connection

RE: Tomcat 7 JDBC Connection Pool - question about usage from Java code

2014-10-25 Thread Ric Bernat
urday, October 25, 2014 2:14 PM To: Tomcat Users List Subject: Re: Tomcat 7 JDBC Connection Pool - question about usage from Java code 2014-10-25 23:12 GMT+04:00 Ric Bernat : > I am using Tomcat 7.0.53, and I am using Tomcat JDBC connection > pooling to connect to multiple PostgreSQL (9.3) da

Tomcat 7 JDBC Connection Pool - question about usage from Java code

2014-10-25 Thread Ric Bernat
I am using Tomcat 7.0.53, and I am using Tomcat JDBC connection pooling to connect to multiple PostgreSQL (9.3) databases. My application is a JAX-RS (Jersey) web server application that provides a set RESTful web services (no UI). My data layer uses the Spring JdbcTemplate library. First, let