JNDI Datasource for Spring 4 Hibernate 4 project not working in AWS
问题 I'm trying to connect my Spring 4 & Hibernate 4 based web application hosted in Amazon Beanstalk with the database in Amazon RDS using JNDI Datasource. I connected to my EC2 environment using SSH and placed the following in /usr/share/tomcat8/conf/context.xml file; <Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" name="jdbc/TestDatabase" password="abc123" type="javax.sql.DataSource" url="xyz.com:3306/test_jndi" username="abc123"/> And in my Hibernate configuration file I