Author: objectiser
Date: 2010-06-24 14:17:07 -0400 (Thu, 24 Jun 2010)
New Revision: 785
Added:
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/esbcontent/
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/esbcontent/META-INF/
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/esbcontent/META-INF/deployment.xml
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/esbcontent/META-INF/jbm-queue-service.xml
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/esbcontent/META-INF/jboss-esb.xml
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/esbcontent/lib/
Removed:
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/deployment.xml
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/jbm-queue-service.xml
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/jbmq-queue-service.xml
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/jboss-esb.xml
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/lib/
Modified:
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/build.xml
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/readme.txt
Log:
Updated ESB example to run within the RiftSaw distribution.
Modified: branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/build.xml
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/build.xml 2010-06-24 13:08:50 UTC
(rev 784)
+++ branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/build.xml 2010-06-24 18:17:07 UTC
(rev 785)
@@ -1,4 +1,4 @@
-<project name="Quickstart_esb_bpel_hello_world" default="run"
basedir=".">
+<project name="Quickstart_esb_bpel_hello_world" default="deploy"
basedir=".">
<description>
${ant.project.name}
@@ -6,8 +6,55 @@
</description>
<!-- Import the base Ant build script... -->
- <import file="../conf/base-build.xml"/>
+ <property file="../../../install/deployment.properties" />
+ <property name="version" value="1" />
+
+ <property name="server.dir"
value="${org.jboss.as.home}/server/${org.jboss.as.config}"/>
+ <property name="conf.dir" value="${server.dir}/conf"/>
+ <property name="deploy.dir" value="${server.dir}/deploy"/>
+ <property name="server.lib.dir" value="${server.dir}/lib"/>
+
+ <property name="sample.esb.name" value="${ant.project.name}.esb"
/>
+
+ <property name="client.build.dir"
location="build/client/classes"/>
+
+ <path id="compile-classpath">
+ <fileset dir="${org.jboss.as.home}/client" includes="*.jar"
/>
+ <fileset dir="${org.jboss.esb.home}/lib/jbossesb.sar/lib"
includes="*.jar" />
+ <fileset dir="${org.jboss.esb.home}/lib" includes="*.jar" />
+ <fileset dir="${org.jboss.esb.home}/lib/ext" includes="*.jar"
/>
+ </path>
+ <property name="compile-classpath"
refid="compile-classpath"/>
+
+ <target name="buildclient" description="build client" >
+ <mkdir dir="${client.build.dir}" />
+ <javac srcdir="src" destdir="${client.build.dir}"
debug="true">
+ <classpath>
+ <path refid="compile-classpath" />
+ </classpath>
+ </javac>
+ </target>
+
+ <target name="deployesb" >
+ <jar basedir="esbcontent"
destfile="${deploy.dir}/${sample.esb.name}" />
+ </target>
+
+ <target name="undeployesb">
+ <delete file="${deploy.dir}/${sample.esb.name}"/>
+ </target>
+
+ <target name="deploy" depends="deployesb" >
+ <echo>Deploy ${ant.project.name}</echo>
+ </target>
+
+ <target name="undeploy" depends="undeployesb" >
+ <echo>Undeploy ${ant.project.name}</echo>
+ </target>
+
+ <!-- Import the base Ant build script... -->
+ <import
file="${org.jboss.esb.home}/samples/quickstarts/conf/base-build.xml"/>
+
<target name="runtest" depends="compile"
description="Will send an esb Message">
<echo>Runs Test ESB Message Sender</echo>
Deleted: branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/deployment.xml
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/deployment.xml 2010-06-24 13:08:50
UTC (rev 784)
+++ branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/deployment.xml 2010-06-24 18:17:07
UTC (rev 785)
@@ -1,6 +0,0 @@
-<jbossesb-deployment>
- <depends>jboss.bpel:service=BPELEngine</depends>
-
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpel_helloworld_Request_esb</depends>
-
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpel_helloworld_Request_esb_reply</depends>
-
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpel_helloworld_Request_gw</depends>
-</jbossesb-deployment>
Copied:
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/esbcontent/META-INF/deployment.xml
(from rev 724, branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/deployment.xml)
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/esbcontent/META-INF/deployment.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/esbcontent/META-INF/deployment.xml 2010-06-24
18:17:07 UTC (rev 785)
@@ -0,0 +1,6 @@
+<jbossesb-deployment>
+ <depends>jboss.bpel:service=BPELEngine</depends>
+
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpel_helloworld_Request_esb</depends>
+
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpel_helloworld_Request_esb_reply</depends>
+
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpel_helloworld_Request_gw</depends>
+</jbossesb-deployment>
Copied:
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/esbcontent/META-INF/jbm-queue-service.xml
(from rev 724, branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/jbm-queue-service.xml)
===================================================================
---
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/esbcontent/META-INF/jbm-queue-service.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/esbcontent/META-INF/jbm-queue-service.xml 2010-06-24
18:17:07 UTC (rev 785)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+
name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpel_helloworld_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.esb.quickstart.destination:service=Queue,name=quickstart_bpel_helloworld_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.esb.quickstart.destination:service=Queue,name=quickstart_bpel_helloworld_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>
+</server>
Copied:
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/esbcontent/META-INF/jboss-esb.xml (from
rev 724, branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/jboss-esb.xml)
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/esbcontent/META-INF/jboss-esb.xml
(rev 0)
+++
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/esbcontent/META-INF/jboss-esb.xml 2010-06-24
18:17:07 UTC (rev 785)
@@ -0,0 +1,50 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jbossesb
xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc...
parameterReloadSecs="5">
+
+ <providers>
+ <jms-provider name="JBossMQ"
connection-factory="ConnectionFactory">
+ <jms-bus busid="quickstartGwChannel">
+ <jms-message-filter
+ dest-type="QUEUE"
+ dest-name="queue/quickstart_bpel_helloworld_Request_gw"
+ />
+ </jms-bus>
+ <jms-bus busid="quickstartEsbChannel">
+ <jms-message-filter
+ dest-type="QUEUE"
+ dest-name="queue/quickstart_bpel_helloworld_Request_esb"
+ />
+ </jms-bus>
+
+ </jms-provider>
+ </providers>
+
+ <services>
+ <service
+ category="HelloWorldBPELESB"
+ name="SayHello"
+ description="Hello World">
+ <listeners>
+ <jms-listener name="JMS-Gateway"
+ busidref="quickstartGwChannel"
+ is-gateway="true" />
+ <jms-listener name="helloWorld"
+ busidref="quickstartEsbChannel" />
+ </listeners>
+ <actions>
+ <action name="action1"
class="org.jboss.soa.esb.actions.SystemPrintln">
+ <property name="printfull"
value="true"/>
+ </action>
+ <action name="action2"
class="org.jboss.soa.esb.actions.bpel.BPELInvoke">
+ <property name="service"
value="{http://www.jboss.org/bpel/examples/wsdl}HelloService"/>
+ <property name="operation" value="hello"
/>
+ <property name="requestPartName" value="TestPart" />
+ <property name="responsePartName" value="TestPart"
/>
+ </action>
+ <!-- The next action is for Continuous Integration testing -->
+ <action name="testStore"
class="org.jboss.soa.esb.actions.TestMessageStore"/>
+ </actions>
+ </service>
+ </services>
+
+</jbossesb>
Copied: branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/esbcontent/lib (from rev 724,
branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/lib)
Deleted: branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/jbm-queue-service.xml
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/jbm-queue-service.xml 2010-06-24
13:08:50 UTC (rev 784)
+++ branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/jbm-queue-service.xml 2010-06-24
18:17:07 UTC (rev 785)
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
- <mbean code="org.jboss.jms.server.destination.QueueService"
-
name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpel_helloworld_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.esb.quickstart.destination:service=Queue,name=quickstart_bpel_helloworld_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.esb.quickstart.destination:service=Queue,name=quickstart_bpel_helloworld_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>
-</server>
Deleted: branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/jbmq-queue-service.xml
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/jbmq-queue-service.xml 2010-06-24
13:08:50 UTC (rev 784)
+++ branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/jbmq-queue-service.xml 2010-06-24
18:17:07 UTC (rev 785)
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
- <mbean code="org.jboss.mq.server.jmx.Queue"
-
name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpel_helloworld_Request_esb">
- <depends optional-attribute-name="DestinationManager">
- jboss.mq:service=DestinationManager
- </depends>
- </mbean>
- <mbean code="org.jboss.mq.server.jmx.Queue"
-
name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpel_helloworld_Request_esb_reply">
- <depends optional-attribute-name="DestinationManager">
- jboss.mq:service=DestinationManager
- </depends>
- </mbean>
- <mbean code="org.jboss.mq.server.jmx.Queue"
-
name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpel_helloworld_Request_gw">
- <depends optional-attribute-name="DestinationManager">
- jboss.mq:service=DestinationManager
- </depends>
- </mbean>
-</server>
Deleted: branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/jboss-esb.xml
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/jboss-esb.xml 2010-06-24 13:08:50
UTC (rev 784)
+++ branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/jboss-esb.xml 2010-06-24 18:17:07
UTC (rev 785)
@@ -1,50 +0,0 @@
-<?xml version = "1.0" encoding = "UTF-8"?>
-<jbossesb
xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc...
parameterReloadSecs="5">
-
- <providers>
- <jms-provider name="JBossMQ"
connection-factory="ConnectionFactory">
- <jms-bus busid="quickstartGwChannel">
- <jms-message-filter
- dest-type="QUEUE"
- dest-name="queue/quickstart_bpel_helloworld_Request_gw"
- />
- </jms-bus>
- <jms-bus busid="quickstartEsbChannel">
- <jms-message-filter
- dest-type="QUEUE"
- dest-name="queue/quickstart_bpel_helloworld_Request_esb"
- />
- </jms-bus>
-
- </jms-provider>
- </providers>
-
- <services>
- <service
- category="HelloWorldBPELESB"
- name="SayHello"
- description="Hello World">
- <listeners>
- <jms-listener name="JMS-Gateway"
- busidref="quickstartGwChannel"
- is-gateway="true" />
- <jms-listener name="helloWorld"
- busidref="quickstartEsbChannel" />
- </listeners>
- <actions>
- <action name="action1"
class="org.jboss.soa.esb.actions.SystemPrintln">
- <property name="printfull"
value="true"/>
- </action>
- <action name="action2"
class="org.jboss.soa.esb.actions.bpel.BPELInvoke">
- <property name="service"
value="{http://www.jboss.org/bpel/examples/wsdl}HelloService"/>
- <property name="operation" value="hello"
/>
- <property name="requestPartName" value="TestPart" />
- <property name="responsePartName" value="TestPart"
/>
- </action>
- <!-- The next action is for Continuous Integration testing -->
- <action name="testStore"
class="org.jboss.soa.esb.actions.TestMessageStore"/>
- </actions>
- </service>
- </services>
-
-</jbossesb>
Modified: branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/readme.txt
===================================================================
--- branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/readme.txt 2010-06-24 13:08:50 UTC
(rev 784)
+++ branches/RiftSaw-2.1.x/samples/esb/bpel_helloworld/readme.txt 2010-06-24 18:17:07 UTC
(rev 785)
@@ -1,21 +1,14 @@
-Overview:
-=========
- The purpose of the bpel helloworld quickstart sample is to demonstrate
- a simple invocation of a BPEL process using an ESB action.
+ESB Examples - Using BPELInvoke to call a BPEL process
+======================================================
-Running this quickstart:
-========================
- Please refer to 'ant help-quickstarts' for prerequisites about the quickstarts
- and a more detailed descripton of the different ways to run the quickstarts.
+This is a simple example that calls an ESB service, which then invokes a
+BPEL process (hello_world) using the BPELInvoke ESB action.
-To Run '.esb' archive mode:
-===========================
- Before deploying this example, you will need to deploy the BPEL 'hello_world'
- quickstart example. The ESB action deployed and executed in this example will
- invoke this 'hello_world' BPEL example.
-
- 1. In a command terminal window in this folder ("Window1"), type 'ant
deploy'.
- 2. Open another command terminal window in this folder ("Window2"), type
- 'ant runtest'.
- 3. Switch back to Application Server console to see the output from the ESB
- 4. In this folder ("Window1"), type 'ant undeploy'.
+To deploy the example, open a command line window in the example's folder,
+and simply type 'ant deploy'. To undeploy, use the command 'ant
undeploy'.
+
+Alternatively, use the 'ant runtest' command (from a command line window)
+to send the example message directly to the deployed process.
+
+Some handy URLs:
+http://localhost:8080/bpel-console is the BPEL console