Spring JdbcDaoSupport Jboss Datasource

Spring JdbcDaoSupport Jboss Datasource

In our previous tutorial you saw how to use JdbcDaoSupport and JDBCTemplate to connect the database and perform CRUD operation. We had used properties file to keep database configuration and took its reference to connect database and perform operation.

In this demo you will see how to configure data source in Jboss application server and get data base connection by JNDI using JbbcDaoSupport.

Note: We will use MySQL database for configuration and test.

Below are summary of changes from properties file to use Jboss datasource and you have to make changes only one file:

  • dispatcher-servlet.xml:

  • For more details to configure data source on Jboss application server please visit here¬†

Leave a Reply

Your email address will not be published. Required fields are marked *