Author: objectiser
Date: 2010-06-24 18:12:37 -0400 (Thu, 24 Jun 2010)
New Revision: 788
Added:
trunk/samples/esb/bpel_loan_fault/esbcontent/
trunk/samples/esb/bpel_loan_fault/esbcontent/META-INF/
trunk/samples/esb/bpel_loan_fault/esbcontent/META-INF/deployment.xml
trunk/samples/esb/bpel_loan_fault/esbcontent/META-INF/jbm-queue-service.xml
trunk/samples/esb/bpel_loan_fault/esbcontent/META-INF/jboss-esb.xml
Removed:
trunk/samples/esb/bpel_loan_fault/deployment.xml
trunk/samples/esb/bpel_loan_fault/jbm-queue-service.xml
trunk/samples/esb/bpel_loan_fault/jbmq-queue-service.xml
trunk/samples/esb/bpel_loan_fault/jboss-esb.xml
Modified:
trunk/samples/esb/bpel_helloworld/build.xml
trunk/samples/esb/bpel_helloworld/readme.txt
trunk/samples/esb/bpel_loan_fault/build.xml
trunk/samples/esb/bpel_loan_fault/readme.txt
Log:
Updated second ESB example to run locally.
Modified: trunk/samples/esb/bpel_helloworld/build.xml
===================================================================
--- trunk/samples/esb/bpel_helloworld/build.xml 2010-06-24 22:10:06 UTC (rev 787)
+++ trunk/samples/esb/bpel_helloworld/build.xml 2010-06-24 22:12:37 UTC (rev 788)
@@ -17,25 +17,6 @@
<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>
Modified: trunk/samples/esb/bpel_helloworld/readme.txt
===================================================================
--- trunk/samples/esb/bpel_helloworld/readme.txt 2010-06-24 22:10:06 UTC (rev 787)
+++ trunk/samples/esb/bpel_helloworld/readme.txt 2010-06-24 22:12:37 UTC (rev 788)
@@ -2,7 +2,9 @@
======================================================
This is a simple example that calls an ESB service, which then invokes a
-BPEL process (hello_world) using the BPELInvoke ESB action.
+BPEL process (hello_world) using the BPELInvoke ESB action. Therefore
+before deploying and running this example, you will need to deploy
+the "quickstart/hello_world" example.
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'.
Modified: trunk/samples/esb/bpel_loan_fault/build.xml
===================================================================
--- trunk/samples/esb/bpel_loan_fault/build.xml 2010-06-24 22:10:06 UTC (rev 787)
+++ trunk/samples/esb/bpel_loan_fault/build.xml 2010-06-24 22:12:37 UTC (rev 788)
@@ -1,4 +1,4 @@
-<project name="Quickstart_esb_bpel_loan_fault" default="run"
basedir=".">
+<project name="Quickstart_esb_bpel_loan_fault" default="deploy"
basedir=".">
<description>
${ant.project.name}
@@ -6,8 +6,36 @@
</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"
/>
+
+ <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: trunk/samples/esb/bpel_loan_fault/deployment.xml
===================================================================
--- trunk/samples/esb/bpel_loan_fault/deployment.xml 2010-06-24 22:10:06 UTC (rev 787)
+++ trunk/samples/esb/bpel_loan_fault/deployment.xml 2010-06-24 22:12:37 UTC (rev 788)
@@ -1,6 +0,0 @@
-<jbossesb-deployment>
- <depends>jboss.bpel:service=BPELEngine</depends>
-
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpel_loan_fault_Request_esb</depends>
-
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpel_loan_fault_Request_esb_reply</depends>
-
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpel_loan_fault_Request_gw</depends>
-</jbossesb-deployment>
Added: trunk/samples/esb/bpel_loan_fault/esbcontent/META-INF/deployment.xml
===================================================================
--- trunk/samples/esb/bpel_loan_fault/esbcontent/META-INF/deployment.xml
(rev 0)
+++ trunk/samples/esb/bpel_loan_fault/esbcontent/META-INF/deployment.xml 2010-06-24
22:12:37 UTC (rev 788)
@@ -0,0 +1,6 @@
+<jbossesb-deployment>
+ <depends>jboss.bpel:service=BPELEngine</depends>
+
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpel_loan_fault_Request_esb</depends>
+
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpel_loan_fault_Request_esb_reply</depends>
+
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpel_loan_fault_Request_gw</depends>
+</jbossesb-deployment>
Added: trunk/samples/esb/bpel_loan_fault/esbcontent/META-INF/jbm-queue-service.xml
===================================================================
--- trunk/samples/esb/bpel_loan_fault/esbcontent/META-INF/jbm-queue-service.xml
(rev 0)
+++ trunk/samples/esb/bpel_loan_fault/esbcontent/META-INF/jbm-queue-service.xml 2010-06-24
22:12:37 UTC (rev 788)
@@ -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_loan_fault_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_loan_fault_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_loan_fault_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>
Added: trunk/samples/esb/bpel_loan_fault/esbcontent/META-INF/jboss-esb.xml
===================================================================
--- trunk/samples/esb/bpel_loan_fault/esbcontent/META-INF/jboss-esb.xml
(rev 0)
+++ trunk/samples/esb/bpel_loan_fault/esbcontent/META-INF/jboss-esb.xml 2010-06-24
22:12:37 UTC (rev 788)
@@ -0,0 +1,52 @@
+<?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_loan_fault_Request_gw"
+ />
+ </jms-bus>
+ <jms-bus busid="quickstartEsbChannel">
+ <jms-message-filter
+ dest-type="QUEUE"
+ dest-name="queue/quickstart_bpel_loan_fault_Request_esb"
+ />
+ </jms-bus>
+
+ </jms-provider>
+ </providers>
+
+ <services>
+ <service
+ category="LoanFaultBPELESB"
+ name="LoanFail"
+ description="Fail to get loan approved">
+ <listeners>
+ <jms-listener name="JMS-Gateway"
+ busidref="quickstartGwChannel"
+ is-gateway="true" />
+ <jms-listener name="loanFault"
+ 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://example.com/loan-approval/wsdl/}loanService"/>
+ <property name="operation" value="request"
/>
+ <property name="abortOnFault" value="true" />
+ </action>
+ <action name="action3"
class="org.jboss.soa.esb.actions.SystemPrintln">
+ <property name="printfull"
value="true"/>
+ </action>
+ <!-- The next action is for Continuous Integration testing -->
+ <action name="testStore"
class="org.jboss.soa.esb.actions.TestMessageStore"/>
+ </actions>
+ </service>
+ </services>
+
+</jbossesb>
Deleted: trunk/samples/esb/bpel_loan_fault/jbm-queue-service.xml
===================================================================
--- trunk/samples/esb/bpel_loan_fault/jbm-queue-service.xml 2010-06-24 22:10:06 UTC (rev
787)
+++ trunk/samples/esb/bpel_loan_fault/jbm-queue-service.xml 2010-06-24 22:12:37 UTC (rev
788)
@@ -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_loan_fault_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_loan_fault_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_loan_fault_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: trunk/samples/esb/bpel_loan_fault/jbmq-queue-service.xml
===================================================================
--- trunk/samples/esb/bpel_loan_fault/jbmq-queue-service.xml 2010-06-24 22:10:06 UTC (rev
787)
+++ trunk/samples/esb/bpel_loan_fault/jbmq-queue-service.xml 2010-06-24 22:12:37 UTC (rev
788)
@@ -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_loan_fault_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_loan_fault_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_loan_fault_Request_gw">
- <depends optional-attribute-name="DestinationManager">
- jboss.mq:service=DestinationManager
- </depends>
- </mbean>
-</server>
Deleted: trunk/samples/esb/bpel_loan_fault/jboss-esb.xml
===================================================================
--- trunk/samples/esb/bpel_loan_fault/jboss-esb.xml 2010-06-24 22:10:06 UTC (rev 787)
+++ trunk/samples/esb/bpel_loan_fault/jboss-esb.xml 2010-06-24 22:12:37 UTC (rev 788)
@@ -1,52 +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_loan_fault_Request_gw"
- />
- </jms-bus>
- <jms-bus busid="quickstartEsbChannel">
- <jms-message-filter
- dest-type="QUEUE"
- dest-name="queue/quickstart_bpel_loan_fault_Request_esb"
- />
- </jms-bus>
-
- </jms-provider>
- </providers>
-
- <services>
- <service
- category="LoanFaultBPELESB"
- name="LoanFail"
- description="Fail to get loan approved">
- <listeners>
- <jms-listener name="JMS-Gateway"
- busidref="quickstartGwChannel"
- is-gateway="true" />
- <jms-listener name="loanFault"
- 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://example.com/loan-approval/wsdl/}loanService"/>
- <property name="operation" value="request"
/>
- <property name="abortOnFault" value="true" />
- </action>
- <action name="action3"
class="org.jboss.soa.esb.actions.SystemPrintln">
- <property name="printfull"
value="true"/>
- </action>
- <!-- The next action is for Continuous Integration testing -->
- <action name="testStore"
class="org.jboss.soa.esb.actions.TestMessageStore"/>
- </actions>
- </service>
- </services>
-
-</jbossesb>
Modified: trunk/samples/esb/bpel_loan_fault/readme.txt
===================================================================
--- trunk/samples/esb/bpel_loan_fault/readme.txt 2010-06-24 22:10:06 UTC (rev 787)
+++ trunk/samples/esb/bpel_loan_fault/readme.txt 2010-06-24 22:12:37 UTC (rev 788)
@@ -1,21 +1,17 @@
-Overview:
-=========
- The purpose of the bpel loan fault quickstart sample is to demonstrate
- fault handling when invoking 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 (loan_approval) using the BPELInvoke ESB action, which causes
+a BPEL fault to be raised. This fault is then propagated through the
+ESB service back to the ESB client. Therefore before deploying and running
+this example, you will need to deploy the "quickstart/loan_approval" example.
-To Run '.esb' archive mode:
-===========================
- Before deploying this example, you will need to deploy the BPEL 'loan_approval'
- quickstart example. The ESB action deployed and executed in this example will
- invoke this 'loan_approval' 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