I have this warning from vary vary time ago. And only today i decided to investigate.
And i find a solution: adding a res-sharing-scope tag inside the resource-ref tag, and exactly:
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/DB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
I got this warning too!
RispondiEliminaThx for the solution, Gifa.
Thank you !!
RispondiEliminaFabrizio
Thank you for sharing this hint ;-)
RispondiEliminaAfter all the years, it still helps. Working on modernizing an old legacy web app it helped me to get rid of another warning. The rest is on refactoring to clean architecture.