写漏了,我上面提到的标签是<resource-ref>标签,配置例子如下 <resource-ref>
<description>DistDB</description>
<res-ref-name>jdbc/xxx</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>