0

I am creating a connection pooling in for my application..For that i just wan to know where to keep context.xml which has Resource name,username,password, driver Class Name

what s the difference when i keep the context.xml in tomcat and keeping in my project META-INF??

Thanks in Advance!!!

1 Answer 1

1

To answer your first question... keep the context.xml in META-INF and read it using JNDI. Keeping context.xml in tomcat as far as I know it done only if you want to use tomcat to handle your database connection. Keeping the context.xml in META-INF would make it easier for you to read and manage your connections.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.