Websphere application must-see configuration (spring jndi configuration)

Websphere configuration troubles me to find time, the configuration is wrong, it takes half a day to start websphere.
Finally found the reason in this blog, do it here for the record.
The configuration of spring jndi is different in different containers.

http://jlins.iteye.com/blog/679062

First configure a data source in websphere and weblogic. The jndi name is offsetJndi

and configure the data source in spring. This configuration method is common in websphere weblogic
<beans>  
<bean id="dataSource"  
class="org.springframework.jndi.JndiObjectFactoryBean">  
<property name="jndiName">  
<value>offsetJndi</value>  
</property>  





The following methods are used in tomcat

<beans>  
<bean id="dataSource"  
class=" org.springframework.jndi.JndiObjectFactoryBean">  
<property name="jndiName">  
<value>  

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326792864&siteId=291194637