This is an automated email from the ASF dual-hosted git repository.

rmaucher pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 40ed76977c Write ContextService (for completeness)
40ed76977c is described below

commit 40ed76977ca0de50036d04a04c4a88e82ddb9ee3
Author: remm <[email protected]>
AuthorDate: Mon Sep 14 23:27:09 2026 +0200

    Write ContextService (for completeness)
---
 java/org/apache/catalina/storeconfig/NamingResourcesSF.java | 5 +++++
 java/org/apache/catalina/storeconfig/server-registry.xml    | 7 +++++++
 2 files changed, 12 insertions(+)

diff --git a/java/org/apache/catalina/storeconfig/NamingResourcesSF.java 
b/java/org/apache/catalina/storeconfig/NamingResourcesSF.java
index c5079c5269..187e93e6e0 100644
--- a/java/org/apache/catalina/storeconfig/NamingResourcesSF.java
+++ b/java/org/apache/catalina/storeconfig/NamingResourcesSF.java
@@ -27,6 +27,7 @@ import org.apache.tomcat.util.descriptor.web.ContextLocalEjb;
 import org.apache.tomcat.util.descriptor.web.ContextResource;
 import org.apache.tomcat.util.descriptor.web.ContextResourceEnvRef;
 import org.apache.tomcat.util.descriptor.web.ContextResourceLink;
+import org.apache.tomcat.util.descriptor.web.ContextService;
 
 /**
  * Store server.xml element NamingResources
@@ -87,6 +88,10 @@ public class NamingResourcesSF extends StoreFactoryBase {
             // Store nested <ResourceLink> elements
             ContextResourceLink[] resourceLinks = 
resources.findResourceLinks();
             storeElementArray(aWriter, indent, resourceLinks);
+
+            // Store nested <ServiceRef> elements
+            ContextService[] services = resources.findServices();
+            storeElementArray(aWriter, indent, services);
         }
     }
 }
diff --git a/java/org/apache/catalina/storeconfig/server-registry.xml 
b/java/org/apache/catalina/storeconfig/server-registry.xml
index 29897abd51..b487a4e922 100644
--- a/java/org/apache/catalina/storeconfig/server-registry.xml
+++ b/java/org/apache/catalina/storeconfig/server-registry.xml
@@ -350,6 +350,13 @@
         tagClass="org.apache.tomcat.util.descriptor.web.ContextResourceLink"
         storeFactoryClass="org.apache.catalina.storeconfig.StoreFactoryBase">
      </Description>
+     <Description
+        tag="ServiceRef"
+        standard="true"
+        default="false"
+        tagClass="org.apache.tomcat.util.descriptor.web.ContextService"
+        storeFactoryClass="org.apache.catalina.storeconfig.StoreFactoryBase">
+     </Description>
      <Description
         tag="Transaction"
         standard="true"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to