程序部署到was数据源配置
将程序部署到was时如果使用数据源需要在web.xml中增加以下配置,在部署过程与was数据源进行绑定,否则无法使用was数据源,此配置同样应用于xa数据源
<resource-ref> <description></description> <res-ref-name> testxa </res-ref-name> <res-type> javax.sql.DataSource </res-type> <res-auth>Container</res-auth> </resource-ref>