connection-pooling

Can I use connection pooling with SQLDatasource?

霸气de小男生 提交于 2019-12-13 03:47:49
问题 After reading documentation about Connection Pooling, I learned that ADO.NET uses Connection pooling by default. But the application that I am working with using SQLDatasource and I wonder if I can use Connection Pooling? If yes, is there a quick tutorial around? 回答1: My guess would be that it uses System.Data.SqlClient in turn so that as long as you use the same connection string, pooling will work. I think you can test it quite easily though. Just spawn up a bunch of these from code and

How to create a pool of bean in spring?

删除回忆录丶 提交于 2019-12-13 03:19:49
问题 In my project , i need to call some other app SOAP url to get connection , on top of that connection obj, i need to pass various request to get response. This response i need to parse to get actual results data. There is an API called Retrival class object when holds the connection. Need to use the same for connection i.e. pass requests and get response object. So I can declase it as prototype scope to get these Retrival objects. But I am using Akka Actors which fetch different data using

WebSphere MQ Connection Tuning

纵饮孤独 提交于 2019-12-12 21:52:27
问题 I have an application which uses MDB, activation specifications and Queue Connection Factories to get/put Messages from WMQ. The application expects a max load of 80 tps. Both Websphere Application Server and WMQ are clustered and each application server connects to seperate host and channel. The application onMessage method is implemented in way so that both session and connection gets closed after message is consumed and response is sent. As per our configuration, we have WAS version is 8.5

How Can I Prevent Recurring Automatic Connections to Oracle Database?

安稳与你 提交于 2019-12-12 19:14:58
问题 Background We have a C#/VB.net client application consuming a WCF service which connects to an Oracle database. The web service connects to the database using the .NET framework's data provider for Oracle (not to be confused with ODP). Our testers have experienced sporadic Oracle account locking which seems to happen shortly after changing the user's Oracle password. The dba_audit_trail logs have revealed what seem to be automated connection attempts at very regular intervals (i.e. every two

MySql.Data.MySqlClient.MySqlConnection.Open() taking a long time

半腔热情 提交于 2019-12-12 18:50:02
问题 I have a mvc .net4 website, connecting to mysql, on page load i run a query (which cannot be avoided) for which MySql.Data.MySqlClient.MySqlConnection.Open() is very slow in worst case taking 15 seconds to open. This page is only slow if i use the website after long periods of time. Once I use the website its pretty fast until hours later I come back and use it. I am thinking its because of cold sessions on mysql host it kills all connections in pool when there is no one connecting for hours.

NoInitialContextException: heroku war deploy

孤者浪人 提交于 2019-12-12 18:20:36
问题 I have been working on a J2EE project and I am using connection pooling in it too access by database which has been deployed on heroku. I am using following code for setting up Connection object: Context initContext=new InitialContext(); Context envContext=(Context)initContext.lookup("java:comp/env"); DataSource ds=(DataSource)envContext.lookup("jdbc/DB"); con=ds.getConnection(); And I have a context.xml file in my META-INF folder with these values: <?xml version="1.0" encoding="UTF-8"?>

.NET Oracle managed data access connection pooling not working or slow

大兔子大兔子 提交于 2019-12-12 17:06:41
问题 I recently noticed that when our application does an SQL query to the Oracle database, it always takes at least 200 ms to execute. It doesn't matter how simple or complex the query is, the minimum time is about 200 ms. We're using the Oracle Managed Data Access driver for Oracle 11g. I then created a simple console application to test the connection. I noticed that if I create the connection like in the example below, then every cmd.ExecuteReader method takes the extra 200 ms (opening the

The web application [ROOT] is still processing a request that has yet to finish. [Tomcat]

随声附和 提交于 2019-12-12 12:15:07
问题 I saw this error today when I tried shutting down the server. Here's the full stacktrace. 06-Jul-2015 05:47:10.407 WARNING [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation. Stack trace

hibernate c3p0 ThreadPoolExecutor Connection pooling, am I doing it right?

帅比萌擦擦* 提交于 2019-12-12 12:14:38
问题 I am using hibernate and c3p0 for the database, and i have an java application, with ThreadPoolExecutor. What i am doing is, I am enquing different Tasks each related to hibernate, to store data with Hibernate using Transactions, and getCurrentSession. So I have new ThreadPoolExecutor(CORE_POOL_SIZE, MAX_POOL_SIZE, KEEP_ALIVE_TIME, TimeUnit.MINUTES,taskQueue); Runnable { @Override public void run() { Session session = HibernateDAO.getInstance().getCurrentSession(); Transaction tx = null; try

Oracle ODP.Net and connection pooling

眉间皱痕 提交于 2019-12-12 12:06:15
问题 this is really two questions in one I guess. We've developed a .Net app that accesses an Oracle database, and have noticed that after changing the user's Oracle password, the app continues to work for a short time with the old password in the connection string. Presumably this is something to do with the way existing connections are pooled? When first investigating this we tried turning off pooling in the connection string, however the app wouldn't work, throwing the error "Unable to enlist