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.
- Please follow this tutorial to configure data source on Jboss application server
- Please do project setup and configuration from Spring JdbcDaoSupport Example
Below are summary of changes from properties file to use Jboss datasource and you have to make changes only one file:
- For more details to configure data source on Jboss application server please visit here