[jboss-cvs] JBossAS SVN: r59802 - in trunk/varia/src/resources/services/deployment/templates: jbossmq-queue and 5 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jan 18 18:03:34 EST 2007


Author: chilin
Date: 2007-01-18 18:03:32 -0500 (Thu, 18 Jan 2007)
New Revision: 59802

Added:
   trunk/varia/src/resources/services/deployment/templates/jms-queue/
   trunk/varia/src/resources/services/deployment/templates/jms-queue/template-config.xml
   trunk/varia/src/resources/services/deployment/templates/jms-queue/vm/
   trunk/varia/src/resources/services/deployment/templates/jms-queue/vm/jms-queue.xml.vm
   trunk/varia/src/resources/services/deployment/templates/jms-topic/
   trunk/varia/src/resources/services/deployment/templates/jms-topic/template-config.xml
   trunk/varia/src/resources/services/deployment/templates/jms-topic/vm/
   trunk/varia/src/resources/services/deployment/templates/jms-topic/vm/jms-topic.xml.vm
Modified:
   trunk/varia/src/resources/services/deployment/templates/jbossmq-queue/template-config.xml
   trunk/varia/src/resources/services/deployment/templates/jbossmq-topic/template-config.xml
Log:
Add template to support JBoss Messaging destinations.

Modified: trunk/varia/src/resources/services/deployment/templates/jbossmq-queue/template-config.xml
===================================================================
--- trunk/varia/src/resources/services/deployment/templates/jbossmq-queue/template-config.xml	2007-01-18 21:44:22 UTC (rev 59801)
+++ trunk/varia/src/resources/services/deployment/templates/jbossmq-queue/template-config.xml	2007-01-18 23:03:32 UTC (rev 59802)
@@ -6,7 +6,7 @@
   Documentation for the deployment service can be found at: 
   http://www.jboss.org/wiki/Wiki.jsp?page=DeploymentService
 -->
-<template-config template="vm/jms-queue.xml.vm" extension="-service.xml">
+<template-config template="vm/jbossmq-queue.xml.vm" extension="-service.xml">
 
   <property-list>
     <!-- if type not specified, java.lang.String is assumed -->

Modified: trunk/varia/src/resources/services/deployment/templates/jbossmq-topic/template-config.xml
===================================================================
--- trunk/varia/src/resources/services/deployment/templates/jbossmq-topic/template-config.xml	2007-01-18 21:44:22 UTC (rev 59801)
+++ trunk/varia/src/resources/services/deployment/templates/jbossmq-topic/template-config.xml	2007-01-18 23:03:32 UTC (rev 59802)
@@ -6,7 +6,7 @@
   Documentation for the deployment service can be found at: 
   http://www.jboss.org/wiki/Wiki.jsp?page=DeploymentService
 -->
-<template-config template="vm/jms-topic.xml.vm" extension="-service.xml">
+<template-config template="vm/jbossmq-topic.xml.vm" extension="-service.xml">
 
   <property-list>
     <!-- if type not specified, java.lang.String is assumed -->

Added: trunk/varia/src/resources/services/deployment/templates/jms-queue/template-config.xml
===================================================================
--- trunk/varia/src/resources/services/deployment/templates/jms-queue/template-config.xml	                        (rev 0)
+++ trunk/varia/src/resources/services/deployment/templates/jms-queue/template-config.xml	2007-01-18 23:03:32 UTC (rev 59802)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Example template configuration that produces a JBoss messaging 
+  queue deployment descriptor.
+  
+  Documentation for the deployment service can be found at: 
+  http://www.jboss.org/wiki/Wiki.jsp?page=DeploymentService
+-->
+<template-config template="vm/jms-queue.xml.vm" extension="-service.xml">
+
+  <property-list>
+    <!-- if type not specified, java.lang.String is assumed -->
+    <!-- a value must be supplied at runtime, or an exception will be thrown -->
+    <property name="Name"/>
+    
+    <property name="JNDIName" type="java.lang.String" optional="true">
+      <description>The JNDI name under which the queue will be bound.</description>
+    </property>
+    
+    <property name="DownCacheSize" type="java.lang.Integer" optional="true">       
+      <description>The write-cache size.</description>
+      <default-value>2000</default-value>
+    </property>
+    
+    <property name="FullSize" type="java.lang.Integer" optional="true">       
+      <description>The in-memory message limit.</description>
+      <default-value>75000</default-value>
+    </property>
+    
+    <property name="PageSize" type="java.lang.Integer" optional="true">       
+      <description>The paging size.</description>
+      <default-value>2000</default-value>
+    </property>
+    
+    <!-- arrays and generally any valid java/user class is permitted -->
+    <property name="SecurityRoles" type="[Ljava.lang.String;" optional="true"/>
+
+  </property-list>
+  
+</template-config>
\ No newline at end of file

Added: trunk/varia/src/resources/services/deployment/templates/jms-queue/vm/jms-queue.xml.vm
===================================================================
--- trunk/varia/src/resources/services/deployment/templates/jms-queue/vm/jms-queue.xml.vm	                        (rev 0)
+++ trunk/varia/src/resources/services/deployment/templates/jms-queue/vm/jms-queue.xml.vm	2007-01-18 23:03:32 UTC (rev 59802)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ===================================================================
+  JBoss messaging queue configuration,  
+  automatically generated by DeploymentService
+  ===================================================================
+-->
+<server>
+  <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
+    <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
+  </loader-repository>
+   
+  <mbean code="org.jboss.jms.server.destination.Queue"
+	 name="jboss.messaging.destination:name=${Name},service=Queue"
+	 xmbean-dd="xmdesc/Queue-xmbean.xml">
+	 
+    <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+         
+#if(${JNDIName})
+    <attribute name="JNDIName">${JNDIName}</attribute>
+#end
+
+#if(${DownCacheSize})
+    <attribute name="DownCacheSize">${DownCacheSize}</attribute>
+#end
+
+#if(${FullSize})
+    <attribute name="FullSize">${FullSize}</attribute>
+#end
+
+#if(${PageSize})
+    <attribute name="PageSize">${PageSize}</attribute>
+#end
+
+#if(${SecurityRoles})
+    <attribute name="SecurityConfig">
+      <security>
+#foreach($role in ${SecurityRoles})      
+        <role name="#firstToken($role ':')" #ifDefReplace($role "read" 'read="true"') #ifDefReplace($role "write" 'write="true"') #ifDefReplace($role "create" 'create="true"')/>
+#end        
+      </security>
+    </attribute>
+#end
+  </mbean>
+</server>
\ No newline at end of file

Added: trunk/varia/src/resources/services/deployment/templates/jms-topic/template-config.xml
===================================================================
--- trunk/varia/src/resources/services/deployment/templates/jms-topic/template-config.xml	                        (rev 0)
+++ trunk/varia/src/resources/services/deployment/templates/jms-topic/template-config.xml	2007-01-18 23:03:32 UTC (rev 59802)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Example template configuration that produces a JBoss messaging 
+  topic deployment descriptor.
+  
+  Documentation for the deployment service can be found at: 
+  http://www.jboss.org/wiki/Wiki.jsp?page=DeploymentService
+-->
+<template-config template="vm/jms-topic.xml.vm" extension="-service.xml">
+
+  <property-list>
+    <!-- if type not specified, java.lang.String is assumed -->
+    <!-- a value must be supplied at runtime, or an exception will be thrown -->
+    <property name="Name"/>
+    
+    <property name="JNDIName" type="java.lang.String" optional="true">
+      <description>The JNDI name under which the topic will be bound.</description>
+    </property>
+    
+    <property name="DownCacheSize" type="java.lang.Integer" optional="true">       
+      <description>The write-cache size.</description>
+      <default-value>2000</default-value>
+    </property>
+    
+    <property name="FullSize" type="java.lang.Integer" optional="true">       
+      <description>The in-memory message limit.</description>
+      <default-value>75000</default-value>
+    </property>
+    
+    <property name="PageSize" type="java.lang.Integer" optional="true">       
+      <description>The paging size.</description>
+      <default-value>2000</default-value>
+    </property>
+    
+    <!-- arrays and generally any valid java/user class is permitted -->
+    <property name="SecurityRoles" type="[Ljava.lang.String;" optional="true"/>
+
+  </property-list>
+  
+</template-config>
\ No newline at end of file

Added: trunk/varia/src/resources/services/deployment/templates/jms-topic/vm/jms-topic.xml.vm
===================================================================
--- trunk/varia/src/resources/services/deployment/templates/jms-topic/vm/jms-topic.xml.vm	                        (rev 0)
+++ trunk/varia/src/resources/services/deployment/templates/jms-topic/vm/jms-topic.xml.vm	2007-01-18 23:03:32 UTC (rev 59802)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ===================================================================
+  JBoss messaging queue configuration,  
+  automatically generated by DeploymentService
+  ===================================================================
+-->
+<server>
+  <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
+    <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
+  </loader-repository>
+   
+  <mbean code="org.jboss.jms.server.destination.Topic"
+	 name="jboss.messaging.destination:name=${Name},service=Topic"
+	 xmbean-dd="xmdesc/Topic-xmbean.xml">
+	 
+    <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+         
+#if(${JNDIName})
+    <attribute name="JNDIName">${JNDIName}</attribute>
+#end
+
+#if(${DownCacheSize})
+    <attribute name="DownCacheSize">${DownCacheSize}</attribute>
+#end
+
+#if(${FullSize})
+    <attribute name="FullSize">${FullSize}</attribute>
+#end
+
+#if(${PageSize})
+    <attribute name="PageSize">${PageSize}</attribute>
+#end
+
+#if(${SecurityRoles})
+    <attribute name="SecurityConfig">
+      <security>
+#foreach($role in ${SecurityRoles})      
+        <role name="#firstToken($role ':')" #ifDefReplace($role "read" 'read="true"') #ifDefReplace($role "write" 'write="true"') #ifDefReplace($role "create" 'create="true"')/>
+#end        
+      </security>
+    </attribute>
+#end
+  </mbean>
+</server>
\ No newline at end of file




More information about the jboss-cvs-commits mailing list