[jboss-svn-commits] JBL Code SVN: r13164 - in labs/jbossesb/trunk/product/samples/quickstarts: bpm_orchestration2 and 13 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Jul 6 11:31:34 EDT 2007
Author: burrsutter
Date: 2007-07-06 11:31:34 -0400 (Fri, 06 Jul 2007)
New Revision: 13164
Added:
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/build.xml
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/deployment.xml
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jbm-queue-service-scoped.xml
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jbm-queue-service.xml
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jbmq-queue-service.xml
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jboss-esb.xml
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jbossesb-properties.xml
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jndi.properties
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/juddi.properties
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/lib/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/log4j.xml
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/processDefinition1/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/processDefinition1/gpd.xml
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/processDefinition1/processdefinition.xml
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/processDefinition1/processimage.jpg
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/readme.txt
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service1.groovy
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service2.groovy
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service3.groovy
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service4.groovy
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service5.groovy
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service6.groovy
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service7.groovy
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/esb_actions/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/esb_actions/MessageSpy.java
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/esb_actions/SimpleJMSNotifier.java
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/process_actions/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/process_actions/MyBPMActionHandler.java
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/test/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/test/SendJMSMessageDeploy.java
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/test/SendJMSMessageStart.java
Log:
Completed the JMS-based BPM orchestration sample
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/build.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/build.xml 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,56 @@
+<project name="Quickstart_bpm_orchestration2" default="run" basedir=".">
+
+ <description>
+ ${ant.project.name}
+ ${line.separator}
+ </description>
+
+ <property name="deploy.exploded" value="true"/>
+
+ <!-- Import the base Ant build script... -->
+ <import file="../conf/base-build.xml"/>
+
+ <property name="project.process.dir" value="processDefinition1"/>
+
+ <target name="quickstart-specific-assemblies">
+ <copy overwrite="true" file="${project.process.dir}/processdefinition.xml" todir="${classes}/${project.process.dir}" />
+ <copy todir="${classes}">
+ <fileset dir="${basedir}" includes="scripts/**/*"/>
+ </copy>
+ </target>
+
+ <target name="refreshProcess" description="Moves the changed process definition to the server without restarting all the services">
+ <echo>Moves the changed process definition to the server without restarting all the services</echo>
+ <copy overwrite="true"
+ file="${project.process.dir}/processdefinition.xml"
+ tofile="${quickstart.org.jboss.esb.server.home}/server/${quickstart.org.jboss.esb.server.config}/deploy/${ant.project.name}.esb/${project.process.dir}/processdefinition.xml"/>
+ <antcall target="deployProcess"/>
+ </target>
+
+ <target name="runtest">
+ <echo>Use "ant deployProcess" followed by "ant startProcess"</echo>
+ </target>
+
+ <target name="run">
+ <echo>"ant run" - the run target is not supported in this example</echo>
+ <echo>Use "ant deploy" to get an .esb archive running in either</echo>
+ <echo>the ESB Server or the ESB embedded in JBoss Application Server</echo>
+ </target>
+
+ <target name="deployProcess" depends="compile" description="Sends a message to deploy the process definition">
+ <echo>Sends a message to deploy the process definition</echo>
+ <java fork="yes" classname="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.test.SendJMSMessageDeploy" failonerror="true">
+ <arg value="Hello World: Deploy the process def"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+ <target name="startProcess" depends="compile" description="Sends a message to start the process instance">
+ <echo>Sends a message to start the process instance</echo>
+ <java fork="yes" classname="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.test.SendJMSMessageStart" failonerror="true">
+ <arg value="Getting Started"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+</project>
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/deployment.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/deployment.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/deployment.xml 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jbossesb-deployment>
+ <depends>jboss.esb:deployment=jbrules.esb</depends>
+ <depends>jboss.esb:deployment=jbpm.esb</depends>
+</jbossesb-deployment>
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jbm-queue-service-scoped.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jbm-queue-service-scoped.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jbm-queue-service-scoped.xml 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+
+ <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
+ <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
+ </loader-repository>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_deploy_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_deploy_Request_gw"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_start_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_start_Request_gw"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service1_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service1_Request_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service2_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service2_Request_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service3_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service3_Request_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service4_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service4_Request_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service5_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service5_Request_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service6_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service6_Request_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_results_service_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service6_Alert"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+</server>
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jbm-queue-service.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jbm-queue-service.xml 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,163 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_deploy_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_deploy_Request_gw"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_start_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_start_Request_gw"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service1_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service1_Request_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service2_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service2_Request_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service3_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service3_Request_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service4_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service4_Request_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service5_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service5_Request_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service6_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service6_Request_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service7_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service7_Request_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_results_service_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service1_Alert"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service2_Alert"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service3_Alert"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service4_Alert"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service5_Alert"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service6_Alert"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_service7_Alert"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_bpm_orchestration2_results_Alert"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+
+</server>
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jbmq-queue-service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jbmq-queue-service.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jbmq-queue-service.xml 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,168 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_deploy_Request_esb">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_deploy_Request_gw">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_start_Request_esb">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_start_Request_gw">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service1_Request_esb">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service1_Request_esb_reply">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service2_Request_esb">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service2_Request_esb_reply">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service3_Request_esb">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service3_Request_esb_reply">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service4_Request_esb">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service4_Request_esb_reply">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service5_Request_esb">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service5_Request_esb_reply">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service6_Request_esb">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service6_Request_esb_reply">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service7_Request_esb">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service7_Request_esb_reply">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_results_service_esb">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service1_Alert">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service2_Alert">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service3_Alert">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service4_Alert">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service5_Alert">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service6_Alert">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_service7_Alert">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_bpm_orchestration2_results_Alert">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+
+</server>
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jboss-esb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jboss-esb.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jboss-esb.xml 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,267 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd"
+ parameterReloadSecs="5">
+
+ <providers>
+ <jms-provider name="JBossMQ" connection-factory="ConnectionFactory"
+ jndi-URL="jnp://127.0.0.1:1099" jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
+ jndi-pkg-prefix="org.jboss.naming:org.jnp.interfaces">
+
+ <jms-bus busid="deployGwChannel">
+ <jms-message-filter dest-type="QUEUE"
+ dest-name="queue/quickstart_bpm_orchestration2_deploy_Request_gw" />
+ </jms-bus>
+ <jms-bus busid="deployEsbChannel">
+ <jms-message-filter dest-type="QUEUE"
+ dest-name="queue/quickstart_bpm_orchestration2_deploy_Request_esb" />
+ </jms-bus>
+ <jms-bus busid="startGwChannel">
+ <jms-message-filter dest-type="QUEUE"
+ dest-name="queue/quickstart_bpm_orchestration2_start_Request_gw" />
+ <!-- quickstart_bpm_orchestration2_start_Request_gw -->
+ <!-- DVDStore_Orders -->
+ <!-- Petstore_Orders -->
+ </jms-bus>
+ <jms-bus busid="startEsbChannel">
+ <jms-message-filter dest-type="QUEUE"
+ dest-name="queue/quickstart_bpm_orchestration2_start_Request_esb" />
+ </jms-bus>
+ <jms-bus busid="service1EsbChannel">
+ <jms-message-filter dest-type="QUEUE"
+ dest-name="queue/quickstart_bpm_orchestration2_service1_Request_esb" />
+ </jms-bus>
+ <jms-bus busid="service2EsbChannel">
+ <jms-message-filter dest-type="QUEUE"
+ dest-name="queue/quickstart_bpm_orchestration2_service2_Request_esb" />
+ </jms-bus>
+ <jms-bus busid="service3EsbChannel">
+ <jms-message-filter dest-type="QUEUE"
+ dest-name="queue/quickstart_bpm_orchestration2_service3_Request_esb" />
+ </jms-bus>
+ <jms-bus busid="service4EsbChannel">
+ <jms-message-filter dest-type="QUEUE"
+ dest-name="queue/quickstart_bpm_orchestration2_service4_Request_esb" />
+ </jms-bus>
+ <jms-bus busid="service5EsbChannel">
+ <jms-message-filter dest-type="QUEUE"
+ dest-name="queue/quickstart_bpm_orchestration2_service5_Request_esb" />
+ </jms-bus>
+ <jms-bus busid="service6EsbChannel">
+ <jms-message-filter dest-type="QUEUE"
+ dest-name="queue/quickstart_bpm_orchestration2_service6_Request_esb" />
+ </jms-bus>
+ <jms-bus busid="service7EsbChannel">
+ <jms-message-filter dest-type="QUEUE"
+ dest-name="queue/quickstart_bpm_orchestration2_service7_Request_esb" />
+ </jms-bus>
+ <jms-bus busid="resultsService">
+ <jms-message-filter dest-type="QUEUE"
+ dest-name="queue/quickstart_bpm_orchestration2_results_service_esb" />
+ </jms-bus>
+ </jms-provider>
+ </providers>
+
+ <services>
+ <service category="BPM_Orchestration2_Deploy_Service" name="Deploy_Service"
+ description="BPM Orchestration Sample 2: Use this service to deploy a process instance">
+ <listeners>
+ <jms-listener name="JMS-Gateway" busidref="deployGwChannel"
+ maxThreads="1"
+ is-gateway="true" />
+ <jms-listener name="ESB-Listener" busidref="deployEsbChannel"
+ maxThreads="1"/>
+ </listeners>
+ <actions>
+ <action name="DeployFromFile"
+ class="org.jboss.soa.esb.services.jbpm.actions.BpmProcessor">
+ <property name="command" value="DeployProcessDefinition" />
+ <property name="process-definition-file" value="/processDefinition1/processdefinition.xml" />
+ </action>
+ <action name="deployed-message" class="org.jboss.soa.esb.actions.SystemPrintln">
+ <property name="message" value="Process Definition Deployed" />
+ </action>
+ </actions>
+ </service>
+
+ <service category="BPM_Orchestration2_Starter_Service" name="Starter_Service"
+ description="BPM Orchestration Sample 2: Use this service to start a process instance">
+ <listeners>
+ <jms-listener name="JMS-Gateway" busidref="startGwChannel"
+ maxThreads="1"
+ is-gateway="true" />
+ <jms-listener name="ESB-Listener" busidref="startEsbChannel"
+ maxThreads="1"/>
+ </listeners>
+ <actions>
+
+ <action name="spy"
+ class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.esb_actions.MessageSpy"/>
+
+ <!-- move the body.getContents() into jBPM -->
+ <action name="create_new_process_instance"
+ class="org.jboss.soa.esb.services.jbpm.actions.BpmProcessor">
+ <property name="command" value="NewProcessInstanceCommand" />
+ <property name="process-definition-name" value="processDefinition1"/>
+ <property name="actor" value="FrankSinatra"/>
+ <property name="esb-to-jbpm">
+ <!-- esb-name maps to getBody().get("eVar1") -->
+ <variables>
+ <variable esb-name="BODY_CONTENT" jbpm-name="theBody" />
+ </variables>
+ </property>
+ </action>
+
+ <action name="signal_the_new_process_instance"
+ class="org.jboss.soa.esb.services.jbpm.actions.BpmProcessor">
+ <property name="command" value="SignalCommand" />
+ <property name="esb-to-jbpm">
+ <variables>
+ <variable esb-name="eVar1" jbpm-name="counter" value="45" />
+ <variable esb-name="BODY_CONTENT" jbpm-name="theBody" />
+ </variables>
+ </property>
+ </action>
+
+ <action name="spy"
+ class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.esb_actions.MessageSpy"/>
+
+ </actions>
+ </service>
+
+ <service category="BPM_Orchestration2_Service1" name="Service1"
+ description="BPM Orchestration Sample 2: this is a service invoked within the process">
+ <listeners>
+ <jms-listener name="ESB-Listener" busidref="service1EsbChannel"
+ maxThreads="1"/>
+ </listeners>
+ <actions>
+
+ <action name="groovy" class="org.jboss.soa.esb.actions.scripting.GroovyActionProcessor">
+ <property name="script" value="/scripts/service1.groovy" />
+ </action>
+ <action name="alert" class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.esb_actions.SimpleJMSNotifier">
+ <property name="ALERT_QUEUE_NAME" value="quickstart_bpm_orchestration2_service1_Alert" />
+ </action>
+
+ </actions>
+ </service>
+ <service category="BPM_Orchestration2_Service2" name="Service2"
+ description="BPM Orchestration Sample 2: this is a service invoked within the process">
+ <listeners>
+ <jms-listener name="ESB-Listener" busidref="service2EsbChannel"
+ maxThreads="1"/>
+ </listeners>
+ <actions>
+
+ <action name="groovy" class="org.jboss.soa.esb.actions.scripting.GroovyActionProcessor">
+ <property name="script" value="/scripts/service2.groovy" />
+ </action>
+ <action name="alert" class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.esb_actions.SimpleJMSNotifier">
+ <property name="ALERT_QUEUE_NAME" value="quickstart_bpm_orchestration2_service2_Alert" />
+ </action>
+
+ </actions>
+ </service>
+ <service category="BPM_Orchestration2_Service3" name="Service3"
+ description="BPM Orchestration Sample 2: this is a service invoked within the process">
+ <listeners>
+ <jms-listener name="ESB-Listener" busidref="service3EsbChannel"
+ maxThreads="1"/>
+ </listeners>
+ <actions>
+
+ <action name="groovy" class="org.jboss.soa.esb.actions.scripting.GroovyActionProcessor">
+ <property name="script" value="/scripts/service3.groovy" />
+ </action>
+ <action name="alert" class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.esb_actions.SimpleJMSNotifier">
+ <property name="ALERT_QUEUE_NAME" value="quickstart_bpm_orchestration2_service3_Alert" />
+ </action>
+
+ </actions>
+ </service>
+
+ <service category="BPM_Orchestration2_Service4" name="Service4"
+ description="BPM Orchestration Sample 2: this is a service invoked within the process">
+ <listeners>
+ <jms-listener name="ESB-Listener" busidref="service4EsbChannel"
+ maxThreads="1"/>
+ </listeners>
+ <actions>
+ <action name="groovy" class="org.jboss.soa.esb.actions.scripting.GroovyActionProcessor">
+ <property name="script" value="/scripts/service4.groovy" />
+ </action>
+ <action name="alert" class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.esb_actions.SimpleJMSNotifier">
+ <property name="ALERT_QUEUE_NAME" value="quickstart_bpm_orchestration2_service4_Alert" />
+ </action>
+ </actions>
+ </service>
+ <service category="BPM_Orchestration2_Service5" name="Service5"
+ description="BPM Orchestration Sample 2: this is a service invoked within the process">
+ <listeners>
+ <jms-listener name="ESB-Listener" busidref="service5EsbChannel"
+ maxThreads="1"/>
+ </listeners>
+ <actions>
+ <action name="groovy" class="org.jboss.soa.esb.actions.scripting.GroovyActionProcessor">
+ <property name="script" value="/scripts/service5.groovy" />
+ </action>
+ <action name="alert" class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.esb_actions.SimpleJMSNotifier">
+ <property name="ALERT_QUEUE_NAME" value="quickstart_bpm_orchestration2_service5_Alert" />
+ </action>
+ </actions>
+ </service>
+ <service category="BPM_Orchestration2_Service6" name="Service6"
+ description="BPM Orchestration Sample 2: this is a service invoked within the process">
+ <listeners>
+ <jms-listener name="ESB-Listener" busidref="service6EsbChannel"
+ maxThreads="1"/>
+ </listeners>
+ <actions>
+ <action name="groovy" class="org.jboss.soa.esb.actions.scripting.GroovyActionProcessor">
+ <property name="script" value="/scripts/service6.groovy" />
+ </action>
+
+ <action name="alert" class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.esb_actions.SimpleJMSNotifier">
+ <property name="ALERT_QUEUE_NAME" value="quickstart_bpm_orchestration2_service6_Alert" />
+ </action>
+ </actions>
+ </service>
+ <service category="BPM_Orchestration2_Service7" name="Service7"
+ description="BPM Orchestration Sample 2: this is a service invoked within the process">
+ <listeners>
+ <jms-listener name="ESB-Listener" busidref="service7EsbChannel"
+ maxThreads="1"/>
+ </listeners>
+ <actions>
+ <action name="groovy" class="org.jboss.soa.esb.actions.scripting.GroovyActionProcessor">
+ <property name="script" value="/scripts/service7.groovy" />
+ </action>
+
+ <action name="alert" class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.esb_actions.SimpleJMSNotifier">
+ <property name="ALERT_QUEUE_NAME" value="quickstart_bpm_orchestration2_service7_Alert" />
+ </action>
+ </actions>
+ </service>
+
+
+ <service category="BPM_Orchestration2_ResultsService" name="ResultsService"
+ description="BPM Orchestration Sample 2: Sends outbound results of the process flow">
+ <listeners>
+ <jms-listener name="ESB-Listener" busidref="resultsService"
+ maxThreads="1"/>
+ </listeners>
+ <actions>
+ <action name="spy"
+ class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.esb_actions.MessageSpy"/>
+ <action name="alert" class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.esb_actions.SimpleJMSNotifier">
+ <property name="ALERT_QUEUE_NAME" value="quickstart_bpm_orchestration2_results_Alert" />
+ </action>
+ <action name="results-message" class="org.jboss.soa.esb.actions.SystemPrintln">
+ <property name="message" value="SUCCESS!" />
+ </action>
+
+ </actions>
+ </service>
+ </services>
+
+</jbossesb>
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jbossesb-properties.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jbossesb-properties.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jbossesb-properties.xml 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and others contributors as indicated
+ by the @authors tag. All rights reserved.
+ See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+ This copyrighted material is made available to anyone wishing to use,
+ modify, copy, or redistribute it subject to the terms and conditions
+ of the GNU Lesser General Public License, v. 2.1.
+ This program is distributed in the hope that it will be useful, but WITHOUT A
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ You should have received a copy of the GNU Lesser General Public License,
+ v.2.1 along with this distribution; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ (C) 2005-2006,
+ @author JBoss Inc.
+-->
+<!-- $Id: jbossesb-unittest-properties.xml $ -->
+<!--
+ These options are described in the JBossESB manual.
+ Defaults are provided here for convenience only.
+
+ Please read through this file prior to using the system, and consider
+ updating the specified entries.
+-->
+<esb
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="jbossesb-1_0.xsd">
+ <properties name="core">
+ <property name="org.jboss.soa.esb.jndi.server.type" value="jboss"/>
+ <property name="org.jboss.soa.esb.jndi.server.url" value="localhost"/>
+ <property name="org.jboss.soa.esb.persistence.connection.factory" value="org.jboss.internal.soa.esb.persistence.format.MessageStoreFactoryImpl"/>
+ </properties>
+ <properties name="registry">
+ <property name="org.jboss.soa.esb.registry.queryManagerURI"
+ value="jnp://localhost:1099/InquiryService?org.apache.juddi.registry.rmi.Inquiry#inquire"/>
+ <property name="org.jboss.soa.esb.registry.lifeCycleManagerURI"
+ value="jnp://localhost:1099/PublishService?org.apache.juddi.registry.rmi.Publish#publish" />
+ <property name="org.jboss.soa.esb.registry.implementationClass"
+ value="org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl"/>
+ <property name="org.jboss.soa.esb.registry.factoryClass"
+ value="org.apache.ws.scout.registry.ConnectionFactoryImpl"/>
+ <property name="org.jboss.soa.esb.registry.user"
+ value="jbossesb"/>
+ <property name="org.jboss.soa.esb.registry.password"
+ value="password"/>
+ <!-- the following parameter is scout specific to set the type of communication between scout and the UDDI (embedded, rmi, soap) -->
+ <property name="org.jboss.soa.esb.scout.proxy.transportClass"
+ value="org.apache.ws.scout.transport.RMITransport"/>
+ </properties>
+ <properties name="transports" depends="core">
+ <property name="org.jboss.soa.esb.mail.smtp.host" value="localhost"/>
+ <property name="org.jboss.soa.esb.mail.smtp.user" value="jbossesb"/>
+ <property name="org.jboss.soa.esb.mail.smtp.password" value=""/>
+ <property name="org.jboss.soa.esb.mail.smtp.port" value="25"/>
+ </properties>
+ <properties name="connection">
+ <property name="min-pool-size" value="5"/>
+ <property name="max-pool=size" value="10"/>
+ <property name="blocking-timeout-millis" value="5000"/>
+ <property name="abandoned-connection-timeout" value="10000"/>
+ <property name="abandoned-connection-time-interval" value="30000"/>
+ </properties>
+ <properties name="dbstore">
+ <property name="org.jboss.soa.esb.persistence.db.connection.url" value="jdbc:hsqldb:hsql://localhost:9001/jbossesb"/>
+ <property name="org.jboss.soa.esb.persistence.db.jdbc.driver" value="org.hsqldb.jdbcDriver"/>
+ <property name="org.jboss.soa.esb.persistence.db.user" value="sa"/>
+ <property name="org.jboss.soa.esb.persistence.db.pwd" value=""/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.initial.size" value="2"/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.min.size" value="2"/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.max.size" value="5"/>
+ <!--table managed by pool to test for valid connections - created by pool automatically -->
+ <property name="org.jboss.soa.esb.persistence.db.pool.test.table" value="pooltest"/>
+ <!-- # of milliseconds to timeout waiting for a connection from pool -->
+ <property name="org.jboss.soa.esb.persistence.db.pool.timeout.millis" value="5000"/>
+ </properties>
+ <properties name="messagerouting">
+ <property name="org.jboss.soa.esb.routing.cbrClass" value="org.jboss.internal.soa.esb.services.routing.cbr.JBossRulesRouter"/>
+ </properties>
+</esb>
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jndi.properties
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jndi.properties (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/jndi.properties 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,5 @@
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.provider.url=jnp://localhost:1099
+java.naming.factory.url.pkgs=org.jboss.naming
+java.naming.factory.url.pkgs=org.jnp.interfaces
+
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/juddi.properties
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/juddi.properties (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/juddi.properties 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,69 @@
+# jUDDI Registry Properties (used by RegistryServer)
+# see http://www.juddi.org for more information
+
+# The UDDI Operator Name
+juddi.operatorName = jUDDI.org
+
+# The i18n locale default codes
+juddi.i18n.languageCode = en
+juddi.i18n.countryCode = US
+
+# The UDDI DiscoveryURL Prefix
+juddi.discoveryURL = http://localhost:8080/juddi/uddiget.jsp?
+
+# The UDDI Operator Contact Email Address
+juddi.operatorEmailAddress = admin at juddi.org
+
+# The maximum name size and maximum number
+# of name elements allows in several of the
+# FindXxxx and SaveXxxx UDDI functions.
+juddi.maxNameLength=255
+juddi.maxNameElementsAllowed=5
+
+# The maximum number of UDDI artifacts allowed
+# per publisher. A value of '-1' indicates any
+# number of artifacts is valid (These values can be
+# overridden at the individual publisher level).
+juddi.maxBusinessesPerPublisher=25
+juddi.maxServicesPerBusiness=20
+juddi.maxBindingsPerService=10
+juddi.maxTModelsPerPublisher=100
+
+# jUDDI Authentication module to use
+juddi.auth = org.apache.juddi.auth.DefaultAuthenticator
+
+# jUDDI DataStore module currently to use
+juddi.dataStore = org.apache.juddi.datastore.jdbc.JDBCDataStore
+
+# use a dataSource (if set to false a direct
+# jdbc connection will be used.
+juddi.isUseDataSource=false
+juddi.jdbcDriver=com.mysql.jdbc.Driver
+juddi.jdbcUrl=jdbc:mysql://localhost:3306/juddi
+juddi.jdbcUsername=root
+juddi.jdbcPassword=admin
+# jUDDI DataSource to use
+# juddi.dataSource=java:comp/env/jdbc/MySqlDS
+
+# jUDDI UUIDGen implementation to use
+juddi.uuidgen = org.apache.juddi.uuidgen.DefaultUUIDGen
+
+# jUDDI Cryptor implementation to use
+juddi.cryptor = org.apache.juddi.cryptor.DefaultCryptor
+
+# jUDDI Validator to use
+juddi.validator=org.apache.juddi.validator.DefaultValidator
+
+# jUDDI Proxy Properties (used by RegistryProxy)
+juddi.proxy.adminURL = http://localhost:8080/juddi/admin
+juddi.proxy.inquiryURL = http://localhost:8080/juddi/inquiry
+juddi.proxy.publishURL = http://localhost:8080/juddi/publish
+juddi.proxy.transportClass = org.apache.juddi.proxy.AxisTransport
+juddi.proxy.securityProvider = com.sun.net.ssl.internal.ssl.Provider
+juddi.proxy.protocolHandler = com.sun.net.ssl.internal.www.protocol
+
+# JNDI settings (used by RMITransport)
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.provider.url=jnp://localhost:1099
+java.naming.factory.url.pkgs=org.jboss.naming
+
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/log4j.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/log4j.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/log4j.xml 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- Log4j Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<!-- $Id: log4j.xml,v 1.26.2.5 2005/09/15 09:31:02 dimitris Exp $ -->
+
+<!--
+ | For more configuration infromation and examples see the Jakarta Log4j
+ | owebsite: http://jakarta.apache.org/log4j
+ -->
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+ <!-- ============================== -->
+ <!-- Append messages to the console -->
+ <!-- ============================== -->
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="Target" value="System.out"/>
+ <param name="Threshold" value="INFO"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%t][%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ================================= -->
+ <!-- Preserve messages in a local file -->
+ <!-- ================================= -->
+
+ <!-- A size based file rolling appender -->
+ <appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="File" value="./listener.log"/>
+ <param name="Append" value="false"/>
+ <param name="MaxFileSize" value="500KB"/>
+ <param name="MaxBackupIndex" value="1"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d %-5p [%t][%c] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ================ -->
+ <!-- Limit categories -->
+ <!-- ================ -->
+
+ <category name="org.jboss">
+ <priority value="WARN"/>
+ </category>
+ <category name="org.jboss.soa.esb">
+ <priority value="ERROR"/>
+ </category>
+ <category name="org.jboss.internal.soa.esb">
+ <priority value="ERROR"/>
+ </category>
+ <category name="org.apache">
+ <priority value="ERROR"/>
+ </category>
+ <category name="quickstart">
+ <priority value="DEBUG"/>
+ </category>
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root>
+ <appender-ref ref="CONSOLE"/>
+ <appender-ref ref="FILE"/>
+ </root>
+
+</log4j:configuration>
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/processDefinition1/gpd.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/processDefinition1/gpd.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/processDefinition1/gpd.xml 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<process-diagram name="processDefinition1" width="546" height="540">
+ <node name="start" x="225" y="10" width="140" height="40">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+ <node name="Receive Order" x="114" y="81" width="140" height="40">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+ <node name="Validate Order" x="336" y="79" width="140" height="40">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+ <node name="fork1" x="170" y="234" width="325" height="25">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ <transition name="tr2">
+ <label x="5" y="-10"/>
+ </transition>
+ <transition name="tr3">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+ <node name="Los Angeles WHSE" x="49" y="294" width="140" height="40">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+ <node name="Dallas WHSE" x="235" y="295" width="140" height="40">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+ <node name="Atlanta WHSE" x="405" y="297" width="140" height="40">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+ <node name="join1" x="143" y="379" width="341" height="25">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+ <node name="Shipment Notice" x="246" y="432" width="140" height="40">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+ <node name="end1" x="246" y="499" width="140" height="40"/>
+ <node name="Credit Check" x="116" y="155" width="140" height="40">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+ <node name="Inventory Check" x="335" y="156" width="140" height="40">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+</process-diagram>
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/processDefinition1/processdefinition.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/processDefinition1/processdefinition.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/processDefinition1/processdefinition.xml 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<process-definition
+ xmlns="urn:jbpm.org:jpdl-3.1" name="processDefinition1">
+ <start-state name="start">
+ <event type="node-enter">
+ <action name="action1" class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.process_actions.MyBPMActionHandler" config-type="bean"></action>
+ </event>
+ <transition name="" to="Receive Order"></transition>
+ </start-state>
+
+ <node name="Receive Order">
+ <event type="node-enter">
+ <action name="esbAction" class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler">
+ <esbCategoryName>BPM_Orchestration2_Service1</esbCategoryName>
+ <esbServiceName>Service1</esbServiceName>
+ <millisToWaitForResponse>5000</millisToWaitForResponse>
+ <jbpmToEsb_variables>theBody</jbpmToEsb_variables>
+ <jbpmToEsb_esbNames>BODY_CONTENT</jbpmToEsb_esbNames>
+ <return_variables>theBody</return_variables>
+ <return_esbNames>BODY_CONTENT</return_esbNames>
+ </action>
+ </event>
+ <transition name="" to="Validate Order"></transition>
+ </node>
+ <node name="Validate Order">
+ <event type="node-enter">
+ <action name="esbAction" class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler">
+ <esbCategoryName>BPM_Orchestration2_Service2</esbCategoryName>
+ <esbServiceName>Service2</esbServiceName>
+ <millisToWaitForResponse>5000</millisToWaitForResponse>
+ <jbpmToEsb_variables>theBody</jbpmToEsb_variables>
+ <jbpmToEsb_esbNames>BODY_CONTENT</jbpmToEsb_esbNames>
+ <return_variables>theBody</return_variables>
+ <return_esbNames>BODY_CONTENT</return_esbNames>
+ </action>
+ </event>
+ <transition name="" to="Credit Check"></transition>
+ </node>
+
+ <fork name="fork1">
+ <transition name="" to="Los Angeles WHSE"></transition>
+ <transition name="tr2" to="Dallas WHSE"></transition>
+ <transition name="tr3" to="Atlanta WHSE"></transition>
+ </fork>
+ <node name="Los Angeles WHSE">
+ <event type="node-enter">
+ <action name="esbAction" class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler">
+ <esbCategoryName>BPM_Orchestration2_Service5</esbCategoryName>
+ <esbServiceName>Service5</esbServiceName>
+ <millisToWaitForResponse>5000</millisToWaitForResponse>
+ <jbpmToEsb_variables>theBody</jbpmToEsb_variables>
+ <jbpmToEsb_esbNames>BODY_CONTENT</jbpmToEsb_esbNames>
+ <return_variables>theBody</return_variables>
+ <return_esbNames>BODY_CONTENT</return_esbNames>
+ </action>
+ </event>
+ <transition name="" to="join1"></transition>
+ </node>
+ <node name="Dallas WHSE">
+ <event type="node-enter">
+ <action name="esbAction" class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler">
+ <esbCategoryName>BPM_Orchestration2_Service6</esbCategoryName>
+ <esbServiceName>Service6</esbServiceName>
+ <millisToWaitForResponse>5000</millisToWaitForResponse>
+ <jbpmToEsb_variables>theBody</jbpmToEsb_variables>
+ <jbpmToEsb_esbNames>BODY_CONTENT</jbpmToEsb_esbNames>
+ <return_variables>theBody</return_variables>
+ <return_esbNames>BODY_CONTENT</return_esbNames>
+ </action>
+ </event>
+ <transition name="" to="join1"></transition>
+ </node>
+
+ <node name="Atlanta WHSE">
+ <event type="node-enter">
+ <action name="esbAction" class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler">
+ <esbCategoryName>BPM_Orchestration2_Service7</esbCategoryName>
+ <esbServiceName>Service7</esbServiceName>
+ <millisToWaitForResponse>5000</millisToWaitForResponse>
+ <jbpmToEsb_variables>theBody</jbpmToEsb_variables>
+ <jbpmToEsb_esbNames>BODY_CONTENT</jbpmToEsb_esbNames>
+ <return_variables>theBody</return_variables>
+ <return_esbNames>BODY_CONTENT</return_esbNames>
+ </action>
+ </event>
+ <transition name="" to="join1"></transition>
+ </node>
+
+ <join name="join1">
+ <transition name="" to="Shipment Notice"></transition>
+ </join>
+
+ <node name="Shipment Notice">
+ <event type="node-enter">
+ <action name="action1" class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.process_actions.MyBPMActionHandler" config-type="bean"></action>
+ <action name="esbAction" class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler">
+ <esbCategoryName>BPM_Orchestration2_ResultsService</esbCategoryName>
+ <esbServiceName>ResultsService</esbServiceName>
+ <jbpmToEsb_variables>theBody</jbpmToEsb_variables>
+ <jbpmToEsb_esbNames>BODY_CONTENT</jbpmToEsb_esbNames>
+ <return_variables>theBody</return_variables>
+ <return_esbNames>BODY_CONTENT</return_esbNames>
+ </action>
+ </event>
+
+ <transition name="" to="end1"></transition>
+ </node>
+
+ <end-state name="end1"></end-state>
+ <node name="Credit Check">
+ <event type="node-enter">
+ <action name="esbAction" class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler">
+ <esbCategoryName>BPM_Orchestration2_Service3</esbCategoryName>
+ <esbServiceName>Service3</esbServiceName>
+ <millisToWaitForResponse>5000</millisToWaitForResponse>
+ <jbpmToEsb_variables>theBody</jbpmToEsb_variables>
+ <jbpmToEsb_esbNames>BODY_CONTENT</jbpmToEsb_esbNames>
+ <return_variables>theBody</return_variables>
+ <return_esbNames>BODY_CONTENT</return_esbNames>
+ </action>
+ </event>
+ <transition name="" to="Inventory Check"></transition>
+ </node>
+ <node name="Inventory Check">
+ <event type="node-enter">
+ <action name="esbAction" class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler">
+ <esbCategoryName>BPM_Orchestration2_Service4</esbCategoryName>
+ <esbServiceName>Service4</esbServiceName>
+ <millisToWaitForResponse>5000</millisToWaitForResponse>
+ <jbpmToEsb_variables>theBody</jbpmToEsb_variables>
+ <jbpmToEsb_esbNames>BODY_CONTENT</jbpmToEsb_esbNames>
+ <return_variables>theBody</return_variables>
+ <return_esbNames>BODY_CONTENT</return_esbNames>
+ </action>
+ </event>
+ <transition name="" to="fork1"></transition>
+ </node>
+
+</process-definition>
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/processDefinition1/processimage.jpg
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/processDefinition1/processimage.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/readme.txt (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/readme.txt 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,127 @@
+Overview:
+=========
+ The purpose of the bpm_orchestration2 quickstart sample is to demonstrate the
+use of JMS-based endpoints/services where the flow of execution is controlled by
+the process definition. The process definition also includes a fork & join and
+makes each service invocation in a synchronous fashion.
+
+
+To Run standalone mode:
+=======================
+NOTE: This quickstart does NOT presently running in standalone mode. It must be
+executed as a .esb archive in either the ESB Server or JBoss Application Server.
+These steps are listed here for our testing/debugging purposes.
+1. Open two command windows in the directory called "bpm_orchestration2"
+2. In command window 1, execute "ant deploy-jms-dests"
+3. In command window 1, execute "ant run"
+4. In command window 2, execute "ant deployProcess"
+5. In command window 2, execute "ant startProcess"
+
+To Run '.esb' archive mode:
+===========================
+1. ant deploy - creates a folder called "Quickstart_bpm_orchestration2.esb" in
+your targeted deploy directory.
+
+2. ant deployProcess - sends a message that fires a service that loads the
+process definition from the file system and into the repository. Alternatively,
+you could have deployed the process definition via the jBPM Graphical Process
+Designer or the jBPM web console.
+You will know when the process definition is successfully deployed when you see
+a lot of jBPM & Hibernate logging activity with something similiar to the
+following as the last 4 lines:
+11:16:08,859 INFO [SchemaExport] Running hbm2ddl schema export
+11:16:08,875 INFO [SchemaExport] exporting generated schema to database
+11:16:09,015 INFO [SchemaExport] schema export complete
+11:16:11,656 INFO [STDOUT] Process Definition Deployed:
+
+3. ant startProcess - this sends a messge that causes a new process instance to
+be created and "signaled", since this process definition contains no wait-states
+it will execute until completion. This step causes a lot of output to the
+server console as each node/service is visited in the process graph. Look for
+"SUCCESS!" to indicate that the service called "ResultsService" was invoked.
+
+Extra Credit:
+=============
+1. Modify the process definition using your favorite editor or the Grahpical
+Process Desginer (from jBPM 3.2.x). Remove the following transitions from the
+fork to Atlanta and Dallas:
+ <transition name="tr2" to="Dallas WHSE"></transition>
+ <transition name="tr3" to="Atlanta WHSE"></transition>
+This change means that the flow of execution will bypass Service6 and Service7.
+
+2. ant refreshProcess - This step copies the newly changed process definition to
+its appropriate location in the deployed .esb archive and then invokes the
+deployProcess command.
+
+3. ant startProcess - Service6 (Dallas) and 7 (Atlanta) are gone.
+
+Feel free to rewire the process definition in any order that you like to see the
+change in execution flow.
+
+
+Things to Consider:
+===========================
+- BPM related quickstarts deploy as an exploded archive.
+- The service "logic" is coded in Groovy
+- Carefully review the jboss-esb.xml and the processdefinition.xml. One of the
+key things to understand is how the ESB action invokes or interacts with the
+process and how it moves ESB message data into process instance variables.
+ <property name="esb-to-jbpm">
+ <variables>
+ <variable esb-name="esbMsgVar1" jbpm-name="processVar1" />
+ <variable esb-name="BODY_CONTENT" jbpm-name="theBody" />
+ </variables>
+ </property>
+
+ esb-name maps to Message.getBody().get("esbMsgVar1")
+ "BODY_CONTENT" maps to Message.getBody()
+
+Sample Output from "ant startProcess":
+======================================
+11:18:50,656 INFO [STDOUT] 11111111111 Begin Service 1 11111111111
+11:18:50,765 INFO [STDOUT] In: Getting Started
+11:18:50,765 INFO [STDOUT] Out: Getting Started 'Receive Order'
+11:18:50,765 INFO [STDOUT] 111111111111 End Service 1 111111111111
+11:18:51,640 INFO [STDOUT] 33333333333 Begin Service 3 33333333333
+11:18:51,640 INFO [STDOUT] In: Getting Started 'Receive Order'
+11:18:51,640 INFO [STDOUT] Out: Getting Started 'Receive Order' 'Credit Check'
+
+11:18:51,640 INFO [STDOUT] 333333333333 End Service 3 333333333333
+11:18:52,312 INFO [STDOUT] 22222222222 Begin Service 2 22222222222
+11:18:52,312 INFO [STDOUT] In: Getting Started 'Receive Order' 'Credit Check'
+
+11:18:52,312 INFO [STDOUT] Out: Getting Started 'Receive Order' 'Credit Check'
+ 'Validate Order'
+11:18:52,312 INFO [STDOUT] 222222222222 End Service 2 222222222222
+11:18:52,828 INFO [STDOUT] 44444444444 Begin Service 4 44444444444
+11:18:52,828 INFO [STDOUT] In: Getting Started 'Receive Order' 'Credit Check'
+ 'Validate Order'
+11:18:52,828 INFO [STDOUT] Out: Getting Started 'Receive Order' 'Credit Check'
+ 'Validate Order' 'Inventory Check'
+11:18:52,828 INFO [STDOUT] 444444444444 End Service 4 444444444444
+11:18:53,359 INFO [STDOUT] 77777777777 Begin Service 7 77777777777
+11:18:53,359 INFO [STDOUT] In: Getting Started 'Receive Order' 'Credit Check'
+ 'Validate Order' 'Inventory Check'
+11:18:53,359 INFO [STDOUT] Out: Getting Started 'Receive Order' 'Credit Check'
+ 'Validate Order' 'Inventory Check' 'Atlanta'
+11:18:53,359 INFO [STDOUT] 777777777777 End Service 7 777777777777
+11:18:53,734 INFO [STDOUT] 66666666666 Begin Service 6 66666666666
+11:18:53,734 INFO [STDOUT] In: Getting Started 'Receive Order' 'Credit Check'
+ 'Validate Order' 'Inventory Check' 'Atlanta'
+11:18:53,734 INFO [STDOUT] Out: Getting Started 'Receive Order' 'Credit Check'
+ 'Validate Order' 'Inventory Check' 'Atlanta' 'Dallas'
+11:18:53,734 INFO [STDOUT] 666666666666 End Service 6 666666666666
+11:18:54,078 INFO [STDOUT] 55555555555 Begin Service 5 55555555555
+11:18:54,093 INFO [STDOUT] In: Getting Started 'Receive Order' 'Credit Check'
+ 'Validate Order' 'Inventory Check' 'Atlanta' 'Dallas'
+11:18:54,093 INFO [STDOUT] Out: Getting Started 'Receive Order' 'Credit Check'
+ 'Validate Order' 'Inventory Check' 'Atlanta' 'Dallas' 'Los Angeles'
+11:18:54,093 INFO [STDOUT] 555555555555 End Service 5 555555555555
+11:18:54,234 INFO [STDOUT] Very simple BPM Process ActionHandler
+11:18:54,453 INFO [MessageSpy] Body: Getting Started 'Receive Order' 'Credit C
+heck' 'Validate Order' 'Inventory Check' 'Atlanta' 'Dallas' 'Los Angeles'
+11:18:54,640 INFO [STDOUT] SUCCESS!:
+11:18:54,640 INFO [STDOUT] [Getting Started 'Receive Order' 'Credit Check' 'V
+alidate Order' 'Inventory Check' 'Atlanta' 'Dallas' 'Los Angeles' ].
+11:18:54,937 INFO [MessageSpy] Body: Getting Started 'Receive Order' 'Credit C
+heck' 'Validate Order' 'Inventory Check' 'Atlanta' 'Dallas' 'Los Angeles'
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service1.groovy
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service1.groovy (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service1.groovy 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,11 @@
+import org.jboss.soa.esb.message.*
+
+println "11111111111 Begin Service 1 11111111111"
+
+println "In: " + new String(message.body.contents)
+
+message.body.contents = (new String(message.body.contents) + " 'Receive Order' ").getBytes()
+
+println "Out: " + new String(message.body.contents)
+
+println "111111111111 End Service 1 111111111111"
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service2.groovy
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service2.groovy (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service2.groovy 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,13 @@
+import org.jboss.soa.esb.message.*
+
+println "22222222222 Begin Service 2 22222222222"
+
+println "In: " + new String(message.body.contents)
+
+message.body.contents = (new String(message.body.contents) + " 'Validate Order' ").getBytes()
+
+println "Out: " + new String(message.body.contents)
+
+println "222222222222 End Service 2 222222222222"
+
+
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service3.groovy
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service3.groovy (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service3.groovy 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,10 @@
+import org.jboss.soa.esb.message.*
+
+println "33333333333 Begin Service 3 33333333333"
+
+println "In: " + new String(message.body.contents)
+
+message.body.contents = (new String(message.body.contents) + " 'Credit Check' ").getBytes()
+
+println "Out: " + new String(message.body.contents)
+println "333333333333 End Service 3 333333333333"
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service4.groovy
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service4.groovy (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service4.groovy 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,11 @@
+import org.jboss.soa.esb.message.*
+
+println "44444444444 Begin Service 4 44444444444"
+
+println "In: " + new String(message.body.contents)
+
+message.body.contents = (new String(message.body.contents) + " 'Inventory Check' ").getBytes()
+
+println "Out: " + new String(message.body.contents)
+
+println "444444444444 End Service 4 444444444444"
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service5.groovy
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service5.groovy (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service5.groovy 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,11 @@
+import org.jboss.soa.esb.message.*
+
+println "55555555555 Begin Service 5 55555555555"
+
+println "In: " + new String(message.body.contents)
+
+message.body.contents = (new String(message.body.contents) + " 'Los Angeles' ").getBytes()
+
+println "Out: " + new String(message.body.contents)
+
+println "555555555555 End Service 5 555555555555"
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service6.groovy
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service6.groovy (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service6.groovy 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,11 @@
+import org.jboss.soa.esb.message.*
+
+println "66666666666 Begin Service 6 66666666666"
+
+println "In: " + new String(message.body.contents)
+
+message.body.contents = (new String(message.body.contents) + " 'Dallas' ").getBytes()
+
+println "Out: " + new String(message.body.contents)
+
+println "666666666666 End Service 6 666666666666"
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service7.groovy
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service7.groovy (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/scripts/service7.groovy 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,11 @@
+import org.jboss.soa.esb.message.*
+
+println "77777777777 Begin Service 7 77777777777"
+
+println "In: " + new String(message.body.contents)
+
+message.body.contents = (new String(message.body.contents) + " 'Atlanta' ").getBytes()
+
+println "Out: " + new String(message.body.contents)
+
+println "777777777777 End Service 7 777777777777"
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/esb_actions/MessageSpy.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/esb_actions/MessageSpy.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/esb_actions/MessageSpy.java 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.esb_actions;
+
+
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Body;
+import org.jboss.soa.esb.message.Message;
+import org.apache.log4j.Logger;
+
+public class MessageSpy extends AbstractActionLifecycle {
+
+ protected ConfigTree _config;
+ private Logger logger = Logger.getLogger(MessageSpy.class);
+
+ // modify to use the logger
+ public Message process(Message message) throws Exception {
+ if (message.getBody() != null && message.getBody().getContents() != null) {
+ logger.info("Body: " + new String(message.getBody().getContents()));
+ } else {
+ logger.info("Body Contents are NULL");
+ }
+ return message;
+ }
+
+ public MessageSpy(ConfigTree config) { _config = config; }
+
+}
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/esb_actions/SimpleJMSNotifier.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/esb_actions/SimpleJMSNotifier.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/esb_actions/SimpleJMSNotifier.java 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,86 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+
+package org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.esb_actions;
+
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Body;
+import org.jboss.soa.esb.message.Message;
+import org.apache.log4j.Logger;
+
+import java.util.Hashtable;
+
+import javax.jms.JMSException;
+import javax.jms.TextMessage;
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueSender;
+import javax.jms.QueueSession;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+public class SimpleJMSNotifier extends AbstractActionLifecycle {
+ protected ConfigTree _config;
+ private Logger logger = Logger.getLogger(SimpleJMSNotifier.class);
+ String queueName = "quickstart_helloworld_Request_gw";
+
+ public Message process(Message message) throws Exception {
+ QueueConnection conn;
+ QueueSession session;
+ Queue que;
+
+ Hashtable properties1 = new Hashtable();
+ properties1.put(Context.INITIAL_CONTEXT_FACTORY,
+ "org.jnp.interfaces.NamingContextFactory");
+ properties1.put(Context.URL_PKG_PREFIXES,
+ "org.jboss.naming:org.jnp.interfaces");
+ properties1.put(Context.PROVIDER_URL, "jnp://127.0.0.1:1099");
+ InitialContext iniCtx = new InitialContext(properties1);
+
+ Object tmp = iniCtx.lookup("ConnectionFactory");
+ QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
+ conn = qcf.createQueueConnection();
+ que = (Queue) iniCtx.lookup("queue/" + queueName);
+ session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
+ conn.start();
+ //logger.info("Connection Started");
+
+ QueueSender send = session.createSender(que);
+ TextMessage tm = session.createTextMessage(new String(message.getBody().getContents()));
+ send.send(tm);
+ send.close();
+
+ conn.stop();
+ session.close();
+ conn.close();
+
+ return message;
+ }
+
+ public SimpleJMSNotifier(ConfigTree config) {
+ _config = config;
+ queueName = _config.getAttribute("ALERT_QUEUE_NAME");
+ logger.info("Who to alert: " + queueName);
+ }
+}
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/process_actions/MyBPMActionHandler.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/process_actions/MyBPMActionHandler.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/process_actions/MyBPMActionHandler.java 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.process_actions;
+
+import org.jbpm.context.exe.ContextInstance;
+import org.jbpm.graph.def.ActionHandler;
+import org.jbpm.graph.exe.ExecutionContext;
+import org.jbpm.graph.exe.Token;
+
+public class MyBPMActionHandler implements ActionHandler
+{
+ private static final long serialVersionUID = 1L;
+
+ Long startFrom;
+
+ public void execute(ExecutionContext exCtx) throws Exception
+ {
+ // Token token = exCtx.getToken();
+ // ContextInstance context = token.getProcessInstance().getContextInstance();
+ // Object obj = context.getVariable("counter",token);
+
+ System.out.println("Very simple BPM Process ActionHandler");
+
+ //context.setVariable("counter", counter , token);
+ }
+
+}
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/test/SendJMSMessageDeploy.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/test/SendJMSMessageDeploy.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/test/SendJMSMessageDeploy.java 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,87 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.test;
+
+import java.util.Hashtable;
+
+import javax.jms.JMSException;
+import javax.jms.ObjectMessage;
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueSender;
+import javax.jms.QueueSession;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+public class SendJMSMessageDeploy {
+ QueueConnection conn;
+ QueueSession session;
+ Queue que;
+
+
+
+ public void setupConnection() throws JMSException, NamingException
+ {
+ Hashtable properties1 = new Hashtable();
+ properties1.put(Context.INITIAL_CONTEXT_FACTORY,
+ "org.jnp.interfaces.NamingContextFactory");
+ properties1.put(Context.URL_PKG_PREFIXES,
+ "org.jboss.naming:org.jnp.interfaces");
+ properties1.put(Context.PROVIDER_URL, "jnp://127.0.0.1:1099");
+ InitialContext iniCtx = new InitialContext(properties1);
+
+ Object tmp = iniCtx.lookup("ConnectionFactory");
+ QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
+ conn = qcf.createQueueConnection();
+ que = (Queue) iniCtx.lookup("queue/quickstart_bpm_orchestration2_deploy_Request_gw");
+ session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
+ conn.start();
+ // System.out.println("Connection Started: quickstart_bpm_orchestration2_deploy_Request_gw");
+ }
+
+ public void stop() throws JMSException
+ {
+ conn.stop();
+ session.close();
+ conn.close();
+ }
+
+ public void sendAMessage(String msg) throws JMSException {
+
+ QueueSender send = session.createSender(que);
+ ObjectMessage tm = session.createObjectMessage(msg);
+ send.send(tm);
+ send.close();
+ }
+
+
+ public static void main(String args[]) throws Exception
+ {
+ SendJMSMessageDeploy sm = new SendJMSMessageDeploy();
+ sm.setupConnection();
+ sm.sendAMessage(args[0]);
+ sm.stop();
+
+ }
+
+}
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/test/SendJMSMessageStart.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/test/SendJMSMessageStart.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration2/test/SendJMSMessageStart.java 2007-07-06 15:31:34 UTC (rev 13164)
@@ -0,0 +1,86 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.test;
+
+import java.util.Hashtable;
+
+import javax.jms.JMSException;
+import javax.jms.ObjectMessage;
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueSender;
+import javax.jms.QueueSession;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+public class SendJMSMessageStart {
+ QueueConnection conn;
+ QueueSession session;
+ Queue que;
+
+
+ public void setupConnection() throws JMSException, NamingException
+ {
+ Hashtable properties1 = new Hashtable();
+ properties1.put(Context.INITIAL_CONTEXT_FACTORY,
+ "org.jnp.interfaces.NamingContextFactory");
+ properties1.put(Context.URL_PKG_PREFIXES,
+ "org.jboss.naming:org.jnp.interfaces");
+ properties1.put(Context.PROVIDER_URL, "jnp://127.0.0.1:1099");
+ InitialContext iniCtx = new InitialContext(properties1);
+
+ Object tmp = iniCtx.lookup("ConnectionFactory");
+ QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
+ conn = qcf.createQueueConnection();
+ que = (Queue) iniCtx.lookup("queue/quickstart_bpm_orchestration2_start_Request_gw");
+ session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
+ conn.start();
+ System.out.println("Connection Started: quickstart_bpm_orchestration2_start_Request_gw" );
+ }
+
+ public void stop() throws JMSException
+ {
+ conn.stop();
+ session.close();
+ conn.close();
+ }
+
+ public void sendAMessage(String msg) throws JMSException {
+
+ QueueSender send = session.createSender(que);
+ ObjectMessage tm = session.createObjectMessage(msg);
+ send.send(tm);
+ send.close();
+ }
+
+
+ public static void main(String args[]) throws Exception
+ {
+ SendJMSMessageStart sm = new SendJMSMessageStart();
+ sm.setupConnection();
+ sm.sendAMessage(args[0]);
+ sm.stop();
+
+ }
+
+}
More information about the jboss-svn-commits
mailing list