Questions tagged [dbcp]

27 questions
0
votes
0 answers

Java, DBCP and Pool connections

I am creating pools to test Oracle replay using Transparent Application Continuity. I have my basic Java code that does this. OracleDataSourceImpl ds = new oracle.jdbc.replay.OracleDataSourceImpl(); …
cptkirkh
  • 107
  • 1
  • 9
0
votes
0 answers

java dbcp2 connection pooling

So I am trying to understand how to build connection pools and to connect via java to an Oracle DB. i am trying to use dbcp2 to learn more about how all of this works. If I use the BasicDataSource I can connect and I see 5 connections via the…
cptkirkh
  • 107
  • 1
  • 9
0
votes
0 answers

How should I connect my web app in java with the database? With jdbc coming from a jar file in referenced libraries or dbcp?

I am developing a dynamic web project in java with eclipse using the tomcat server. I have created a database that I want to connect to my web application. For this purpose, I installed the jdbc jar in the classpath but when I open the tomcat server…
manu
  • 1
  • 3
0
votes
1 answer

BasicDataSource Support domain name?

Now when customers use BasicDataSource, they want to change the URL connection string to a domain name. Is there a way to support this?
0
votes
1 answer

Java BasicDataSource getting stuck when connecting

I am using the DBCP component of the Apache Commons library to connection to an Oracle database. I have created a BasicDataSource object and set the MaxWait time to two minutes. However when I call the "getConnection" method to get a connection it…
lgriffin
  • 99
  • 1
  • 7
0
votes
1 answer

Connecting to Cassandra using Java DBCP

I am connection to a Cassandra database with Java using the "BasicDataSource" class in the Apache Common DBCP library and using the DataStax driver "com.simba.cassandra.jdbc42.Driver". When Cassandra is configured with the "authenticator" set to…
lgriffin
  • 99
  • 1
  • 7
0
votes
1 answer

java dbcp2 multithreaded connection access

I'm pretty familiar using connection pooling on tomcat & have used it for years without problem. However at the moment I'm working on a main method application that needs to run simultaneous threads for performance reasons, and those threads each…
Reece
  • 641
  • 7
  • 18
0
votes
1 answer

Apache felix cannot load dbcp2 as bundle

I have created an OSGi bundle, that is using apache commons dbcp2 to create a database connection pool. I am using apache felix gogo as runtime to start my bundles. I have loaded multiple other external libraries without any problems into the apache…
Dakado
  • 11
  • 2
  • 6
0
votes
1 answer

JTA integration jBPM throw 'Connection can not be used while enlisted in another transaction'

I integrated jBPM in the SpringBoot environment and found that the same XAResource would work on different transactions under high concurrency. I used Narayana combined with DBCP as my TransactionManager and ResourceManager. Exception occurs in the…
0
votes
2 answers

Migration to JBoss7.2eap from jboss5.1.2eap : java.lang.NoClassDefFoundError: Lorg/apache/commons/dbcp/BasicDataSource

I have migrated my application from jboss5.1.2-eap to jboss-7.2-eapand java6 to java8 but after migration it is starting giving me exception while starting the server. Caused by: java.lang.NoClassDefFoundError:…
Vicky
  • 1,135
  • 1
  • 17
  • 37
0
votes
0 answers

DBCP Pool does not work in Servlet but works in standalone app

Pool doesn't in servlet but works in standalone appication. Pool class is common in two cases: public class Pool { private static DataSource ds; static { DriverAdapterCPDS cpds = new DriverAdapterCPDS(); try { …
Ashot Karakhanyan
  • 2,804
  • 3
  • 23
  • 28
-1
votes
1 answer

setting connectionTimedOut to 1 sec is throwing Socket Timed Out error

I am working on a web application which runs in pcf environment and it has approximately 100 users. I am using Hikari CP library to manage databae connections and customized connectionTimedout property by setting it to 1 sec in the application code.…
1
2