[jboss-svn-commits] JBL Code SVN: r21144 - in labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel: src/org/jboss/esb/quickstarts/bpel/transforms and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Jul 21 11:22:11 EDT 2008
Author: tfennelly
Date: 2008-07-21 11:22:11 -0400 (Mon, 21 Jul 2008)
New Revision: 21144
Modified:
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/jboss-esb.xml
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/readme.txt
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/smooks-res.xml
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/esb/quickstarts/bpel/transforms/OrderNumNSModifier.java
Log:
https://jira.jboss.org/jira/browse/JBESB-1852
Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/jboss-esb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/jboss-esb.xml 2008-07-21 12:26:50 UTC (rev 21143)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/jboss-esb.xml 2008-07-21 15:22:11 UTC (rev 21144)
@@ -94,8 +94,8 @@
<action name="print-before-transform" class="org.jboss.soa.esb.actions.SystemPrintln">
<property name="message" value="[Quickstart_webservice_bpel] Message before transforming to fix orderNumber namespace"/>
</action>
- <action name="fixup--order-namespace" class="org.jboss.soa.esb.actions.converters.SmooksTransformer">
- <property name="resource-config" value="/org/jboss/esb/quickstarts/bpel/transforms/order-num-ns-fixup.xml"/>
+ <action name="fixup--order-namespace" class="org.jboss.soa.esb.smooks.SmooksAction">
+ <property name="smooksConfig" value="/org/jboss/esb/quickstarts/bpel/transforms/order-num-ns-fixup.xml"/>
</action>
<action name="print-before" class="org.jboss.soa.esb.actions.SystemPrintln">
<property name="message" value="[Quickstart_webservice_bpel] Message before invoking 'ABI_Shipping' endpoint"/>
@@ -119,9 +119,9 @@
<actions>
<!-- Transform the incoming CSV order approval record into a populated
com.activebpel.ordermanagement.SalesOrderNotification instance. -->
- <action name="message-populator" class="org.jboss.soa.esb.actions.converters.SmooksTransformer">
- <property name="resource-config" value="/smooks-res.xml" />
- <property name="java-output-location" value="$default" />
+ <action name="message-populator" class="org.jboss.soa.esb.smooks.SmooksAction">
+ <property name="smooksConfig" value="/smooks-res.xml" />
+ <property name="resultType" value="JAVA" />
</action>
<action name="print-after-transform" class="org.jboss.soa.esb.actions.SystemPrintln">
Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/readme.txt 2008-07-21 12:26:50 UTC (rev 21143)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/readme.txt 2008-07-21 15:22:11 UTC (rev 21144)
@@ -23,22 +23,20 @@
and a more detailed descripton of the different ways to run the quickstarts.
Note, this quickstart requires an ESB and JBossWS installation into
- JBoss AS 4.2.1.GA. Installation instructions for both can be found in the
+ JBoss AS 4.2.2.GA. Installation instructions for both can be found in the
install/readme.txt.
NOTE: This Quickstart DOES NOT run Standalone, or on the ESB Server. It only runs on the
JBoss Application Server (v4.2.xGA).
- The ActiveBPEL Engine (v3.1) must now be installed on an instance of Tomcat on your
- system. The processes in this Quickstart are pre-built to run on version 3.1 of
- the ActiveBPEl Engine. If you are running on a newer version of the ActiveBPEL
- Engine, you may need to redeploy these processes.
+ The ActiveBPEL Engine (tested with versions v3.1 and v5.0.2) must now be installed on an
+ instance of Tomcat on your system.
- Version 3.1 of the ActiveBpel Engine can be downloaded from:
- http://www.active-endpoints.com/active-bpel-engine-download.htm#final31
+ Tthe ActiveBPEL Engine can be downloaded from:
+ http://www.activevos.com/community-open-source.php
ActiveBPEL Installation Guide:
- http://www.active-endpoints.com/installation-guide.htm
+ After downloading the distribution, unzip and locate all documentation in the docs folder.
Setting up ActiveBPEL:
1. Ensure that the value of the 'directory' attribute on the
@@ -52,25 +50,32 @@
listen for HTTP traffic on port 18080. See
'${env.CATALINA_HOME}/conf/server.xml'.
4. Start your Tomcat deployment at '${env.CATALINA_HOME}'.
- 5. Goto 'Deployed Processes' on the BPEL Console
- (http://localhost:18080/BpelAdmin) and confirm that the 'Customer' and
- 'OrderProcess' BPEL processes are deployed.
+ 5. Goto the ActiveBPEL Console (http://localhost:18080/BpelAdmin) and confirm
+ it displays.
+ 6. In the run.bat/run.sh start script for your JBoss Appllication Server,
+ set the Permanent Generation space size by adding the following to the
+ "JAVA_OPTS" setting:
+ -XX:MaxPermSize=128m
+ 7. Restart your JBoss Application Server.
To Run:
=======
- 1. In a command terminal window in this folder, type 'ant deploy'.
- 2. Start your favorite SOAP client (e.g. SOAPUI) and load the
- 'RetailerService' WSDL (http://localhost:18080/active-bpel/services/RetailerService?wsdl).
- 3. Load the SOAP client (RetailerServiceBinding/SubmitOrder) with the sample order in
- 'bpel/resources/sampleData/submit-order-01.xml'.
- 4. Submit the new order using the SOAP UI client.
- 5. View the state of the new process in 'Active Processes' on the BPEL
- Console. Will appear as 'Running'.
- 6. Drill into the 'Running' OrderProcess process (select it).
- 7. Drill down, you will see that the process is waiting on an
- acknowledgement/notification from the OrderManager service
- (WaitForNotificationFromOrderManager).
- 8 Goto http://localhost:8080/order-manager/ (note, not port '18080').
- From here, you can approve the order.
- 9. When finished, undeploy the application by typing 'ant undeploy'.
+ 1. In a command terminal window in this folder, type 'ant deploy'.
+ 2. Goto 'Deployed Processes' on the BPEL Console
+ (http://localhost:18080/BpelAdmin) and confirm that the 'Customer' and
+ 'OrderProcess' BPEL processes are deployed.
+ 3. Start your favorite SOAP client (e.g. SOAPUI) and load the
+ 'RetailerService' WSDL (http://localhost:18080/active-bpel/services/RetailerService?wsdl).
+ 4. Load the SOAP client (RetailerServiceBinding/SubmitOrder) with the sample order in
+ 'bpel/resources/sampleData/submit-order-01.xml'.
+ 5. Submit the new order using the SOAP UI client.
+ 6. View the state of the new process in 'Active Processes' on the BPEL
+ Console. Will appear as 'Running'.
+ 7. Drill into the 'Running' OrderProcess process (select it).
+ 8. Drill down, you will see that the process is waiting on an
+ acknowledgement/notification from the OrderManager service
+ (WaitForNotificationFromOrderManager).
+ 9. Goto http://localhost:8080/order-manager/ (note, not port '18080').
+ From here, you can approve the order.
+ 10. When finished, undeploy the application by typing 'ant undeploy'.
\ No newline at end of file
Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/smooks-res.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/smooks-res.xml 2008-07-21 12:26:50 UTC (rev 21143)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/smooks-res.xml 2008-07-21 15:22:11 UTC (rev 21144)
@@ -17,12 +17,12 @@
<!--
Suck the order number out of the CSV record and into the SalesOrderNotification bean.
-->
- <resource-config selector="csv-record orderNum">
+ <resource-config selector="csv-record/orderNum">
<resource>org.milyn.javabean.BeanPopulator</resource>
<param name="beanId">salesOrderNotification</param>
<param name="beanClass">com.activebpel.ordermanagement.SalesOrderNotification</param>
<param name="bindings">
- <binding property="orderNumber" selector="csv-record orderNum" />
+ <binding property="orderNumber" selector="csv-record/orderNum" />
</param>
</resource-config>
Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/esb/quickstarts/bpel/transforms/OrderNumNSModifier.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/esb/quickstarts/bpel/transforms/OrderNumNSModifier.java 2008-07-21 12:26:50 UTC (rev 21143)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/esb/quickstarts/bpel/transforms/OrderNumNSModifier.java 2008-07-21 15:22:11 UTC (rev 21144)
@@ -20,6 +20,7 @@
package org.jboss.esb.quickstarts.bpel.transforms;
import org.milyn.delivery.dom.DOMElementVisitor;
+import org.milyn.delivery.dom.DOMVisitAfter;
import org.milyn.container.ExecutionContext;
import org.milyn.SmooksException;
import org.milyn.xml.DomUtils;
@@ -31,20 +32,15 @@
/**
* <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
*/
-public class OrderNumNSModifier implements DOMElementVisitor {
-
- public void setConfiguration(SmooksResourceConfiguration smooksResourceConfiguration) throws SmooksConfigurationException {
- }
+public class OrderNumNSModifier implements DOMVisitAfter {
- public void visitBefore(Element element, ExecutionContext executionContext) throws SmooksException {
- }
-
public void visitAfter(Element element, ExecutionContext executionContext) throws SmooksException {
Element newOrderNumElement = element.getOwnerDocument().createElementNS(OrderManagerService.Namespace, "ord_manager:orderNumber");
newOrderNumElement.setTextContent(element.getTextContent());
newOrderNumElement.setAttribute("xmlns:ord_manager", OrderManagerService.Namespace);
+ System.out.println("**** Fixing up the Order Manager namespace on the orderNumber element.");
DomUtils.replaceNode(newOrderNumElement, element);
}
}
More information about the jboss-svn-commits
mailing list