Changeset 29621

Show
Ignore:
Timestamp:
01/25/08 12:18:19 (10 months ago)
Author:
onazarov
Message:

All *-service.xml files are patched to talk via HTTP with this XSL

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nuxeo-ep/trunk/jboss-patch/src/main/xsl/jboss-service.xsl

    r29619 r29621  
    22    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
    33 
    4   <xsl:output doctype-system="jboss-service_4_0.dtd"/> 
    54 
    65  <!-- copy with attributes, and keep comments --> 
     
    1413  <!-- Removing JRMP invoker --> 
    1514  <xsl:template match="mbean[@name='jboss:service=invoker,type=jrmp']"> 
     15        <xsl:comment>Nuxeo patch: mbean[jboss:service=invoker,type=jrmp] removed</xsl:comment> 
    1616  </xsl:template> 
    1717 
    1818  <!-- Removing Pooled invoker --> 
    1919  <xsl:template match="mbean[@name='jboss:service=invoker,type=pooled']"> 
     20        <xsl:comment>Nuxeo patch: mbean[jboss:service=invoker,type=pooled] removed</xsl:comment> 
    2021  </xsl:template> 
    2122 
    2223  <!-- Replacing socket locator dependency for unified invoker with SSLServlet transport (JBoss 4.2) --> 
    2324  <xsl:template match="mbean[@name='jboss:service=invoker,type=unified']/depends[text()='jboss.remoting:service=Connector,transport=socket']"> 
    24      <depends>jboss.remoting:service=Connector,transport=SSLServlet</depends> 
     25     <xsl:comment>Nuxeo patch: Replacing socket locator dependency for unified invoker with SSLServlet transport</xsl:comment><xsl:text> 
     26     </xsl:text><depends>jboss.remoting:service=Connector,transport=SSLServlet</depends> 
    2527  </xsl:template> 
    2628 
     
    3537  <!-- Replacing JRMP JMX invoker with HTTP invoker --> 
    3638  <xsl:template match="mbean[@name='jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory']"> 
     39        <xsl:comment>Nuxeo patch: mbean[jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory] replaced</xsl:comment><xsl:text> 
     40      </xsl:text><mbean code="org.jboss.invocation.http.server.HttpProxyFactory" name="jboss.jmx:type=adaptor,name=Invoker,protocol=http,service=proxyFactory"><xsl:text> 
     41         </xsl:text><attribute name="InvokerURL">https://${https.hostname}/invoker/JMXInvokerServlet</attribute><xsl:text> 
     42         </xsl:text><depends optional-attribute-name="InvokerName">jboss.jmx:type=adaptor,name=Invoker</depends><xsl:text> 
     43         </xsl:text><depends>jboss:service=invoker,type=https</depends><xsl:text> 
     44         </xsl:text><attribute name="ExportedInterface">org.jboss.jmx.adaptor.rmi.RMIAdaptor</attribute><xsl:text> 
     45         </xsl:text><attribute name="JndiName">jmx/invoker/HttpAdaptor</attribute><xsl:text> 
     46         </xsl:text><attribute name="ClientInterceptors"><xsl:text> 
     47            </xsl:text><interceptors><xsl:text> 
     48               </xsl:text><interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor><xsl:text> 
     49               </xsl:text><interceptor>org.jboss.proxy.SecurityInterceptor</interceptor><xsl:text> 
     50               </xsl:text><interceptor>org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor</interceptor><xsl:text> 
     51               </xsl:text><interceptor>org.jboss.invocation.InvokerInterceptor</interceptor><xsl:text> 
     52            </xsl:text></interceptors><xsl:text> 
     53         </xsl:text></attribute><xsl:text> 
     54      </xsl:text></mbean><xsl:text> 
     55      </xsl:text><mbean code="org.jboss.jmx.connector.invoker.MBeanProxyRemote" name="jboss.jmx:type=adaptor,name=MBeanProxyRemote,protocol=https"><xsl:text> 
     56         </xsl:text><depends optional-attribute-name="MBeanServerConnection">jboss.jmx:type=adaptor,name=Invoker,protocol=https,service=proxyFactory</depends><xsl:text> 
     57      </xsl:text></mbean> 
     58   </xsl:template> 
     59 
     60  <!-- Replacing proxy dependency for Plugin manager --> 
     61  <xsl:template match="mbean[@name='jboss.admin:service=PluginManager']/depends[text()='jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory']"> 
     62     <xsl:comment>Nuxeo patch: Replacing proxy dependency for mbean[jboss.admin:service=PluginManager]</xsl:comment><xsl:text> 
     63     </xsl:text><depends>jboss.jmx:type=adaptor,name=Invoker,protocol=https,service=proxyFactory</depends> 
     64  </xsl:template> 
     65 
     66  <xsl:template match="mbean[(@name!='jboss.admin:service=PluginManager')and(count(depends[text()='jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory'])&gt;0)]"> 
     67        <xsl:comment>Nuxeo patch: mbean[<xsl:value-of select="@name"/>] removed as dependent on mbean[jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory]</xsl:comment> 
     68  </xsl:template> 
     69 
     70  <xsl:template match="mbean[@name='jboss.jmx:alias=jmx/rmi/RMIAdaptor']"> 
     71        <xsl:comment>Nuxeo patch: mbean[jboss.jmx:alias=jmx/rmi/RMIAdaptor] removed</xsl:comment> 
    3772  </xsl:template> 
    3873 
    3974  <!-- Replacing socket locator for unified invoker with SSLServlet transport (JBoss 4.2) --> 
    4075  <xsl:template match="mbean[@name='jboss.remoting:service=Connector,transport=socket']"> 
    41    <mbean code="org.jboss.remoting.transport.Connector" name="jboss.remoting:service=Connector,transport=SSLServlet" display-name="SSL Servlet transport Connector"><xsl:text> 
     76        <xsl:comment>Nuxeo patch: mbean[jboss.remoting:service=Connector,transport=socket] replaced</xsl:comment><xsl:text> 
     77   </xsl:text><mbean code="org.jboss.remoting.transport.Connector" name="jboss.remoting:service=Connector,transport=SSLServlet" display-name="SSL Servlet transport Connector"><xsl:text> 
    4278      </xsl:text><attribute name="InvokerLocator">sslservlet://${https.hostname}/invoker/ServerInvokerServlet</attribute><xsl:text> 
    4379      </xsl:text><attribute name="Configuration"><xsl:text> 
     
    5490  <!-- Replacing ClientUserTransaction as depending on JRMP invoker --> 
    5591  <xsl:template match="mbean[@name='jboss:service=ClientUserTransaction']"> 
    56    <mbean code="org.jboss.tm.usertx.server.ClientUserTransactionService" name="jboss:service=ClientUserTransaction" xmbean-dd="resource:xmdesc/ClientUserTransaction-xmbean.xml"><xsl:text> 
     92   <xsl:comment>Nuxeo patch: mbean[jboss:service=ClientUserTransaction] now depends on HTTP Proxy</xsl:comment><xsl:text> 
     93   </xsl:text><mbean code="org.jboss.tm.usertx.server.ClientUserTransactionService" name="jboss:service=ClientUserTransaction" xmbean-dd="resource:xmdesc/ClientUserTransaction-xmbean.xml"><xsl:text> 
    5794      </xsl:text><depends><xsl:text> 
    5895         </xsl:text><mbean code="org.jboss.invocation.http.server.HttpProxyFactory" name="jboss:service=proxyFactory,target=ClientUserTransactionFactory"><xsl:text> 
     
    88125  <!-- Disabling listening Port for NamingService --> 
    89126  <xsl:template match="mbean[@name='jboss:service=Naming']/attribute[@name='Port']"> 
    90      <attribute name='Port'>-1</attribute> 
     127      <xsl:comment>Nuxeo patch: mbean[jboss:service=Naming] now does not listen to JNP port</xsl:comment><xsl:text> 
     128         </xsl:text><attribute name='Port'>-1</attribute> 
    91129  </xsl:template> 
    92130  <!-- The RMI for NamingService should be bound to localhost for security reasons --> 
    93131  <xsl:template match="mbean[@name='jboss:service=Naming']/attribute[@name='RmiBindAddress']"> 
    94      <attribute name='RmiBindAddress'>localhost</attribute> 
     132      <xsl:comment>Nuxeo patch: mbean[jboss:service=Naming] now does not bind to network</xsl:comment><xsl:text> 
     133         </xsl:text><attribute name='RmiBindAddress'>localhost</attribute> 
    95134  </xsl:template> 
    96135 
     
    100139      <xsl:apply-templates select="@*|node()"/> 
    101140    </xsl:copy><xsl:text> 
    102     </xsl:text><depends>jboss:service=invoker,type=https</depends> 
     141    </xsl:text><xsl:comment>Nuxeo patch: mbean[jboss.j2ee:service=EARDeployer] now depends on HTTP invoker</xsl:comment><xsl:text> 
     142       </xsl:text><depends>jboss:service=invoker,type=https</depends> 
    103143  </xsl:template> 
    104144