Hello,
When I'm having the DriverManagerDataSource in bean configuration xml and managed by Spring IDE, eclipse always indicate destroy-method="close" is an error with the following message:
Destroy-method 'close' not found in bean class 'org.springframework.jdbc.datasource.DriverManager DataSource'
Here is the bean definition:
So, is the close() destroy method really not needed?Code:<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource" destroy-method="close"> <property name="driverClassName" value="${jdbc.driverClassName}" /> <property name="url" value="${jdbc.url}" /> <property name="username" value="${jdbc.username}" /> <property name="password" value="${jdbc.password}" /> </bean>
Thanks.


Reply With Quote