spring中配置的JNDI
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName"> <value>java:/jdbc/src-name</value> </property></bean>