DataSource注入
DataSource注入
?
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING/DTD BEAN/EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="dataSource" class="org.springframework.indi.JndiObjectFactoryBean"> <property name="jndiName"> <value>jdbc/TestDB</value> </property> </bean> <bean id="dataBean" class="onlyfun.caterpillar.DataBean"> <property name="dataSource"> <ref bean="dataSource"/> </property> </bean> </beans>
?
http://hackpro.iteye.com/blog/1037376
?
http://www.javaworld.com.tw/confluence/pages/viewpage.action?pageId=2051
?
?
http://www.cnblogs.com/aomo/archive/2011/11/24/2261896.html
?
?
http://www.blogjava.net/lifenote/archive/2007/12/24/170005.html
?
?
?