When deploying the application, select the data source



 When deploying applications on was, some applications can choose the data source, some cannot,

The following figure shows that the data source can be selected,

 

The following image is not able to select the data source

 

 If you want to be able to select the data source, you only need to add the following nodes in web.xml: <!--StartFragment -->

<resource-ref>
      <res-ref-name>JNDI名称</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
</resource-ref>


 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326383021&siteId=291194637
Recommended