Skip to content

akhikhl/tomcat-spring-jndi-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tomcat-spring-jndi-test

Little test for JNDI datasources under tomcat and spring

Usage

cd DataSourceTest
gradle run

then enter in browser:

http://localhost:9090/DataSourceTest/dynamic

You should see:

Hello, world!725046289, URL=jdbc:mysql://172.17.0.8:3306/test, UserName=user1@172.17.42.1, MySQL Connector Java

That means: jdbc connector was successfully instantiated.

Important: you need to enter specific url, username and password in "webapp-config/context.xml".

About

Little test for JNDI datasources under tomcat and spring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages