1

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 ?

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.