Changeset 29621
- Timestamp:
- 01/25/08 12:18:19 (10 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nuxeo-ep/trunk/jboss-patch/src/main/xsl/jboss-service.xsl
r29619 r29621 2 2 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 3 4 <xsl:output doctype-system="jboss-service_4_0.dtd"/>5 4 6 5 <!-- copy with attributes, and keep comments --> … … 14 13 <!-- Removing JRMP invoker --> 15 14 <xsl:template match="mbean[@name='jboss:service=invoker,type=jrmp']"> 15 <xsl:comment>Nuxeo patch: mbean[jboss:service=invoker,type=jrmp] removed</xsl:comment> 16 16 </xsl:template> 17 17 18 18 <!-- Removing Pooled invoker --> 19 19 <xsl:template match="mbean[@name='jboss:service=invoker,type=pooled']"> 20 <xsl:comment>Nuxeo patch: mbean[jboss:service=invoker,type=pooled] removed</xsl:comment> 20 21 </xsl:template> 21 22 22 23 <!-- Replacing socket locator dependency for unified invoker with SSLServlet transport (JBoss 4.2) --> 23 24 <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> 25 27 </xsl:template> 26 28 … … 35 37 <!-- Replacing JRMP JMX invoker with HTTP invoker --> 36 38 <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'])>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> 37 72 </xsl:template> 38 73 39 74 <!-- Replacing socket locator for unified invoker with SSLServlet transport (JBoss 4.2) --> 40 75 <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> 42 78 </xsl:text><attribute name="InvokerLocator">sslservlet://${https.hostname}/invoker/ServerInvokerServlet</attribute><xsl:text> 43 79 </xsl:text><attribute name="Configuration"><xsl:text> … … 54 90 <!-- Replacing ClientUserTransaction as depending on JRMP invoker --> 55 91 <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> 57 94 </xsl:text><depends><xsl:text> 58 95 </xsl:text><mbean code="org.jboss.invocation.http.server.HttpProxyFactory" name="jboss:service=proxyFactory,target=ClientUserTransactionFactory"><xsl:text> … … 88 125 <!-- Disabling listening Port for NamingService --> 89 126 <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> 91 129 </xsl:template> 92 130 <!-- The RMI for NamingService should be bound to localhost for security reasons --> 93 131 <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> 95 134 </xsl:template> 96 135 … … 100 139 <xsl:apply-templates select="@*|node()"/> 101 140 </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> 103 143 </xsl:template> 104 144
