Score:1

Getting the connection pool properties

ca flag

I have set up a connection pool in tomcat's server.xml and context.xml.

I am using the below code to establish a connection.

DataSource ds = (DataSource) context.lookup("jdbc/TestDB"); ds.getConnection();

Now I want to get the properties like MaxActive, MaxIdle etc. But I don't see any method that can be called using DataSource object. How can I get those parameter values ?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.