[jboss-svn-commits] JBL Code SVN: r7339 - in labs/jbossesb/trunk/product/etc: . examples examples/listeners

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Nov 2 13:26:23 EST 2006


Author: estebanschifman
Date: 2006-11-02 13:26:21 -0500 (Thu, 02 Nov 2006)
New Revision: 7339

Added:
   labs/jbossesb/trunk/product/etc/examples/
   labs/jbossesb/trunk/product/etc/examples/listeners/
   labs/jbossesb/trunk/product/etc/examples/listeners/EsbJmsListenerEasier2ReadExample.xml
   labs/jbossesb/trunk/product/etc/examples/listeners/EsbJmsListenerExample.xml
Log:
Move example JMS listener configuration xml to etc/examples/listeners

Added: labs/jbossesb/trunk/product/etc/examples/listeners/EsbJmsListenerEasier2ReadExample.xml
===================================================================
--- labs/jbossesb/trunk/product/etc/examples/listeners/EsbJmsListenerEasier2ReadExample.xml	2006-11-02 18:07:32 UTC (rev 7338)
+++ labs/jbossesb/trunk/product/etc/examples/listeners/EsbJmsListenerEasier2ReadExample.xml	2006-11-02 18:26:21 UTC (rev 7339)
@@ -0,0 +1,36 @@
+<EsbListenerControllerExample
+	parameterReloadSecs="180"
+>
+   <ListenJmsQueueExample
+    service-name="myEprMnemonicName"
+   	listenerClass="org.jboss.soa.esb.message.listeners.JmsQueueListener"
+	connection-factory="ConnectionFactory"
+	destination-type="queue"
+   	destination-name="queue/A"
+	jndi-type="jboss"
+    jndi-URL="localhost"
+    message-selector="service='handOfGod'"
+   >
+   <action class="org.jboss.soa.esb.actions.templates.MockMessageAction" />
+   <action class="org.jboss.soa.esb.actions.templates.MockMessageAction"  process="process222" /> 
+   <action class="org.jboss.soa.esb.actions.templates.MockMessageAction"  
+   	process="noOperation" okMethod="endOfChainNotification"/> 
+
+	<NotificationList type="OK"> 
+		<target class="NotifyFiles">
+			<file	URI="file:///E:/tmp/jbossEsb/notifyDir/GpListenerExample.notifOK" 
+			 	append="true"
+			/>
+		</target> 
+	</NotificationList> 
+	
+	<NotificationList type="err"> 
+		<target class="NotifyFiles">
+			<file	URI="file:///E:/tmp/jbossEsb/notifyDir/GpListenerExample.notifErr" 
+			 	append="true"
+			/>
+		</target> 
+	</NotificationList>
+   </ListenJmsQueueExample>
+   
+</EsbListenerControllerExample>

Added: labs/jbossesb/trunk/product/etc/examples/listeners/EsbJmsListenerExample.xml
===================================================================
--- labs/jbossesb/trunk/product/etc/examples/listeners/EsbJmsListenerExample.xml	2006-11-02 18:07:32 UTC (rev 7338)
+++ labs/jbossesb/trunk/product/etc/examples/listeners/EsbJmsListenerExample.xml	2006-11-02 18:26:21 UTC (rev 7339)
@@ -0,0 +1,44 @@
+<EsbListenerControllerExample
+	parameterReloadSecs="180"
+>
+   <ListenJmsQueueExample
+    service-name="myServiceName"
+   	listenerClass="org.jboss.soa.esb.message.listeners.JmsQueueListener"
+	connection-factory="ConnectionFactory"
+	destination-type="queue"
+   	destination-name="queue/A"
+	jndi-type="jboss"
+    jndi-URL="localhost"
+    message-selector="service='maradona'"
+   >
+   <!-- next line will call (default) process(Message) method with no notification for step -->
+   <action class="org.jboss.soa.esb.actions.templates.MockMessageAction" />
+   <!-- next line will call process222(Message) method with no notification for step -->
+   <action class="org.jboss.soa.esb.actions.templates.MockMessageAction"  process="process222" /> 
+   <!-- next line will call (default) process(Message) - on success=>invoke myOkMethod1 -->
+   <action class="org.jboss.soa.esb.actions.templates.MockMessageAction"  okMethod="myOkMethod1" /> 
+   <action class="org.jboss.soa.esb.actions.templates.MockMessageAction"  process="process222" 
+   		okMethod="myMethod2" />
+   <!-- next line would be useful to notify end of action chain process=noOperation (see class)-->
+   <action class="org.jboss.soa.esb.actions.templates.MockMessageAction"  process="noOperation" /> 
+   <!-- example of a method that will always throw an Exception  -->
+   <action class="org.jboss.soa.esb.actions.templates.MockMessageAction" process="justThrow" exceptionMethod="exceptionCallback1"/> 
+
+	<NotificationList type="OK"> 
+		<target class="NotifyFiles">
+			<file	URI="file:///E:/tmp/jbossEsb/notifyDir/GpListenerExample.notifOK" 
+			 	append="true"
+			/>
+		</target> 
+	</NotificationList> 
+	
+	<NotificationList type="err"> 
+		<target class="NotifyFiles">
+			<file	URI="file:///E:/tmp/jbossEsb/notifyDir/GpListenerExample.notifErr" 
+			 	append="true"
+			/>
+		</target> 
+	</NotificationList>
+   </ListenJmsQueueExample>
+   
+</EsbListenerControllerExample>




More information about the jboss-svn-commits mailing list