[jboss-svn-commits] JBL Code SVN: r36500 - labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/src/main/resources/xsl.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Jan 4 20:08:04 EST 2011


Author: whitingjr
Date: 2011-01-04 20:08:04 -0500 (Tue, 04 Jan 2011)
New Revision: 36500

Added:
   labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/src/main/resources/xsl/jms-config-hornetq.xml
Log:
Added more jms configuration for hornetq.

Added: labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/src/main/resources/xsl/jms-config-hornetq.xml
===================================================================
--- labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/src/main/resources/xsl/jms-config-hornetq.xml	                        (rev 0)
+++ labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/src/main/resources/xsl/jms-config-hornetq.xml	2011-01-05 01:08:04 UTC (rev 36500)
@@ -0,0 +1,383 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2010 Red Hat, Inc.
+ Red Hat licenses this file to you under the Apache License, version
+ 2.0 (the "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+   http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied.  See the License for the specific language governing
+ permissions and limitations under the License.
+  -->
+<xsl:stylesheet version="1.0"
+   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+   <xsl:output method="xml" indent="yes"/>
+   <xsl:param name="HQ_SMStatsQ"/>
+   <xsl:param name="HQ_OrderDCStatsQ"/>
+   <xsl:param name="HQ_ShipDCStatsQ"/>
+   <xsl:param name="HQ_InvoiceQ"/>
+   <xsl:param name="HQ_CreditCardHLT"/>
+   <xsl:param name="HQ_ProductAnnouncementT"/>
+   <xsl:param name="HQ_PriceUpdateT"/>
+   <xsl:param name="HQ_ProductFamilyT"/>
+   <xsl:param name="SP_PShipConfQ"/>
+   <xsl:param name="SP_POrderQ"/>
+   <xsl:param name="SM_OrderConfQ"/>
+   <xsl:param name="SM_ShipArrQ"/>
+   <xsl:param name="SM_InvMovementQ"/>
+   <xsl:param name="DC_OrderQ"/>
+   <xsl:param name="DC_ShipDepQ"/>
+   <xsl:param name="DC_PShipArrQ"/>
+   <xsl:param name="DC_ShipConfQ"/>
+   <xsl:param name="DC_POrderConfQ"/>
+   <xsl:param name="DC_IncomingOffersQ"/>
+   
+   <xsl:template match="/">
+      <xsl:call-template name="destinations"/>
+   </xsl:template>
+   
+   <xsl:template name="destinations">
+      <xsl:element name="configuration">
+      	<xsl:element name="connection-factory">
+      		<xsl:attribute name="name">
+      			<xsl:text>NettyConnectionFactory</xsl:text>
+      		</xsl:attribute>
+      		<xsl:element name="connectors">
+      			<xsl:element name="connector-ref">
+      				<xsl:attribute name="connector-name">
+      					<xsl:text>netty</xsl:text>
+      				</xsl:attribute>
+      			</xsl:element>
+      		</xsl:element>
+      		<xsl:element name="entries">
+      			<xsl:element name="entry">
+      				<xsl:attribute name="name">/ConnectionFactory</xsl:attribute>
+      			</xsl:element>
+      			<xsl:element name="entry">
+      				<xsl:attribute name="name">/XAConnectionFactory</xsl:attribute>
+      			</xsl:element>
+      		</xsl:element>
+      	</xsl:element>
+      	
+      	<xsl:element name="connection-factory">
+      		<xsl:attribute name="name">
+      			<xsl:text>NettyThroughputConnectionFactory</xsl:text>
+      		</xsl:attribute>
+      		<xsl:element name="connectors">
+      			<xsl:element name="connector-ref">
+      				<xsl:attribute name="connector-name">
+      					<xsl:text>netty-throughput</xsl:text>
+      				</xsl:attribute>
+      			</xsl:element>
+      		</xsl:element>
+      		<xsl:element name="entries">
+      			<xsl:element name="entry">
+      				<xsl:attribute name="name">/ThroughputConnectionFactory</xsl:attribute>
+      			</xsl:element>
+      			<xsl:element name="entry">
+      				<xsl:attribute name="name">/XAThroughputConnectionFactory</xsl:attribute>
+      			</xsl:element>
+      		</xsl:element>
+      	</xsl:element>
+      
+      	<xsl:element name="queue">
+      		<xsl:attribute name="name">
+      			<xsl:text>DLQ</xsl:text>
+      		</xsl:attribute>
+      		<xsl:element name="entry">
+      			<xsl:attribute name="name">/queue/DLQ</xsl:attribute>
+      		</xsl:element>
+      	</xsl:element>
+      	
+      	<xsl:element name="queue">
+      		<xsl:attribute name="name">
+      			<xsl:text>ExpiryQueue</xsl:text>
+      		</xsl:attribute>
+      		<xsl:element name="entry">
+      			<xsl:attribute name="name">/queue/ExpiryQueue</xsl:attribute>
+      		</xsl:element>
+      	</xsl:element>
+      
+         <xsl:call-template name="repeat-queue">
+	         <xsl:with-param name="name">DLQ</xsl:with-param>
+	         <xsl:with-param name="isCountIncluded">false</xsl:with-param>
+	         <xsl:with-param name="repeat-count">1</xsl:with-param>
+	         <xsl:with-param name="count">1</xsl:with-param>
+	      </xsl:call-template>
+	      
+      </xsl:element>
+   </xsl:template>
+
+   <xsl:template name="dynamic-destinations">
+      <xsl:call-template name="repeat-queue">
+         <xsl:with-param name="name">HQ_SMStatsQ</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">true</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$HQ_SMStatsQ"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-queue">
+         <xsl:with-param name="name">HQ_OrderDCStatsQ</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">true</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$HQ_OrderDCStatsQ"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-queue">
+         <xsl:with-param name="name">HQ_ShipDCStatsQ</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">true</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$HQ_ShipDCStatsQ"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-queue">
+         <xsl:with-param name="name">HQ_InvoiceQ</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">true</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$HQ_InvoiceQ"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-queue">
+         <xsl:with-param name="name">SP_PShipConfQ</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">true</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$SP_PShipConfQ"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-queue">
+         <xsl:with-param name="name">SP_POrderQ</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">true</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$SP_POrderQ"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-queue">
+         <xsl:with-param name="name">SM_OrderConfQ</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">true</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$SM_OrderConfQ"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-queue">
+         <xsl:with-param name="name">SM_ShipArrQ</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">true</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$SM_ShipArrQ"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-queue">
+         <xsl:with-param name="name">SM_InvMovementQ</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">true</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$SM_InvMovementQ"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-queue">
+         <xsl:with-param name="name">DC_OrderQ</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">true</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$DC_OrderQ"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-queue">
+         <xsl:with-param name="name">DC_ShipDepQ</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">true</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$DC_ShipDepQ"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-queue">
+         <xsl:with-param name="name">DC_PShipArrQ</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">true</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$DC_PShipArrQ"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-queue">
+         <xsl:with-param name="name">DC_ShipConfQ</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">true</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$DC_ShipConfQ"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-queue">
+         <xsl:with-param name="name">DC_POrderConfQ</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">true</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$DC_POrderConfQ"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-queue">
+         <xsl:with-param name="name">DC_IncomingOffersQ</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">true</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$DC_IncomingOffersQ"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-queue">
+         <xsl:with-param name="name"></xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">true</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$HQ_CreditCardHLT"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-topic">
+         <xsl:with-param name="name">HQ_CreditCardHLT</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">false</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$HQ_CreditCardHLT"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-topic">
+         <xsl:with-param name="name">HQ_ProductAnnouncementT</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">false</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$HQ_ProductAnnouncementT"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-topic">
+         <xsl:with-param name="name">HQ_PriceUpdateT</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">false</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$HQ_PriceUpdateT"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+      <xsl:call-template name="repeat-topic">
+         <xsl:with-param name="name">HQ_ProductFamilyT</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded">true</xsl:with-param>
+         <xsl:with-param name="isCountIncluded">true</xsl:with-param>
+         <xsl:with-param name="repeat-count" select="$HQ_ProductFamilyT"/>
+         <xsl:with-param name="count">1</xsl:with-param>
+      </xsl:call-template>
+   </xsl:template>
+   
+   <xsl:template name="repeat-queue">
+      <xsl:param name="name"/>
+      <xsl:param name="isJndiIncluded"/>
+      <xsl:param name="isCountIncluded"/>
+      <xsl:param name="repeat-count"/>
+      <xsl:param name="count"/>
+      <xsl:call-template name="repeat-mbean">
+         <xsl:with-param name="code">org.jboss.jms.server.destination.QueueService</xsl:with-param>
+         <xsl:with-param name="name" select="$name"/>
+         <xsl:with-param name="destination-service">jboss.messaging.destination:service=Queue</xsl:with-param>
+         <xsl:with-param name="dd">xmdesc/Queue-xmbean.xml</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded" select="$isJndiIncluded"/>
+         <xsl:with-param name="isCountIncluded" select="$isCountIncluded"/>
+         <xsl:with-param name="repeat-count" select="$repeat-count"/>
+         <xsl:with-param name="count" select="$count"/>
+      </xsl:call-template>
+   </xsl:template>
+   <xsl:template name="repeat-topic">
+      <xsl:param name="name"/>
+      <xsl:param name="isJndiIncluded"/>
+      <xsl:param name="isCountIncluded"/>
+      <xsl:param name="repeat-count"/>
+      <xsl:param name="count"/>
+      <xsl:call-template name="repeat-mbean">
+         <xsl:with-param name="code">org.jboss.jms.server.destination.TopicService</xsl:with-param>
+         <xsl:with-param name="name" select="$name"/>
+         <xsl:with-param name="destination-service">jboss.messaging.destination:service=Topic</xsl:with-param>
+         <xsl:with-param name="dd">xmdesc/Topic-xmbean.xml</xsl:with-param>
+         <xsl:with-param name="isJndiIncluded" select="$isJndiIncluded"/>
+         <xsl:with-param name="isCountIncluded" select="$isCountIncluded"/>
+         <xsl:with-param name="repeat-count" select="$repeat-count"/>
+         <xsl:with-param name="count" select="$count"/>
+      </xsl:call-template>
+   </xsl:template>
+   
+   <xsl:template name="repeat-mbean">
+      <xsl:param name="code"/>
+      <xsl:param name="name"/>
+      <xsl:param name="destination-service"/>
+      <xsl:param name="dd"/>
+      <xsl:param name="isJndiIncluded"/>
+      <xsl:param name="isCountIncluded"/>
+      <xsl:param name="repeat-count"/>
+      <xsl:param name="count"/>
+     
+      <xsl:if test="number($count) &lt;= number($repeat-count)">
+         <xsl:call-template name="generate-mbean">
+	         <xsl:with-param name="code" select="$code"/>
+	         <xsl:with-param name="name" select="$name"/>
+	         <xsl:with-param name="destination-service" select="$destination-service"/>
+	         <xsl:with-param name="dd" select="$dd"/>
+	         <xsl:with-param name="isJndiIncluded" select="$isJndiIncluded"/>
+	         <xsl:with-param name="isCountIncluded" select="$isCountIncluded"/>
+	         <xsl:with-param name="count" select="$count"/>
+         </xsl:call-template>
+         <xsl:call-template name="repeat-mbean">
+	         <xsl:with-param name="code">
+	            <xsl:value-of select="$code"/>
+	         </xsl:with-param>
+            <xsl:with-param name="name">
+               <xsl:value-of select="$name"/>
+            </xsl:with-param>
+            <xsl:with-param name="destination-service">
+               <xsl:value-of select="$destination-service"/>
+            </xsl:with-param>
+            <xsl:with-param name="dd">
+               <xsl:value-of select="$dd"/>
+            </xsl:with-param>
+            <xsl:with-param name="isJndiIncluded">
+               <xsl:value-of select="$isJndiIncluded"/>
+            </xsl:with-param>
+            <xsl:with-param name="isCountIncluded">
+               <xsl:value-of select="$isCountIncluded"/>
+            </xsl:with-param>
+	         <xsl:with-param name="repeat-count">
+	           <xsl:value-of select="$repeat-count"/>
+	         </xsl:with-param>
+	         <xsl:with-param name="count">
+	           <xsl:value-of select="number($count)+1"/>
+	         </xsl:with-param>
+         </xsl:call-template>
+      </xsl:if>
+   </xsl:template>
+   
+   <xsl:template name="generate-mbean">
+      <xsl:param name="code"/>
+      <xsl:param name="name"/>
+      <xsl:param name="destination-service"/>
+      <xsl:param name="dd"/>
+      <xsl:param name="isJndiIncluded"/>
+      <xsl:param name="isCountIncluded"/>
+      <xsl:param name="count"/>
+      <xsl:element name="mbean">
+         <xsl:attribute name="code">
+            <xsl:value-of select="$code"/>
+         </xsl:attribute>
+         <xsl:attribute name="name">
+            <xsl:value-of select="$destination-service"/>
+            <xsl:text>,name=</xsl:text>
+            <xsl:value-of select="$name"/>
+            <xsl:if test="'true'=$isCountIncluded">
+               <xsl:value-of select="$count"/>
+            </xsl:if>
+         </xsl:attribute>
+         <xsl:attribute name="xmbean-dd">
+            <xsl:value-of select="$dd"/>
+         </xsl:attribute>
+         <xsl:element name="depends">
+            <xsl:attribute name="optional-attribute-name">ServerPeer</xsl:attribute>
+            <xsl:text>jboss.messaging:service=ServerPeer</xsl:text>
+         </xsl:element>
+         <xsl:element name="depends">
+            <xsl:text>jboss.messaging:service=PostOffice</xsl:text>
+         </xsl:element>
+         <xsl:if test="'true'=$isJndiIncluded">
+            <xsl:element name="attribute">
+               <xsl:attribute name="name">JNDIName</xsl:attribute>
+               <xsl:text>/</xsl:text>
+               <xsl:value-of select="$name"/>
+               <xsl:if test="'true'=$isCountIncluded">
+                  <xsl:value-of select="$count"/>
+               </xsl:if>
+            </xsl:element>
+         </xsl:if>
+      </xsl:element>
+   </xsl:template>
+   
+</xsl:stylesheet>



More information about the jboss-svn-commits mailing list