Search code examples
javaspring-mvcjdbcjndi

jndi + spring tutorial


I am new to JNDI and Spring MVC is there any tutorial or blog link that can help me to understand how to configure jndi with spring to connect mysql.

I need to connect my spring application using jndi global resources but i can't understand how can i configure it with spring?

I refer JNDI Resources HOW-TO .

Is there any tutorial that help me?


Solution

  • Assuming you know enough of Spring to setup a Spring MVC application without JNDI, then I'll point you to the reference documentation, section C.2.3. The jee schema will help you connect your beans to JNDI resources.