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,

tomcat websocket communication with external java program

2014-10-25 Thread Jason Ricles
I have a tomcat webpage with a websocket server written in java to communicate with the webpage. I want this websocket server to be able to communicate with an external java program without an sockets, so something like this webpagewebsocket serverexternal java

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

2014-10-25 Thread Mark Eggers
-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 pooling to connect to multiple PostgreSQL (9.3) databases. My application is a JAX-RS (Jersey) web server application that provides a set

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

2014-10-25 Thread Konstantin Kolinko
2014-10-25 23:12 GMT+04:00 Ric Bernat r...@brinydeep.net: 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

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

2014-10-25 Thread 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 bad: I copied some code around and dropped the new. You are quite right: I am calling the constructor. No. A constructor creates a

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

2014-10-25 Thread Ric Bernat
First of all, let me apologize for typos and comprehension errors. I'm writing without glasses (magnification on screen is 200% and I'm taking frequent breaks). I am sorry to hear this is a burden for you. I appreciate you effort. I'm not sure why you're not using JNDI and letting Tomcat

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

2014-10-25 Thread Konstantin Kolinko
2014-10-26 1:49 GMT+04:00 Ric Bernat r...@brinydeep.net: 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 bad: I copied some code around and dropped the new. You are quite right:

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

2014-10-25 Thread Ric Bernat
Thanks. That makes sense. Pooling for the duration of that single web service call is not our main goal. However, JAX-RS allows me to persist objects in memory across web service calls, so I can keep a collection of DataSource instances (e.g., by database name, in a ConcurrentHashMap). No