servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bsny...@apache.org
Subject svn commit: r393963 - in /incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification: ./ instance1/ instance2/ instance3/
Date Thu, 13 Apr 2006 22:34:10 GMT
Author: bsnyder
Date: Thu Apr 13 15:34:06 2006
New Revision: 393963

URL: http://svn.apache.org/viewcvs?rev=393963&view=rev
Log:
Added a WS-Notification example per SM-400.

Added:
    incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/
    incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/README.txt
    incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance1/
    incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance1/servicemix1.xml
    incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance2/
    incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance2/servicemix2.xml
    incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance3/
    incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance3/servicemix3.xml
    incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/wsn-message.xml

Added: incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/README.txt
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/README.txt?rev=393963&view=auto
==============================================================================
--- incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/README.txt
(added)
+++ incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/README.txt
Thu Apr 13 15:34:06 2006
@@ -0,0 +1,25 @@
+Welcome to the ServiceMix Web Services - Notification Example
+=============================================================
+
+This example demonstrates the ability to use the Web Services - 
+Notification implementation in ServiceMix. To run this example, open 
+three terminals - one for each instance directory. In each terminal, start
+ServiceMix and feed the configuration like so: 
+
+In terminal one: 
+$ cd ./instance1 
+$ ../../../bin/servicemix ./servicemix1.xml
+
+In terminal two: 
+$ cd ./instance2
+$ ../../../bin/servicemix ./servicemix2.xml
+
+In terminal three: 
+$ cd ./instance3
+$ ../../../bin/servicemix ./servicemix3.xml
+
+ServiceMix instance3 will publish messages to the topic named MyTopic and 
+ServiceMix instance2 will receive these messages because it is subscribed to 
+the topic named MyTopic.
+
+WS-Notification demand publishing and filters will be added soon. 

Added: incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance1/servicemix1.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance1/servicemix1.xml?rev=393963&view=auto
==============================================================================
--- incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance1/servicemix1.xml
(added)
+++ incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance1/servicemix1.xml
Thu Apr 13 15:34:06 2006
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns:sm="http://servicemix.apache.org/config/1.0" 
+	   xmlns:amq="http://activemq.org/config/1.0"
+	   xmlns:test="http://servicemix.org/test">
+
+  <!-- the JBI container -->
+  <sm:container id="jbi" 
+                name="wsn1"
+                embedded="true"
+                MBeanServer="#mbeanServer">
+  <sm:flow>
+    <bean class="org.apache.servicemix.jbi.nmr.flow.jms.JMSFlow">
+      <property name="connectionFactory" ref="connectionFactory" />
+    </bean>
+  </sm:flow>
+
+    <sm:activationSpecs />
+
+  </sm:container>
+  
+  <!-- JMX server and connector -->
+  <bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServerFactoryBean"/>
+  
+  <bean id="registry" class="mx4j.tools.naming.NamingService" init-method="start">
+    <property name="port" value="1091"/>
+  </bean>
+  
+  <bean id="serverConnector" class="org.springframework.jmx.support.ConnectorServerFactoryBean"
depends-on="registry">
+    <property name="objectName" value="connector:name=rmi"/>
+    <property name="serviceUrl" value="service:jmx:rmi:///jndi/rmi://localhost:1091/jmxrmi"/>
+    <property name="threaded" value="true"/>
+    <property name="daemon" value="true"/>
+  </bean>
+
+  <bean id="connectionFactory" 
+        class="org.apache.activemq.ActiveMQConnectionFactory">
+    <property name="brokerURL" value="peer://localhost/wsnbroker1?broker.persistent=false"
/>
+  </bean>
+ 
+<!-- 
+  <amq:broker id="broker" depends-on="mbeanServer" persistent="false">
+
+    <amq:transportConnectors>
+      <amq:transportConnector uri="tcp://localhost:61611" discoveryUri="multicast://default"/>
+    </amq:transportConnectors>
+
+  </amq:broker>
+-->  
+
+
+</beans>

Added: incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance2/servicemix2.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance2/servicemix2.xml?rev=393963&view=auto
==============================================================================
--- incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance2/servicemix2.xml
(added)
+++ incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance2/servicemix2.xml
Thu Apr 13 15:34:06 2006
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns:sm="http://servicemix.apache.org/config/1.0" 
+	   xmlns:amq="http://activemq.org/config/1.0"
+	   xmlns:test="http://servicemix.org/test"
+	   xmlns:my="http://servicemix.apache.org/demo">
+	   
+  <!-- the JBI container -->
+  <sm:container id="jbi" 
+                name="wsn2"
+                embedded="true"
+                MBeanServer="#mbeanServer">
+  <sm:flow>
+    <bean class="org.apache.servicemix.jbi.nmr.flow.jms.JMSFlow">
+      <property name="connectionFactory" ref="connectionFactory" />
+    </bean>
+  </sm:flow>
+
+    <sm:activationSpecs>
+
+      <sm:activationSpec id="receiver" service="test:service" endpoint="endpoint">
+        <sm:component>
+          <bean class="org.apache.servicemix.tck.ReceiverComponent">
+          </bean>
+        </sm:component>
+      </sm:activationSpec>
+
+      <sm:activationSpec>
+      	<sm:component>
+      	  <bean class="org.apache.servicemix.wsn.spring.WSNSpringComponent">
+      	    <property name="requests">
+      	      <list>
+      	        <bean class="org.apache.servicemix.wsn.spring.SubscribeFactoryBean">
+      	          <property name="consumer" value="http://servicemix.apache.org/demo/trace/endpoint"
/>
+      	          <property name="topic" value="myTopic" />
+      	        </bean>
+      	      </list>
+      	    </property>
+      	    <property name="connectionFactory" ref="connectionFactory" />
+      	  </bean>
+        </sm:component>
+      </sm:activationSpec>
+      
+	  <sm:activationSpec componentName="trace" service="my:trace" endpoint="endpoint">
+		  <sm:component>
+			  <bean xmlns="http://xbean.org/schemas/spring/1.0"
+				  class="org.apache.servicemix.components.util.TraceComponent" />
+		  </sm:component>
+	  </sm:activationSpec>
+		
+    </sm:activationSpecs>
+  </sm:container>
+  
+  <!-- JMX server and connector -->
+  <bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServerFactoryBean"/>
+  
+  <bean id="registry" class="mx4j.tools.naming.NamingService" init-method="start">
+    <property name="port" value="1092"/>
+  </bean>
+  
+  <bean id="serverConnector" class="org.springframework.jmx.support.ConnectorServerFactoryBean"
depends-on="registry">
+    <property name="objectName" value="connector:name=rmi"/>
+    <property name="serviceUrl" value="service:jmx:rmi:///jndi/rmi://localhost:1092/jmxrmi"/>
+    <property name="threaded" value="true"/>
+    <property name="daemon" value="true"/>
+  </bean>
+
+  <bean id="connectionFactory" 
+        class="org.apache.activemq.ActiveMQConnectionFactory">
+    <property name="brokerURL" value="peer://localhost/wsnbroker2?broker.persistent=false"
/>
+  </bean>
+  
+<!--
+  <amq:broker id="broker" depends-on="mbeanServer" persistent="false">
+
+    <amq:transportConnectors>
+      <amq:transportConnector uri="tcp://localhost:61612" discoveryUri="multicast://default"/>
+    </amq:transportConnectors>
+
+  </amq:broker>
+-->
+
+
+</beans>

Added: incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance3/servicemix3.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance3/servicemix3.xml?rev=393963&view=auto
==============================================================================
--- incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance3/servicemix3.xml
(added)
+++ incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/instance3/servicemix3.xml
Thu Apr 13 15:34:06 2006
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns:sm="http://servicemix.apache.org/config/1.0" 
+	   xmlns:amq="http://activemq.org/config/1.0"
+	   xmlns:test="http://servicemix.org/test"
+	   xmlns:my="http://servicemix.apache.org/demo">
+
+  <!-- the JBI container -->
+  <sm:container id="jbi" 
+                name="wsn3"
+                embedded="true" 
+                MBeanServer="#mbeanServer">
+    <sm:flow>
+      <bean class="org.apache.servicemix.jbi.nmr.flow.jms.JMSFlow">
+        <property name="connectionFactory" ref="connectionFactory" />
+      </bean>
+    </sm:flow>
+    
+    <sm:activationSpecs>
+
+      <sm:activationSpec>
+      	<sm:component>
+      	  <bean class="org.apache.servicemix.wsn.spring.WSNSpringComponent">
+      	    <property name="connectionFactory" ref="connectionFactory" />
+      	  </bean>
+        </sm:component>
+      </sm:activationSpec>
+      
+      <sm:activationSpec service="test:publisher" endpoint="endpoint">
+        <sm:component>
+          <bean class="org.apache.servicemix.wsn.spring.PublisherComponent">
+    	    <property name="topic" value="myTopic" />
+          </bean>
+        </sm:component>
+      </sm:activationSpec>
+      
+      <sm:activationSpec destinationService="test:publisher" destinationEndpoint="endpoint">
+        <sm:component>
+          <bean class="org.apache.servicemix.components.quartz.QuartzComponent">
+            <property name="triggers">
+              <map>
+                <entry>
+                  <key>
+                    <bean class="org.quartz.SimpleTrigger">
+                      <property name="repeatInterval" value="2000"/>
+                      <property name="repeatCount" value="20"/>
+                    </bean>
+                  </key>
+                    <bean class="org.quartz.JobDetail">
+                      <property name="name" value="My Example Job"/>
+                      <property name="group" value="ServiceMix"/>
+                    </bean>
+                </entry>
+              </map>
+            </property>
+          </bean>
+        </sm:component>
+      </sm:activationSpec>
+      
+		<sm:activationSpec componentName="trace" service="my:trace">
+			<sm:component>
+				<bean xmlns="http://xbean.org/schemas/spring/1.0"
+					class="org.apache.servicemix.components.util.TraceComponent" />
+			</sm:component>
+		</sm:activationSpec>
+
+    </sm:activationSpecs>
+  </sm:container>
+  
+  <!-- JMX server and connector -->
+  <bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServerFactoryBean"/>
+  
+  <bean id="registry" class="mx4j.tools.naming.NamingService" init-method="start">
+    <property name="port" value="1093"/>
+  </bean>
+  <bean id="serverConnector" class="org.springframework.jmx.support.ConnectorServerFactoryBean"
depends-on="registry">
+    <property name="objectName" value="connector:name=rmi"/>
+    <property name="serviceUrl" value="service:jmx:rmi:///jndi/rmi://localhost:1093/jmxrmi"/>
+    <property name="threaded" value="true"/>
+    <property name="daemon" value="true"/>
+  </bean>
+
+  <bean id="connectionFactory" 
+        class="org.apache.activemq.ActiveMQConnectionFactory">
+    <property name="brokerURL" value="peer://localhost/wsnbroker3?broker.persistent=false"
/>
+  </bean>
+  
+<!--
+  <amq:broker id="broker" depends-on="mbeanServer" persistent="false">
+
+    <amq:transportConnectors>
+      <amq:transportConnector uri="tcp://localhost:61613" discoveryUri="multicast://default"/>
+    </amq:transportConnectors>
+
+  </amq:broker>
+-->
+
+
+</beans>

Added: incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/wsn-message.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/wsn-message.xml?rev=393963&view=auto
==============================================================================
--- incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/wsn-message.xml
(added)
+++ incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/wsn-message.xml
Thu Apr 13 15:34:06 2006
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ns2:Notify xmlns:ns2="http://docs.oasis-open.org/wsn/b-2"
+    xmlns="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://docs.oasis-open.org/wsrf/bf-2"
+    xmlns:ns4="http://docs.oasis-open.org/wsn/t-1">
+
+    <ns2:NotificationMessage>
+        <ns2:Topic>myTopic</ns2:Topic>
+        <ns2:Message>
+            <timer xmlns="" xmlns:ns5="http://www.w3.org/2005/08/addressing">
+                <name>My Example Job</name>
+                <group>ServiceMix</group>
+                <fullname>ServiceMix.My Example Job</fullname>
+                <description/>
+                <fireTime>Thu Apr 13 15:45:34 MDT 2006</fireTime>
+            </timer>
+        </ns2:Message>
+    </ns2:NotificationMessage>
+</ns2:Notify>



Mime
View raw message