[jboss-cvs] JBossAS SVN: r58934 - in branches/Branch_4_2: build varia/src/resources/services varia/src/resources/services/entityresolver

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Dec 8 15:23:50 EST 2006


Author: amit.bhayani at jboss.com
Date: 2006-12-08 15:23:43 -0500 (Fri, 08 Dec 2006)
New Revision: 58934

Added:
   branches/Branch_4_2/varia/src/resources/services/entityresolver/
   branches/Branch_4_2/varia/src/resources/services/entityresolver/xmlresolver-service.xml
Modified:
   branches/Branch_4_2/build/build-distr.xml
   branches/Branch_4_2/build/build.xml
Log:
Added JBossEntityResolverMgr Mbean example. To fix JBAS-3922

Modified: branches/Branch_4_2/build/build-distr.xml
===================================================================
--- branches/Branch_4_2/build/build-distr.xml	2006-12-08 18:25:48 UTC (rev 58933)
+++ branches/Branch_4_2/build/build-distr.xml	2006-12-08 20:23:43 UTC (rev 58934)
@@ -881,10 +881,14 @@
          <include name="bsf.jar"/>
       </fileset>
     </copy>
-
+      
      <!-- copy the xmlentitymgr.jar to lib -->
      <copy file="${_module.output}/lib/xmlentitymgr.jar"
        todir="${install.server}/all/lib"/>
+       
+    <mkdir dir="${install.examples.entity-resolver-manager}"/>
+    <copy file="${project.root}/varia/src/resources/services/entityresolver/xmlresolver-service.xml"
+      todir="${install.examples.entity-resolver-manager}"/>       
 
   </target>
 

Modified: branches/Branch_4_2/build/build.xml
===================================================================
--- branches/Branch_4_2/build/build.xml	2006-12-08 18:25:48 UTC (rev 58933)
+++ branches/Branch_4_2/build/build.xml	2006-12-08 20:23:43 UTC (rev 58934)
@@ -231,6 +231,7 @@
     <property name="install.examples.jbossweb" value="${install.examples}/jbossweb"/>
     <property name="install.examples.netboot" value="${install.examples}/netboot"/>
     <property name="install.examples.binding-manager" value="${install.examples}/binding-manager"/>
+    <property name="install.examples.entity-resolver-manager" value="${install.examples}/entity-resolver-manager"/>
     <property name="install.examples.varia" value="${install.examples}/varia"/>
     <property name="install.dtd" value="${install.docs}/dtd"/>
     <property name="install.schema" value="${install.docs}/schema"/>

Added: branches/Branch_4_2/varia/src/resources/services/entityresolver/xmlresolver-service.xml
===================================================================
--- branches/Branch_4_2/varia/src/resources/services/entityresolver/xmlresolver-service.xml	2006-12-08 18:25:48 UTC (rev 58933)
+++ branches/Branch_4_2/varia/src/resources/services/entityresolver/xmlresolver-service.xml	2006-12-08 20:23:43 UTC (rev 58934)
@@ -0,0 +1,12 @@
+<!-- The JBossEntityResolver mbean service which allows customization of the
+xml parser entity resolver publicID/systemID to dtd/schema file mapping.
+See, http://wiki.jboss.org/wiki/Wiki.jsp?page=XMLEntitySchemaResolution
+-->
+<server>
+   <mbean code="org.jboss.services.xml.JBossEntityResolverMgr"
+      name="jboss.xml:service=JBossEntityResolverMgr">
+      <attribute name="WarnOnNonFileURLs">true</attribute>
+      <attribute name="EntityMap">
+      </attribute>
+   </mbean>
+</server>




More information about the jboss-cvs-commits mailing list