adds resource-ref element to web.xml and removes context.xml

Sat, 16 May 2020 09:28:57 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 16 May 2020 09:28:57 +0200
changeset 49
d9c24f0ab8f7
parent 48
63200a99ea77
child 50
2a90d105edec

adds resource-ref element to web.xml and removes context.xml

src/main/resources/META-INF/context.xml file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/web.xml file | annotate | diff | comparison | revisions
--- a/src/main/resources/META-INF/context.xml	Fri May 15 19:13:23 2020 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Context path="/lightpit">
-    <ResourceLink name="jdbc/lightpit/app"
-                  global="jdbc/lightpit/app"
-                  type="javax.sql.DataSource" />
-</Context>
--- a/src/main/webapp/WEB-INF/web.xml	Fri May 15 19:13:23 2020 +0200
+++ b/src/main/webapp/WEB-INF/web.xml	Sat May 16 09:28:57 2020 +0200
@@ -9,6 +9,12 @@
         <param-name>available-languages</param-name>
         <param-value>en,de</param-value>
     </context-param>
+    <resource-ref>
+        <description>Application Database</description>
+        <res-ref-name>jdbc/lightpit/app</res-ref-name>
+        <res-type>javax.sql.DataSource</res-type>
+        <res-auth>Container</res-auth>
+    </resource-ref>
     <error-page>
         <error-code>404</error-code>
         <location>/error/404.html</location>

mercurial