Author: alex.guizar(a)jboss.com
Date: 2009-11-18 21:53:57 -0500 (Wed, 18 Nov 2009)
New Revision: 281
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELPurchaseTestCase.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/CustomerInfo.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/Invoice.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/OrderFaultType.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/ProblemInfo.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/PurchaseOrder.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/PurchaseOrderPT.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/PurchaseSVC.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/package-info.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/bpel-deploy.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/invoice.wsdl
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.bpel
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.bpelex
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.wsdl
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.xsd
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/scheduling.wsdl
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/shipping.wsdl
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/build.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/.classpath
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/.project
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/CustomerInfo.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/Invoice.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/InvoiceCallbackBean.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/InvoiceCallbackPT.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/OrderFaultType.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ProblemInfo.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrder.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrderPT.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseSVC.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ScheduleInfo.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingCallbackBean.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingCallbackPT.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingInfo.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/package-info.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/purchase-queue-service.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/.classpath
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/.project
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/resources/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/resources/WEB-INF/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/resources/WEB-INF/jboss-web.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/resources/WEB-INF/web.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ComputePricePT.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ComputePricePT_Impl.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/CustomerInfo.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/Invoice.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ObjectFactory.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/OrderFaultType.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ProblemInfo.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrder.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ScheduleInfo.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/SchedulingPT.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/SchedulingPT_Impl.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingInfo.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingPT.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingPT_Impl.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/package-info.java
trunk/samples/quickstart/purchase/bpel/bpel-deploy.xml
Removed:
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/CustomerInfo.java
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/OrderFaultType.java
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ProblemInfo.java
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrder.java
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrderPT.java
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingInfo.java
Modified:
trunk/integration-tests/build.xml
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELAtmTestCase.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_atm/build.xml
trunk/samples/quickstart/atm/build.xml
trunk/samples/quickstart/purchase/build.xml
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseSVC.java
trunk/samples/quickstart/purchase/war/resources/WEB-INF/web.xml
Log:
RIFTSAW-34: provide integration test for purchase example
Modified: trunk/integration-tests/build.xml
===================================================================
--- trunk/integration-tests/build.xml 2009-11-18 15:06:15 UTC (rev 280)
+++ trunk/integration-tests/build.xml 2009-11-19 02:53:57 UTC (rev 281)
@@ -122,6 +122,7 @@
<ant
antfile="src/test/resources/samples/Quickstart_bpel_simple_invoke/build.xml"
/>
<ant
antfile="src/test/resources/samples/Quickstart_bpel_loan_approval/build.xml"
/>
<ant antfile="src/test/resources/samples/Quickstart_bpel_atm/build.xml"
/>
+ <ant
antfile="src/test/resources/samples/Quickstart_bpel_purchase/build.xml" />
<ant
antfile="src/test/resources/samples/Quickstart_esb_bpel_hello_world/build.xml"
/>
<ant
antfile="src/test/resources/samples/Quickstart_esb_bpel_loan_fault/build.xml"
/>
Modified:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELAtmTestCase.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELAtmTestCase.java 2009-11-18
15:06:15 UTC (rev 280)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELAtmTestCase.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -1,16 +1,23 @@
/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag.
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
- * under the terms of the JBPM BPEL PUBLIC LICENSE AGREEMENT as
- * published by JBoss Inc.; either version 1.0 of the License, or
- * (at your option) any later version.
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
*/
package org.jboss.soa.bpel.tests.samples;
@@ -29,7 +36,6 @@
*
* @author Juan Cantu
* @author Alejandro Guizar
- * @version $Revision$ $Date: 2007/11/29 10:31:47 $
*/
public class QuickstartBPELAtmTestCase extends RiftSawTest {
@@ -42,8 +48,8 @@
}
public static Test suite() {
- return (new RiftSawTestSetup(QuickstartBPELAtmTestCase.class, TEST_NAME,
- "Quickstart_bpel_atm.war,Quickstart_bpel_atm-1.jar"));
+ return new RiftSawTestSetup(QuickstartBPELAtmTestCase.class, TEST_NAME,
+ "Quickstart_bpel_atm.war,Quickstart_bpel_atm-1.jar");
}
protected void setUp() throws Exception {
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELPurchaseTestCase.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELPurchaseTestCase.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELPurchaseTestCase.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,107 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.soa.bpel.tests.samples;
+
+import junit.framework.Test;
+
+import org.jboss.soa.bpel.tests.RiftSawTest;
+import org.jboss.soa.bpel.tests.RiftSawTestSetup;
+import org.jboss.soa.bpel.tests.samples.purchase.CustomerInfo;
+import org.jboss.soa.bpel.tests.samples.purchase.Invoice;
+import org.jboss.soa.bpel.tests.samples.purchase.OrderFaultType;
+import org.jboss.soa.bpel.tests.samples.purchase.PurchaseOrder;
+import org.jboss.soa.bpel.tests.samples.purchase.PurchaseOrderPT;
+import org.jboss.soa.bpel.tests.samples.purchase.PurchaseSVC;
+
+/**
+ * Test for common order purchasing scenarios.
+ *
+ * @author Jeff DeLong
+ * @author Alejandro Guizar
+ */
+public class QuickstartBPELPurchaseTestCase extends RiftSawTest {
+
+ private PurchaseOrderPT purchaseOrderPT;
+
+ private static final String TEST_NAME = "Quickstart_bpel_purchase";
+
+ public QuickstartBPELPurchaseTestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ return new RiftSawTestSetup(
+ QuickstartBPELPurchaseTestCase.class,
+ TEST_NAME,
+ "Quickstart_bpel_purchase.war,Quickstart_bpel_purchase_ejb.jar,Quickstart_bpel_purchase-1.jar");
+ }
+
+ protected void setUp() throws Exception {
+ PurchaseSVC service = new PurchaseSVC();
+ purchaseOrderPT = service.getPurchaseOrderSP();
+ }
+
+ public void testSendPurchaseOrderAvailable() {
+ CustomerInfo customerInfo = new CustomerInfo();
+ customerInfo.setCustomerId("manager");
+ customerInfo.setAddress("123 Main St");
+
+ PurchaseOrder purchaseOrder = new PurchaseOrder();
+ purchaseOrder.setOrderId(10);
+ purchaseOrder.setPartNumber(23);
+ purchaseOrder.setQuantity(4);
+
+ try {
+ Invoice invoice =
+ purchaseOrderPT.sendPurchaseOrder(customerInfo, purchaseOrder);
+ // In our system, the part number is also the unit price!
+ // The shipper charges a flat fare of $9.50
+ assertEquals(purchaseOrder.getPartNumber() * purchaseOrder.getQuantity()
+ + 9.50, invoice.getAmount(), 0);
+ assertEquals(purchaseOrder.getOrderId(), invoice.getOrderId());
+ }
+ catch (OrderFaultType e) {
+ fail("shipping to available address should complete");
+ }
+ }
+
+ public void testSendPurchaseOrderNotAvailable() {
+ CustomerInfo customerInfo = new CustomerInfo();
+ customerInfo.setCustomerId("freddy");
+ customerInfo.setAddress("666 Elm St");
+
+ PurchaseOrder purchaseOrder = new PurchaseOrder();
+ purchaseOrder.setOrderId(20);
+ purchaseOrder.setPartNumber(13);
+ purchaseOrder.setQuantity(7);
+
+ try {
+ purchaseOrderPT.sendPurchaseOrder(customerInfo, purchaseOrder);
+ fail("shipping to unavailable address should not complete");
+ }
+ catch (OrderFaultType e) {
+ assertTrue(e.getFaultInfo()
+ .getDetail()
+ .indexOf(customerInfo.getAddress()) != -1);
+ }
+ }
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELPurchaseTestCase.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/CustomerInfo.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/CustomerInfo.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/CustomerInfo.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,73 @@
+package org.jboss.soa.bpel.tests.samples.purchase;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for customerInfo complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="customerInfo">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="customerId"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="address"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "customerInfo", propOrder = { "customerId",
"address" })
+public class CustomerInfo {
+
+ @XmlElement(required = true)
+ protected String customerId;
+ @XmlElement(required = true)
+ protected String address;
+
+ /**
+ * Gets the value of the customerId property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getCustomerId() {
+ return customerId;
+ }
+
+ /**
+ * Sets the value of the customerId property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setCustomerId(String value) {
+ this.customerId = value;
+ }
+
+ /**
+ * Gets the value of the address property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getAddress() {
+ return address;
+ }
+
+ /**
+ * Sets the value of the address property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setAddress(String value) {
+ this.address = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/CustomerInfo.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/Invoice.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/Invoice.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/Invoice.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,62 @@
+package org.jboss.soa.bpel.tests.samples.purchase;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for Invoice complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="Invoice">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="amount"
type="{http://www.w3.org/2001/XMLSchema}float"/>
+ * <element name="orderId"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "Invoice", propOrder = { "amount",
"orderId" })
+public class Invoice {
+
+ protected float amount;
+ protected int orderId;
+
+ /**
+ * Gets the value of the amount property.
+ */
+ public float getAmount() {
+ return amount;
+ }
+
+ /**
+ * Sets the value of the amount property.
+ */
+ public void setAmount(float value) {
+ this.amount = value;
+ }
+
+ /**
+ * Gets the value of the orderId property.
+ */
+ public int getOrderId() {
+ return orderId;
+ }
+
+ /**
+ * Sets the value of the orderId property.
+ */
+ public void setOrderId(int value) {
+ this.orderId = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/Invoice.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/OrderFaultType.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/OrderFaultType.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/OrderFaultType.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,46 @@
+package org.jboss.soa.bpel.tests.samples.purchase;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 Generated source
+ * version: 2.1
+ */
+@WebFault(name = "problemInfo", targetNamespace =
"http://manufacturing.org/xsd/purchase")
+public class OrderFaultType extends Exception {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ */
+ private ProblemInfo faultInfo;
+
+ /**
+ * @param message
+ * @param faultInfo
+ */
+ public OrderFaultType(String message, ProblemInfo faultInfo) {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public OrderFaultType(String message, ProblemInfo faultInfo, Throwable cause) {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ * @return returns fault bean:
+ * org.jboss.soa.bpel.samples.quickstart.purchase.ProblemInfo
+ */
+ public ProblemInfo getFaultInfo() {
+ return faultInfo;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/OrderFaultType.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/ProblemInfo.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/ProblemInfo.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/ProblemInfo.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,52 @@
+package org.jboss.soa.bpel.tests.samples.purchase;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for ProblemInfo complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="ProblemInfo">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="detail"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ProblemInfo", propOrder = { "detail" })
+public class ProblemInfo {
+
+ @XmlElement(required = true)
+ protected String detail;
+
+ /**
+ * Gets the value of the detail property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getDetail() {
+ return detail;
+ }
+
+ /**
+ * Sets the value of the detail property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setDetail(String value) {
+ this.detail = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/ProblemInfo.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/PurchaseOrder.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/PurchaseOrder.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/PurchaseOrder.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,79 @@
+package org.jboss.soa.bpel.tests.samples.purchase;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for purchaseOrder complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="purchaseOrder">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="orderId"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="partNumber"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="quantity"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "purchaseOrder", propOrder = { "orderId",
"partNumber",
+ "quantity" })
+public class PurchaseOrder {
+
+ protected int orderId;
+ protected int partNumber;
+ protected int quantity;
+
+ /**
+ * Gets the value of the orderId property.
+ */
+ public int getOrderId() {
+ return orderId;
+ }
+
+ /**
+ * Sets the value of the orderId property.
+ */
+ public void setOrderId(int value) {
+ this.orderId = value;
+ }
+
+ /**
+ * Gets the value of the partNumber property.
+ */
+ public int getPartNumber() {
+ return partNumber;
+ }
+
+ /**
+ * Sets the value of the partNumber property.
+ */
+ public void setPartNumber(int value) {
+ this.partNumber = value;
+ }
+
+ /**
+ * Gets the value of the quantity property.
+ */
+ public int getQuantity() {
+ return quantity;
+ }
+
+ /**
+ * Sets the value of the quantity property.
+ */
+ public void setQuantity(int value) {
+ this.quantity = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/PurchaseOrder.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/PurchaseOrderPT.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/PurchaseOrderPT.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/PurchaseOrderPT.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,30 @@
+package org.jboss.soa.bpel.tests.samples.purchase;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 Generated source
+ * version: 2.1
+ */
+@WebService(name = "purchaseOrderPT", targetNamespace =
"http://manufacturing.org/wsdl/purchase")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface PurchaseOrderPT {
+
+ /**
+ * @param purchaseOrder
+ * @param customerInfo
+ * @return returns org.jboss.soa.bpel.samples.quickstart.purchase.Invoice
+ * @throws OrderFaultType
+ */
+ @WebMethod(action =
"http://manufacturing.org/wsdl/purchase/sendPurchaseOrder")
+ @WebResult(name = "IVC", partName = "IVC")
+ public Invoice sendPurchaseOrder(
+ @WebParam(name = "customerInfo", partName = "customerInfo")
CustomerInfo customerInfo,
+ @WebParam(name = "purchaseOrder", partName = "purchaseOrder")
PurchaseOrder purchaseOrder)
+ throws OrderFaultType;
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/PurchaseOrderPT.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/PurchaseSVC.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/PurchaseSVC.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/PurchaseSVC.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,64 @@
+package org.jboss.soa.bpel.tests.samples.purchase;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import javax.xml.ws.WebServiceFeature;
+
+/**
+ * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 Generated source
+ * version: 2.1
+ */
+@WebServiceClient(name = PurchaseSVC.SERVICE_NAME, targetNamespace =
PurchaseSVC.TARGET_NAMESPACE, wsdlLocation = PurchaseSVC.WSDL_LOCATION)
+public class PurchaseSVC extends Service {
+
+ static final String SERVICE_NAME = "purchaseSVC";
+ static final String TARGET_NAMESPACE =
+ "http://manufacturing.org/wsdl/purchase";
+ static final String WSDL_LOCATION =
+ "file:/home/aguizar/riftsaw/trunk/samples/quickstart/purchase/bpel/purchase.wsdl";
+ private static final String PURCHASE_ORDER_PORT_NAME = "purchaseOrderSP";
+
+ private static final URL WSDL_URL = createURL(WSDL_LOCATION);
+
+ private static URL createURL(String location) {
+ try {
+ return new URL(location);
+ }
+ catch (MalformedURLException e) {
+ throw new IllegalArgumentException(location, e);
+ }
+ }
+
+ public PurchaseSVC(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public PurchaseSVC() {
+ super(WSDL_URL, new QName(TARGET_NAMESPACE, SERVICE_NAME));
+ }
+
+ /**
+ * @return returns PurchaseOrderPT
+ */
+ @WebEndpoint(name = PURCHASE_ORDER_PORT_NAME)
+ public PurchaseOrderPT getPurchaseOrderSP() {
+ return super.getPort(new QName(TARGET_NAMESPACE, PURCHASE_ORDER_PORT_NAME),
+ PurchaseOrderPT.class);
+ }
+
+ /**
+ * @param features A list of {@link javax.xml.ws.WebServiceFeature} to
+ * configure on the proxy. Supported features not in the
<code>features</code>
+ * parameter will have their default values.
+ * @return returns PurchaseOrderPT
+ */
+ @WebEndpoint(name = PURCHASE_ORDER_PORT_NAME)
+ public PurchaseOrderPT getPurchaseOrderSP(WebServiceFeature... features) {
+ return super.getPort(new QName(TARGET_NAMESPACE, PURCHASE_ORDER_PORT_NAME),
+ PurchaseOrderPT.class, features);
+ }
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/PurchaseSVC.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/package-info.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/package-info.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/package-info.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,3 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://manufacturing.org/xsd/purchase")
+package org.jboss.soa.bpel.tests.samples.purchase;
+
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/purchase/package-info.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_atm/build.xml
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_atm/build.xml 2009-11-18
15:06:15 UTC (rev 280)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_atm/build.xml 2009-11-19
02:53:57 UTC (rev 281)
@@ -1,33 +1,38 @@
<project name="Quickstart_bpel_atm" default="deploy"
basedir=".">
- <description>
- ${ant.project.name}
- </description>
+ <description>${ant.project.name}</description>
<property name="version" value="1" />
<property name="deploy.dir" value="${basedir}/target/tests"
/>
- <property name="test.dir"
value="${basedir}/src/test/resources/samples/${ant.project.name}" />
+ <property name="test.dir"
+ value="${basedir}/src/test/resources/samples/${ant.project.name}"
/>
<property name="sample.jar.name"
value="${ant.project.name}-${version}.jar" />
+ <property name="war.build.dir"
+ location="${deploy.dir}/${ant.project.name}/build/war/classes"
/>
- <property name="war.build.dir"
location="${deploy.dir}/${ant.project.name}/build/war/classes" />
-
<path id="compile-classpath">
- <!-- Required for JMS Client Code. -->
- <fileset dir="${org.jboss.as.home}/client" includes="*.jar"
/>
+ <pathelement location="${org.jboss.as.home}/client/jboss-javaee.jar"
/>
</path>
<target name="deploywar" description="make war">
<!-- Compile... -->
<mkdir dir="${war.build.dir}" />
-
- <javac fork="yes" srcdir="${test.dir}/war/src"
destdir="${war.build.dir}" target="1.5" debug="true">
+ <javac srcdir="${test.dir}/war/src"
+ destdir="${war.build.dir}"
+ target="1.5"
+ debug="true"
+ fork="true">
<classpath refid="compile-classpath" />
</javac>
+ <copy todir="${war.build.dir}">
+ <fileset dir="${test.dir}/war/src" includes="**/*.xml" />
+ </copy>
<!-- War... -->
- <war warfile="${deploy.dir}/${ant.project.name}/${ant.project.name}.war"
webxml="${test.dir}/war/resources/WEB-INF/web.xml">
+ <war warfile="${deploy.dir}/${ant.project.name}/${ant.project.name}.war"
+ webxml="${test.dir}/war/resources/WEB-INF/web.xml">
<classes dir="${war.build.dir}" />
</war>
</target>
@@ -38,7 +43,8 @@
<target name="deploy" depends="deploywar">
<echo>Deploy ${ant.project.name}</echo>
- <jar basedir="${test.dir}/bpel"
destfile="${deploy.dir}/${ant.project.name}/${sample.jar.name}" />
+ <jar basedir="${test.dir}/bpel"
+ destfile="${deploy.dir}/${ant.project.name}/${sample.jar.name}" />
</target>
<target name="undeploy" depends="undeploywar">
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/bpel-deploy.xml
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/bpel-deploy.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/bpel-deploy.xml 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deploy
xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
xmlns:def="http://manufacturing.org/wsdl/purchase"
+
xmlns:pro="http://manufacturing.org/ws-bp/purchase">
+ <process name="pro:PurchaseOrder"
xmlns:pur="http://acme.com/ws-bp/purchase">
+ <active>true</active>
+ <provide partnerLink="purchasing">
+ <service name="def:purchaseSVC" port="purchaseOrderSP" />
+ </provide>
+ <provide partnerLink="invoicing">
+ <service name="def:purchaseSVC" port="invoiceCallbackSP" />
+ </provide>
+ <provide partnerLink="shipping">
+ <service name="def:purchaseSVC" port="shippingCallbackSP"
/>
+ </provide>
+ <invoke partnerLink="invoicing">
+ <service name="def:invoiceSVC" port="computePriceSP" />
+ </invoke>
+ <invoke partnerLink="shipping">
+ <service name="def:shippingSVC" port="shippingSP" />
+ </invoke>
+ <invoke partnerLink="scheduling">
+ <service name="def:schedulingSVC" port="schedulingSP" />
+ </invoke>
+ </process>
+</deploy>
\ No newline at end of file
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/bpel-deploy.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/invoice.wsdl
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/invoice.wsdl
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/invoice.wsdl 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions
targetNamespace="http://manufacturing.org/wsdl/purchase"
+
xmlns:tns="http://manufacturing.org/wsdl/purchase"
+
xmlns:pos="http://manufacturing.org/wsdl/purchase"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+
xmlns="http://schemas.xmlsoap.org/wsdl/">
+
+ <import
namespace="http://manufacturing.org/wsdl/purchase"
+ location="purchase.wsdl" />
+
+ <binding name="computePriceSB" type="pos:computePricePT">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
+ <operation name="initiatePriceCalculation">
+ <soap:operation
soapAction="http://manufacturing.org/wsdl/purchase"
/>
+ <input>
+ <soap:body use="literal"
+
namespace="http://manufacturing.org/wsdl/purchase" />
+ </input>
+ <output>
+ <soap:body use="literal"
+
namespace="http://manufacturing.org/wsdl/purchase" />
+ </output>
+ </operation>
+ <operation name="sendShippingPrice">
+ <soap:operation
soapAction="http://manufacturing.org/wsdl/purchase"
/>
+ <input>
+ <soap:body use="literal"
+
namespace="http://manufacturing.org/wsdl/purchase" />
+ </input>
+ <output>
+ <soap:body use="literal"
+
namespace="http://manufacturing.org/wsdl/purchase" />
+ </output>
+ </operation>
+ </binding>
+
+ <service name="invoiceSVC">
+ <port name="computePriceSP" binding="tns:computePriceSB">
+ <soap:address
location="http://127.0.0.1:8080/Quickstart_bpel_purchase/invoiceService" />
+ </port>
+ </service>
+
+</definitions>
\ No newline at end of file
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/invoice.wsdl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.bpel
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.bpel
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.bpel 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<bpws:process exitOnStandardFault="yes" name="PurchaseOrder"
+
targetNamespace="http://acme.com/ws-bp/purchase"
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable...
+
xmlns:lns="http://manufacturing.org/wsdl/purchase">
+ <bpws:documentation>WS-BPEL process for handling a purchase order.
+ </bpws:documentation>
+
+ <bpws:import
importType="http://schemas.xmlsoap.org/wsdl/"
+ location="purchase.wsdl"
namespace="http://manufacturing.org/wsdl/purchase" />
+
+ <bpws:partnerLinks>
+ <bpws:partnerLink myRole="purchaseService" name="purchasing"
+ partnerLinkType="lns:purchasingLT" />
+ <bpws:partnerLink myRole="invoiceRequester" name="invoicing"
+ partnerLinkType="lns:invoicingLT" partnerRole="invoiceService"
/>
+ <bpws:partnerLink myRole="shippingRequester" name="shipping"
+ partnerLinkType="lns:shippingLT" partnerRole="shippingService"
/>
+ <bpws:partnerLink name="scheduling"
partnerLinkType="lns:schedulingLT"
+ partnerRole="schedulingService" />
+ </bpws:partnerLinks>
+
+ <bpws:variables>
+ <bpws:variable messageType="lns:POMessage" name="PO" />
+ <bpws:variable messageType="lns:InvMessage" name="Invoice"
/>
+ <bpws:variable messageType="lns:orderFaultType" name="POFault"
/>
+ <bpws:variable messageType="lns:shippingRequestMessage"
name="shippingRequest" />
+ <bpws:variable messageType="lns:shippingInfoMessage"
name="shippingInfo" />
+ <bpws:variable messageType="lns:scheduleMessage"
name="shippingSchedule" />
+ </bpws:variables>
+
+ <bpws:faultHandlers>
+ <bpws:catch faultMessageType="lns:orderFaultType"
faultName="lns:cannotCompleteOrder"
+ faultVariable="POFault">
+ <bpws:reply faultName="cannotCompleteOrder"
name="NotifyPurchaseFault"
+ operation="sendPurchaseOrder" partnerLink="purchasing"
portType="lns:purchaseOrderPT"
+ variable="POFault" />
+ </bpws:catch>
+ </bpws:faultHandlers>
+
+ <bpws:sequence name="Main">
+ <bpws:receive createInstance="yes" name="ReceivePurchaseOrder"
+ operation="sendPurchaseOrder" partnerLink="purchasing"
portType="lns:purchaseOrderPT"
+ variable="PO" />
+
+ <bpws:flow>
+ <bpws:documentation>A parallel flow to handle shipping, invoicing and
+ scheduling</bpws:documentation>
+
+ <bpws:links>
+ <bpws:link name="ship-to-invoice" />
+ <bpws:link name="ship-to-scheduling" />
+ </bpws:links>
+
+ <bpws:sequence name="Invoicing">
+ <bpws:invoke inputVariable="PO"
name="InitiatePriceCalculation"
+ operation="initiatePriceCalculation" partnerLink="invoicing"
portType="lns:computePricePT" />
+
+ <bpws:invoke inputVariable="shippingInfo"
name="SendShippingPrice"
+ operation="sendShippingPrice" partnerLink="invoicing"
portType="lns:computePricePT">
+ <bpws:targets>
+ <bpws:target linkName="ship-to-invoice" />
+ </bpws:targets>
+ </bpws:invoke>
+
+ <bpws:receive name="ReceiveInvoice" operation="sendInvoice"
+ partnerLink="invoicing" portType="lns:invoiceCallbackPT"
variable="Invoice" />
+ </bpws:sequence>
+
+ <bpws:sequence name="Shipping">
+ <bpws:assign name="PrepareShipping" validate="no">
+ <bpws:copy>
+ <bpws:from part="customerInfo" variable="PO" />
+ <bpws:to part="customerInfo" variable="shippingRequest"
/>
+ </bpws:copy>
+ </bpws:assign>
+
+ <bpws:invoke inputVariable="shippingRequest"
name="RequestShipping"
+ operation="requestShipping" outputVariable="shippingInfo"
partnerLink="shipping"
+ portType="lns:shippingPT">
+ <bpws:sources>
+ <bpws:source linkName="ship-to-invoice" />
+ </bpws:sources>
+ </bpws:invoke>
+
+ <bpws:receive name="ReceiveSchedule" operation="sendSchedule"
+ partnerLink="shipping" portType="lns:shippingCallbackPT"
variable="shippingSchedule">
+ <bpws:sources>
+ <bpws:source linkName="ship-to-scheduling" />
+ </bpws:sources>
+ </bpws:receive>
+ </bpws:sequence>
+
+ <bpws:sequence name="Scheduling">
+ <bpws:invoke inputVariable="PO" name="RequestScheduling"
+ operation="requestProductionScheduling" partnerLink="scheduling"
portType="lns:schedulingPT" />
+
+ <bpws:invoke inputVariable="shippingSchedule"
name="SendShippingSchedule"
+ operation="sendShippingSchedule" partnerLink="scheduling"
portType="lns:schedulingPT">
+ <bpws:targets>
+ <bpws:target linkName="ship-to-scheduling" />
+ </bpws:targets>
+ </bpws:invoke>
+ </bpws:sequence>
+ </bpws:flow>
+
+ <bpws:reply name="SendPurchaseOrder"
operation="sendPurchaseOrder"
+ partnerLink="purchasing" portType="lns:purchaseOrderPT"
variable="Invoice" />
+ </bpws:sequence>
+</bpws:process>
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.bpelex
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.bpelex
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.bpelex 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="ASCII"?>
+<extensionmodel:ExtensionMap xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:extensionmodel="http:///extensionmodel.ecore"
xmlns:org.eclipse.bpel.ui.uiextensionmodel="http:///org/eclipse/bpel/ui/uiextensionmodel.ecore"
namespace="http://org.eclipse.bpel.ui/">
+ <extensions>
+ <extendedObject href="purchase.bpel#//@variables/(a)children.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="purchase.bpel#//@variables/(a)children.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="purchase.bpel#//@variables/(a)children.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="purchase.bpel#//@variables/(a)children.3"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="purchase.bpel#//@variables/(a)children.4"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="purchase.bpel#//@variables/(a)children.5"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="purchase.bpel#//@activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="purchase.bpel#//@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="purchase.bpel#//@activity/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="purchase.bpel#//@activity/@activities.1/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"
x="8" y="8"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="purchase.bpel#//@activity/@activities.1/@activities.0/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="purchase.bpel#//@activity/@activities.1/@activities.0/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="purchase.bpel#//@activity/@activities.1/@activities.0/(a)activities.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="purchase.bpel#//@activity/@activities.1/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"
x="280" y="8"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="purchase.bpel#//@activity/@activities.1/@activities.1/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="purchase.bpel#//@activity/@activities.1/@activities.1/@activities.0/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="purchase.bpel#//@activity/@activities.1/@activities.1/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="purchase.bpel#//@activity/@activities.1/@activities.1/(a)activities.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="purchase.bpel#//@activity/@activities.1/(a)activities.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"
x="515" y="8"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="purchase.bpel#//@activity/@activities.1/@activities.2/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="purchase.bpel#//@activity/@activities.1/@activities.2/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="purchase.bpel#//@activity/@activities.1/@links/(a)children.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:LinkExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="purchase.bpel#//@activity/@activities.1/@links/(a)children.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:LinkExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="purchase.bpel#//@activity/(a)activities.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="purchase.bpel#//@faultHandlers/@catch.0/(a)faultVariable"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="purchase.bpel#//@faultHandlers/@catch.0/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="purchase.bpel#/"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ProcessExtension"
modificationStamp="1258410536000"/>
+ </extensions>
+</extensionmodel:ExtensionMap>
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.wsdl
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.wsdl
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.wsdl 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,160 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions
targetNamespace="http://manufacturing.org/wsdl/purchase"
+
xmlns:pos="http://manufacturing.org/wsdl/purchase"
xmlns:sns="http://manufacturing.org/xsd/purchase"
+
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+
+ <types>
+ <xsd:schema>
+ <xsd:import
namespace="http://manufacturing.org/xsd/purchase"
+ schemaLocation="purchase.xsd" />
+ </xsd:schema>
+ </types>
+
+ <message name="POMessage">
+ <part name="customerInfo" type="sns:customerInfo" />
+ <part name="purchaseOrder" type="sns:purchaseOrder" />
+ </message>
+
+ <message name="InvMessage">
+ <part name="IVC" type="sns:Invoice" />
+ </message>
+
+ <message name="orderFaultType">
+ <part name="problemInfo" element="sns:problemInfo" />
+ </message>
+
+ <message name="shippingRequestMessage">
+ <part name="customerInfo" type="sns:customerInfo" />
+ </message>
+
+ <message name="shippingInfoMessage">
+ <part name="shippingInfo" type="sns:shippingInfo" />
+ </message>
+
+ <message name="scheduleMessage">
+ <part name="schedule" type="sns:scheduleInfo" />
+ </message>
+
+ <!-- portTypes supported by the purchase order process -->
+
+ <portType name="purchaseOrderPT">
+ <operation name="sendPurchaseOrder">
+ <input message="pos:POMessage" />
+ <output message="pos:InvMessage" />
+ <fault name="cannotCompleteOrder" message="pos:orderFaultType"
/>
+ </operation>
+ </portType>
+
+ <portType name="invoiceCallbackPT">
+ <operation name="sendInvoice">
+ <input message="pos:InvMessage" />
+ </operation>
+ </portType>
+
+ <portType name="shippingCallbackPT">
+ <operation name="sendSchedule">
+ <input message="pos:scheduleMessage" />
+ </operation>
+ </portType>
+
+ <!-- portType supported by the invoice services -->
+
+ <portType name="computePricePT">
+ <operation name="initiatePriceCalculation">
+ <input message="pos:POMessage" />
+ </operation>
+ <operation name="sendShippingPrice">
+ <input message="pos:shippingInfoMessage" />
+ </operation>
+ </portType>
+
+ <!-- portType supported by the shipping service -->
+
+ <portType name="shippingPT">
+ <operation name="requestShipping">
+ <input message="pos:shippingRequestMessage" />
+ <output message="pos:shippingInfoMessage" />
+ <fault name="cannotCompleteOrder" message="pos:orderFaultType"
/>
+ </operation>
+ </portType>
+
+ <!-- portType supported by the production scheduling process -->
+
+ <portType name="schedulingPT">
+ <operation name="requestProductionScheduling">
+ <input message="pos:POMessage" />
+ </operation>
+ <operation name="sendShippingSchedule">
+ <input message="pos:scheduleMessage" />
+ </operation>
+ </portType>
+
+ <plnk:partnerLinkType name="purchasingLT">
+ <plnk:role name="purchaseService" portType="pos:purchaseOrderPT"
/>
+ </plnk:partnerLinkType>
+
+ <plnk:partnerLinkType name="invoicingLT">
+ <plnk:role name="invoiceService" portType="pos:computePricePT"
/>
+ <plnk:role name="invoiceRequester"
portType="pos:invoiceCallbackPT" />
+ </plnk:partnerLinkType>
+
+ <plnk:partnerLinkType name="shippingLT">
+ <plnk:role name="shippingService" portType="pos:shippingPT"
/>
+ <plnk:role name="shippingRequester"
portType="pos:shippingCallbackPT" />
+ </plnk:partnerLinkType>
+
+ <plnk:partnerLinkType name="schedulingLT">
+ <plnk:role name="schedulingService" portType="pos:schedulingPT"
/>
+ </plnk:partnerLinkType>
+
+ <binding name="purchaseOrderSB" type="pos:purchaseOrderPT">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
+ <operation name="sendPurchaseOrder">
+ <soap:operation
soapAction="http://manufacturing.org/wsdl/purchase/sendPurchaseOrder... />
+ <input>
+ <soap:body use="literal"
namespace="http://manufacturing.org/wsdl/purchase" />
+ </input>
+ <output>
+ <soap:body use="literal"
namespace="http://manufacturing.org/wsdl/purchase" />
+ </output>
+ <fault name="cannotCompleteOrder">
+ <soap:fault use="literal" name="cannotCompleteOrder" />
+ </fault>
+ </operation>
+ </binding>
+
+ <binding name="invoiceCallbackSB"
type="pos:invoiceCallbackPT">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
+ <operation name="sendInvoice">
+ <soap:operation
soapAction="http://manufacturing.org/wsdl/purchase/sendInvoice" />
+ <input>
+ <soap:body use="literal"
namespace="http://manufacturing.org/wsdl/purchase" />
+ </input>
+ </operation>
+ </binding>
+
+ <binding name="shippingCallbackSB"
type="pos:shippingCallbackPT">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
+ <operation name="sendSchedule">
+ <soap:operation
soapAction="http://manufacturing.org/wsdl/purchase/sendSchedule" />
+ <input>
+ <soap:body use="literal"
namespace="http://manufacturing.org/wsdl/purchase" />
+ </input>
+ </operation>
+ </binding>
+
+ <service name="purchaseSVC">
+ <port name="purchaseOrderSP" binding="pos:purchaseOrderSB">
+ <soap:address
location="http://127.0.0.1:8080/Quickstart_bpel_purchase/purchaseOrder" />
+ </port>
+ <port name="invoiceCallbackSP"
binding="pos:invoiceCallbackSB">
+ <soap:address
+ location="http://127.0.0.1:8080/Quickstart_bpel_purchase/invoiceCallback"
/>
+ </port>
+ <port name="shippingCallbackSP"
binding="pos:shippingCallbackSB">
+ <soap:address
+ location="http://127.0.0.1:8080/Quickstart_bpel_purchase/shippingCallback"
/>
+ </port>
+ </service>
+</definitions>
\ No newline at end of file
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.wsdl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.xsd
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.xsd
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.xsd 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
targetNamespace="http://manufacturing.org/xsd/purchase"
+
xmlns:tns="http://manufacturing.org/xsd/purchase">
+
+ <xsd:complexType name="customerInfo">
+ <xsd:sequence>
+ <xsd:element name="customerId" type="xsd:string" />
+ <xsd:element name="address" type="xsd:string" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="shippingInfo">
+ <xsd:sequence>
+ <xsd:element name="shippingPrice" type="xsd:float" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="scheduleInfo">
+ <xsd:sequence>
+ <xsd:element name="shipDate" type="xsd:date" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="purchaseOrder">
+ <xsd:sequence>
+ <xsd:element name="orderId" type="xsd:int" />
+ <xsd:element name="partNumber" type="xsd:int" />
+ <xsd:element name="quantity" type="xsd:int" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="Invoice">
+ <xsd:sequence>
+ <xsd:element name="amount" type="xsd:float" />
+ <xsd:element name="orderId" type="xsd:int" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="ProblemInfo">
+ <xsd:sequence>
+ <xsd:element name="detail" type="xsd:string" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:element name="problemInfo" type="tns:ProblemInfo" />
+
+</xsd:schema>
\ No newline at end of file
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/purchase.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/scheduling.wsdl
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/scheduling.wsdl
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/scheduling.wsdl 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions
targetNamespace="http://manufacturing.org/wsdl/purchase"
+
xmlns:tns="http://manufacturing.org/wsdl/purchase"
+
xmlns:pos="http://manufacturing.org/wsdl/purchase"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+
xmlns="http://schemas.xmlsoap.org/wsdl/">
+
+ <import
namespace="http://manufacturing.org/wsdl/purchase"
+ location="purchase.wsdl" />
+
+ <binding name="schedulingSB" type="pos:schedulingPT">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
+ <operation name="requestProductionScheduling">
+ <soap:operation
soapAction="http://manufacturing.org/wsdl/purchase"
/>
+ <input>
+ <soap:body use="literal"
+
namespace="http://manufacturing.org/wsdl/purchase" />
+ </input>
+ <output>
+ <soap:body use="literal"
+
namespace="http://manufacturing.org/wsdl/purchase" />
+ </output>
+ </operation>
+ <operation name="sendShippingSchedule">
+ <soap:operation
soapAction="http://manufacturing.org/wsdl/purchase"
/>
+ <input>
+ <soap:body use="literal"
+
namespace="http://manufacturing.org/wsdl/purchase" />
+ </input>
+ <output>
+ <soap:body use="literal"
+
namespace="http://manufacturing.org/wsdl/purchase" />
+ </output>
+ </operation>
+ </binding>
+
+ <service name="schedulingSVC">
+ <port name="schedulingSP" binding="tns:schedulingSB">
+ <soap:address
location="http://127.0.0.1:8080/Quickstart_bpel_purchase/schedulingProcess"
/>
+ </port>
+ </service>
+
+</definitions>
\ No newline at end of file
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/scheduling.wsdl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/shipping.wsdl
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/shipping.wsdl
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/shipping.wsdl 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions
targetNamespace="http://manufacturing.org/wsdl/purchase"
+
xmlns:tns="http://manufacturing.org/wsdl/purchase"
+
xmlns:pos="http://manufacturing.org/wsdl/purchase"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+
xmlns="http://schemas.xmlsoap.org/wsdl/">
+
+ <import
namespace="http://manufacturing.org/wsdl/purchase"
+ location="purchase.wsdl" />
+
+ <binding name="shippingSB" type="tns:shippingPT">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
+ <operation name="requestShipping">
+ <soap:operation
soapAction="http://manufacturing.org/wsdl/purchase"
/>
+ <input>
+ <soap:body use="literal"
+
namespace="http://manufacturing.org/wsdl/purchase" />
+ </input>
+ <output>
+ <soap:body use="literal"
+
namespace="http://manufacturing.org/wsdl/purchase" />
+ </output>
+ <fault name="cannotCompleteOrder">
+ <soap:fault name="cannotCompleteOrder" use="literal"
/>
+ </fault>
+ </operation>
+ </binding>
+
+ <service name="shippingSVC">
+ <port name="shippingSP" binding="tns:shippingSB">
+ <soap:address
location="http://127.0.0.1:8080/Quickstart_bpel_purchase/shippingService" />
+ </port>
+ </service>
+
+</definitions>
\ No newline at end of file
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/bpel/shipping.wsdl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/build.xml
===================================================================
--- trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/build.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/build.xml 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,85 @@
+<project name="Quickstart_bpel_purchase" default="deploy"
basedir=".">
+
+ <description>${ant.project.name}</description>
+
+ <property name="version" value="1" />
+
+ <property name="deploy.dir" value="${basedir}/target/tests"
/>
+ <property name="test.dir"
+ value="${basedir}/src/test/resources/samples/${ant.project.name}"
/>
+
+ <property name="sample.jar.name"
value="${ant.project.name}-${version}.jar" />
+ <property name="war.build.dir"
+ location="${deploy.dir}/${ant.project.name}/build/war/classes"
/>
+ <property name="ejb.build.dir"
+ location="${deploy.dir}/${ant.project.name}/build/ejb/classes"
/>
+
+ <path id="compile-classpath">
+ <pathelement location="${org.jboss.as.home}/common/lib/servlet-api.jar"
/>
+ <pathelement location="${org.jboss.as.home}/client/jboss-javaee.jar"
/>
+ </path>
+
+ <target name="deployq">
+ <copy todir="${deploy.dir}/${ant.project.name}"
+ file="${test.dir}/purchase-queue-service.xml" />
+ </target>
+
+ <target name="undeployq">
+ <delete
file="${deploy.dir}/${ant.project.name}/purchase-queue-service.xml" />
+ </target>
+
+ <target name="deploywar" description="make war">
+ <!-- Compile... -->
+ <mkdir dir="${war.build.dir}" />
+ <javac srcdir="${test.dir}/war/src"
+ destdir="${war.build.dir}"
+ target="1.5"
+ debug="true"
+ fork="true">
+ <classpath refid="compile-classpath" />
+ </javac>
+
+ <!-- War... -->
+ <war warfile="${deploy.dir}/${ant.project.name}/${ant.project.name}.war"
+ webxml="${test.dir}/war/resources/WEB-INF/web.xml">
+ <classes dir="${war.build.dir}" />
+ </war>
+ </target>
+
+ <target name="undeploywar">
+ <delete file="${deploy.dir}/${ant.project.name}/${ant.project.name}.war"
/>
+ </target>
+
+ <target name="deployejb">
+ <!-- Compile -->
+ <mkdir dir="${ejb.build.dir}" />
+ <javac srcdir="${test.dir}/ejb/src"
+ destdir="${ejb.build.dir}"
+ target="1.5"
+ debug="true"
+ fork="true">
+ <classpath refid="compile-classpath" />
+ </javac>
+
+ <!-- Jar -->
+ <jar
destfile="${deploy.dir}/${ant.project.name}/${ant.project.name}_ejb.jar">
+ <fileset dir="${ejb.build.dir}" />
+ </jar>
+ </target>
+
+ <target name="undeployejb">
+ <delete
file="${deploy.dir}/${ant.project.name}/${ant.project.name}_ejb.jar" />
+ </target>
+
+ <target name="deploy" depends="deployq,deploywar,deployejb">
+ <echo>Deploy ${ant.project.name}</echo>
+ <jar basedir="${test.dir}/bpel"
+ destfile="${deploy.dir}/${ant.project.name}/${sample.jar.name}" />
+ </target>
+
+ <target name="undeploy"
depends="undeploywar,undeployejb,undeployq">
+ <echo>Undeploy ${ant.project.name}</echo>
+ <delete file="${deploy.dir}/${ant.project.name}/${sample.jar.name}" />
+ </target>
+
+</project>
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/.classpath
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/.classpath
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/.classpath 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="var"
path="M2_REPO/org/jboss/javaee/jboss-ejb-api/3.0.0.GA/jboss-ejb-api-3.0.0.GA.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/org/jboss/javaee/jboss-jms-api/1.1.0.GA/jboss-jms-api-1.1.0.GA.jar"/>
+ <classpathentry kind="output" path="target"/>
+</classpath>
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/.project
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/.project
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/.project 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>purchase-ejb</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/CustomerInfo.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/CustomerInfo.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/CustomerInfo.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,73 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for customerInfo complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="customerInfo">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="customerId"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="address"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "customerInfo", propOrder = { "customerId",
"address" })
+public class CustomerInfo {
+
+ @XmlElement(required = true)
+ protected String customerId;
+ @XmlElement(required = true)
+ protected String address;
+
+ /**
+ * Gets the value of the customerId property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getCustomerId() {
+ return customerId;
+ }
+
+ /**
+ * Sets the value of the customerId property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setCustomerId(String value) {
+ this.customerId = value;
+ }
+
+ /**
+ * Gets the value of the address property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getAddress() {
+ return address;
+ }
+
+ /**
+ * Sets the value of the address property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setAddress(String value) {
+ this.address = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/CustomerInfo.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/Invoice.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/Invoice.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/Invoice.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,62 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for Invoice complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="Invoice">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="amount"
type="{http://www.w3.org/2001/XMLSchema}float"/>
+ * <element name="orderId"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "Invoice", propOrder = { "amount",
"orderId" })
+public class Invoice {
+
+ protected float amount;
+ protected int orderId;
+
+ /**
+ * Gets the value of the amount property.
+ */
+ public float getAmount() {
+ return amount;
+ }
+
+ /**
+ * Sets the value of the amount property.
+ */
+ public void setAmount(float value) {
+ this.amount = value;
+ }
+
+ /**
+ * Gets the value of the orderId property.
+ */
+ public int getOrderId() {
+ return orderId;
+ }
+
+ /**
+ * Sets the value of the orderId property.
+ */
+ public void setOrderId(int value) {
+ this.orderId = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/Invoice.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/InvoiceCallbackBean.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/InvoiceCallbackBean.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/InvoiceCallbackBean.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,89 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import javax.annotation.Resource;
+import javax.ejb.MessageDriven;
+import javax.ejb.MessageDrivenContext;
+import javax.ejb.ActivationConfigProperty;
+import javax.jms.JMSException;
+import javax.jms.MapMessage;
+import javax.jms.Message;
+import javax.jms.MessageListener;
+import javax.xml.ws.WebServiceRef;
+
+/**
+ * Asynchronous invoice callback bean.
+ *
+ * @author Jeff DeLong
+ * @author Alejandro Guizar
+ */
+@MessageDriven(activationConfig = {
+ @ActivationConfigProperty(propertyName = "destinationType", propertyValue =
"javax.jms.Queue"),
+ @ActivationConfigProperty(propertyName = "destination", propertyValue =
"queue/InvoiceQueue") })
+public class InvoiceCallbackBean implements MessageListener {
+
+ @Resource
+ private MessageDrivenContext messageContext;
+ @WebServiceRef
+ private PurchaseSVC purchaseService;
+
+ private final Logger logger =
+ Logger.getLogger(InvoiceCallbackBean.class.getName());
+
+ /**
+ * Process the invoice callback message.
+ */
+ public void onMessage(Message message) {
+ if (!(message instanceof MapMessage)) {
+ logger.severe("received non-map message");
+ messageContext.setRollbackOnly();
+ return;
+ }
+ try {
+ // extract contents
+ MapMessage invoiceMessage = (MapMessage) message;
+ int orderId = invoiceMessage.getInt("orderId");
+ float amount = invoiceMessage.getFloat("amount");
+
+ // populate invoice with contents
+ Invoice inv = new Invoice();
+ inv.setOrderId(orderId);
+ inv.setAmount(amount);
+
+ // send invoice back to requester
+ purchaseService.getInvoiceCallbackSP().sendInvoice(inv);
+
+ logger.log(
+ Level.FINE,
+ "Requested invoice for order #{0,number,integer} with amount
{1,number,currency}",
+ new Object[] { orderId, amount });
+ }
+ catch (JMSException e) {
+ messageContext.setRollbackOnly();
+ logger.log(Level.SEVERE, "could not read invoice message", e);
+ }
+ }
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/InvoiceCallbackBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/InvoiceCallbackPT.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/InvoiceCallbackPT.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/InvoiceCallbackPT.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,24 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 Generated source
+ * version: 2.1
+ */
+@WebService(name = "invoiceCallbackPT", targetNamespace =
"http://manufacturing.org/wsdl/purchase")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface InvoiceCallbackPT {
+
+ /**
+ * @param ivc
+ */
+ @WebMethod(action = "http://manufacturing.org/wsdl/purchase/sendInvoice")
+ @Oneway
+ public void sendInvoice(@WebParam(name = "IVC", partName = "IVC")
Invoice ivc);
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/InvoiceCallbackPT.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/OrderFaultType.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/OrderFaultType.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/OrderFaultType.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,46 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 Generated source
+ * version: 2.1
+ */
+@WebFault(name = "problemInfo", targetNamespace =
"http://manufacturing.org/xsd/purchase")
+public class OrderFaultType extends Exception {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ */
+ private ProblemInfo faultInfo;
+
+ /**
+ * @param message
+ * @param faultInfo
+ */
+ public OrderFaultType(String message, ProblemInfo faultInfo) {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public OrderFaultType(String message, ProblemInfo faultInfo, Throwable cause) {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ * @return returns fault bean:
+ * org.jboss.soa.bpel.samples.quickstart.purchase.ProblemInfo
+ */
+ public ProblemInfo getFaultInfo() {
+ return faultInfo;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/OrderFaultType.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ProblemInfo.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ProblemInfo.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ProblemInfo.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,52 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for ProblemInfo complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="ProblemInfo">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="detail"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ProblemInfo", propOrder = { "detail" })
+public class ProblemInfo {
+
+ @XmlElement(required = true)
+ protected String detail;
+
+ /**
+ * Gets the value of the detail property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getDetail() {
+ return detail;
+ }
+
+ /**
+ * Sets the value of the detail property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setDetail(String value) {
+ this.detail = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ProblemInfo.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrder.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrder.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrder.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,79 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for purchaseOrder complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="purchaseOrder">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="orderId"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="partNumber"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="quantity"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "purchaseOrder", propOrder = { "orderId",
"partNumber",
+ "quantity" })
+public class PurchaseOrder {
+
+ protected int orderId;
+ protected int partNumber;
+ protected int quantity;
+
+ /**
+ * Gets the value of the orderId property.
+ */
+ public int getOrderId() {
+ return orderId;
+ }
+
+ /**
+ * Sets the value of the orderId property.
+ */
+ public void setOrderId(int value) {
+ this.orderId = value;
+ }
+
+ /**
+ * Gets the value of the partNumber property.
+ */
+ public int getPartNumber() {
+ return partNumber;
+ }
+
+ /**
+ * Sets the value of the partNumber property.
+ */
+ public void setPartNumber(int value) {
+ this.partNumber = value;
+ }
+
+ /**
+ * Gets the value of the quantity property.
+ */
+ public int getQuantity() {
+ return quantity;
+ }
+
+ /**
+ * Sets the value of the quantity property.
+ */
+ public void setQuantity(int value) {
+ this.quantity = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrder.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrderPT.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrderPT.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrderPT.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,30 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 Generated source
+ * version: 2.1
+ */
+@WebService(name = "purchaseOrderPT", targetNamespace =
"http://manufacturing.org/wsdl/purchase")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface PurchaseOrderPT {
+
+ /**
+ * @param purchaseOrder
+ * @param customerInfo
+ * @return returns org.jboss.soa.bpel.samples.quickstart.purchase.Invoice
+ * @throws OrderFaultType
+ */
+ @WebMethod(action =
"http://manufacturing.org/wsdl/purchase/sendPurchaseOrder")
+ @WebResult(name = "IVC", partName = "IVC")
+ public Invoice sendPurchaseOrder(
+ @WebParam(name = "customerInfo", partName = "customerInfo")
CustomerInfo customerInfo,
+ @WebParam(name = "purchaseOrder", partName = "purchaseOrder")
PurchaseOrder purchaseOrder)
+ throws OrderFaultType;
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrderPT.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseSVC.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseSVC.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseSVC.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,112 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import javax.xml.ws.WebServiceFeature;
+
+/**
+ * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 Generated source
+ * version: 2.1
+ */
+@WebServiceClient(name = PurchaseSVC.SERVICE_NAME, targetNamespace =
PurchaseSVC.TARGET_NAMESPACE, wsdlLocation = PurchaseSVC.WSDL_LOCATION)
+public class PurchaseSVC extends Service {
+
+ private static final String SHIPPING_CALLBACK_PORT_NAME =
+ "shippingCallbackSP";
+ private static final String INVOICE_CALLBACK_PORT_NAME = "invoiceCallbackSP";
+ static final String SERVICE_NAME = "purchaseSVC";
+ static final String TARGET_NAMESPACE =
+ "http://manufacturing.org/wsdl/purchase";
+ static final String WSDL_LOCATION =
+ "file:/home/aguizar/riftsaw/trunk/samples/quickstart/purchase/bpel/purchase.wsdl";
+ static final String PURCHASE_ORDER_PORT_NAME = "purchaseOrderSP";
+
+ private static final URL WSDL_URL = createURL(WSDL_LOCATION);
+
+ private static URL createURL(String location) {
+ try {
+ return new URL(location);
+ }
+ catch (MalformedURLException e) {
+ throw new IllegalArgumentException(location, e);
+ }
+ }
+
+ public PurchaseSVC(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public PurchaseSVC() {
+ super(WSDL_URL, new QName(TARGET_NAMESPACE, SERVICE_NAME));
+ }
+
+ /**
+ * @return returns PurchaseOrderPT
+ */
+ @WebEndpoint(name = PURCHASE_ORDER_PORT_NAME)
+ public PurchaseOrderPT getPurchaseOrderSP() {
+ return super.getPort(new QName(TARGET_NAMESPACE, PURCHASE_ORDER_PORT_NAME),
+ PurchaseOrderPT.class);
+ }
+
+ /**
+ * @param features A list of {@link javax.xml.ws.WebServiceFeature} to
+ * configure on the proxy. Supported features not in the
<code>features</code>
+ * parameter will have their default values.
+ * @return returns PurchaseOrderPT
+ */
+ @WebEndpoint(name = PURCHASE_ORDER_PORT_NAME)
+ public PurchaseOrderPT getPurchaseOrderSP(WebServiceFeature... features) {
+ return super.getPort(new QName(TARGET_NAMESPACE, PURCHASE_ORDER_PORT_NAME),
+ PurchaseOrderPT.class, features);
+ }
+
+ /**
+ * @return returns InvoiceCallbackPT
+ */
+ @WebEndpoint(name = INVOICE_CALLBACK_PORT_NAME)
+ public InvoiceCallbackPT getInvoiceCallbackSP() {
+ return super.getPort(
+ new QName(TARGET_NAMESPACE, INVOICE_CALLBACK_PORT_NAME),
+ InvoiceCallbackPT.class);
+ }
+
+ /**
+ * @param features A list of {@link javax.xml.ws.WebServiceFeature} to
+ * configure on the proxy. Supported features not in the
<code>features</code>
+ * parameter will have their default values.
+ * @return returns InvoiceCallbackPT
+ */
+ @WebEndpoint(name = INVOICE_CALLBACK_PORT_NAME)
+ public InvoiceCallbackPT getInvoiceCallbackSP(WebServiceFeature... features) {
+ return super.getPort(
+ new QName(TARGET_NAMESPACE, INVOICE_CALLBACK_PORT_NAME),
+ InvoiceCallbackPT.class, features);
+ }
+
+ /**
+ * @return returns ShippingCallbackPT
+ */
+ @WebEndpoint(name = SHIPPING_CALLBACK_PORT_NAME)
+ public ShippingCallbackPT getShippingCallbackSP() {
+ return super.getPort(new QName(TARGET_NAMESPACE,
+ SHIPPING_CALLBACK_PORT_NAME), ShippingCallbackPT.class);
+ }
+
+ /**
+ * @param features A list of {@link javax.xml.ws.WebServiceFeature} to
+ * configure on the proxy. Supported features not in the
<code>features</code>
+ * parameter will have their default values.
+ * @return returns ShippingCallbackPT
+ */
+ @WebEndpoint(name = SHIPPING_CALLBACK_PORT_NAME)
+ public ShippingCallbackPT getShippingCallbackSP(WebServiceFeature... features) {
+ return super.getPort(new QName(TARGET_NAMESPACE,
+ SHIPPING_CALLBACK_PORT_NAME), ShippingCallbackPT.class, features);
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseSVC.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ScheduleInfo.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ScheduleInfo.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ScheduleInfo.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,55 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+/**
+ * <p>
+ * Java class for scheduleInfo complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="scheduleInfo">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="shipDate"
type="{http://www.w3.org/2001/XMLSchema}date"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "scheduleInfo", propOrder = { "shipDate" })
+public class ScheduleInfo {
+
+ @XmlElement(required = true)
+ @XmlSchemaType(name = "date")
+ protected XMLGregorianCalendar shipDate;
+
+ /**
+ * Gets the value of the shipDate property.
+ *
+ * @return possible object is {@link XMLGregorianCalendar }
+ */
+ public XMLGregorianCalendar getShipDate() {
+ return shipDate;
+ }
+
+ /**
+ * Sets the value of the shipDate property.
+ *
+ * @param value allowed object is {@link XMLGregorianCalendar }
+ */
+ public void setShipDate(XMLGregorianCalendar value) {
+ this.shipDate = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ScheduleInfo.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingCallbackBean.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingCallbackBean.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingCallbackBean.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,79 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import javax.annotation.PostConstruct;
+import javax.ejb.ActivationConfigProperty;
+import javax.ejb.MessageDriven;
+import javax.jms.Message;
+import javax.jms.MessageListener;
+import javax.xml.datatype.DatatypeConfigurationException;
+import javax.xml.datatype.DatatypeFactory;
+import javax.xml.datatype.XMLGregorianCalendar;
+import javax.xml.ws.WebServiceRef;
+
+/**
+ * Asynchronous shipping callback bean.
+ *
+ * @author Jeff DeLong
+ * @author Alejandro Guizar
+ */
+@MessageDriven(activationConfig = {
+ @ActivationConfigProperty(propertyName = "destinationType", propertyValue =
"javax.jms.Queue"),
+ @ActivationConfigProperty(propertyName = "destination", propertyValue =
"queue/ShippingQueue") })
+public class ShippingCallbackBean implements MessageListener {
+
+ @WebServiceRef
+ private PurchaseSVC purchaseService;
+
+ private DatatypeFactory datatypeFactory;
+
+ private final Logger log =
+ Logger.getLogger(ShippingCallbackBean.class.getName());
+
+ @PostConstruct
+ void createDatatypeFactory() {
+ try {
+ datatypeFactory = DatatypeFactory.newInstance();
+ }
+ catch (DatatypeConfigurationException e) {
+ throw new AssertionError(e);
+ }
+ }
+
+ /**
+ * Process the shipping message.
+ */
+ public void onMessage(Message msg) {
+ // populate schedule info; for now the message contents are irrelevant
+ XMLGregorianCalendar shipDate = datatypeFactory.newXMLGregorianCalendar();
+ ScheduleInfo schedule = new ScheduleInfo();
+ schedule.setShipDate(shipDate);
+
+ // send schedule back to requester
+ purchaseService.getShippingCallbackSP().sendSchedule(schedule);
+ log.log(Level.FINE, "sent shiping schedule on {0,date}", shipDate);
+ }
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingCallbackBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingCallbackPT.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingCallbackPT.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingCallbackPT.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,25 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 Generated source
+ * version: 2.1
+ */
+@WebService(name = "shippingCallbackPT", targetNamespace =
"http://manufacturing.org/wsdl/purchase")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface ShippingCallbackPT {
+
+ /**
+ * @param schedule
+ */
+ @WebMethod(action = "http://manufacturing.org/wsdl/purchase/sendSchedule")
+ @Oneway
+ public void sendSchedule(
+ @WebParam(name = "schedule", partName = "schedule") ScheduleInfo
schedule);
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingCallbackPT.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingInfo.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingInfo.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingInfo.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,46 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for shippingInfo complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="shippingInfo">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="shippingPrice"
type="{http://www.w3.org/2001/XMLSchema}float"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "shippingInfo", propOrder = { "shippingPrice" })
+public class ShippingInfo {
+
+ protected float shippingPrice;
+
+ /**
+ * Gets the value of the shippingPrice property.
+ */
+ public float getShippingPrice() {
+ return shippingPrice;
+ }
+
+ /**
+ * Sets the value of the shippingPrice property.
+ */
+ public void setShippingPrice(float value) {
+ this.shippingPrice = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingInfo.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/package-info.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/package-info.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/package-info.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,3 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://manufacturing.org/xsd/purchase")
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/package-info.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/purchase-queue-service.xml
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/purchase-queue-service.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/purchase-queue-service.xml 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.destination:service=Queue,name=InvoiceQueue"
+ 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.esb.destination:service=Queue,name=ShippingQueue"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends
optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer
+ </depends>
+ </mbean>
+</server>
\ No newline at end of file
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/purchase-queue-service.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/.classpath
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/.classpath
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/.classpath 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="var"
path="M2_REPO/org/jboss/javaee/jboss-jms-api/1.1.0.GA/jboss-jms-api-1.1.0.GA.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/org/jboss/javaee/jboss-servlet-api/2.5.0.CR2/jboss-servlet-api-2.5.0.CR2.jar"/>
+ <classpathentry kind="output" path="target"/>
+</classpath>
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/.project
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/.project
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/.project 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>purchase-war</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/resources/WEB-INF/jboss-web.xml
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/resources/WEB-INF/jboss-web.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/resources/WEB-INF/jboss-web.xml 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<jboss-web>
+
+ <resource-ref>
+ <res-ref-name>connectionFactory</res-ref-name>
+ <jndi-name>java:ConnectionFactory</jndi-name>
+ </resource-ref>
+
+ <message-destination-ref>
+
<message-destination-ref-name>invoiceQueue</message-destination-ref-name>
+ <jndi-name>queue/InvoiceQueue</jndi-name>
+ </message-destination-ref>
+
+ <message-destination-ref>
+
<message-destination-ref-name>shippingQueue</message-destination-ref-name>
+ <jndi-name>queue/ShippingQueue</jndi-name>
+ </message-destination-ref>
+
+</jboss-web>
\ No newline at end of file
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/resources/WEB-INF/jboss-web.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/resources/WEB-INF/web.xml
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/resources/WEB-INF/web.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/resources/WEB-INF/web.xml 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <!-- Invoice Service -->
+ <servlet>
+ <servlet-name>invoiceServlet</servlet-name>
+ <servlet-class>org.jboss.soa.bpel.samples.quickstart.purchase.ComputePricePT_Impl</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>invoiceServlet</servlet-name>
+ <url-pattern>/invoiceService</url-pattern>
+ </servlet-mapping>
+
+ <!-- Shipping Service -->
+ <servlet>
+ <servlet-name>shippingServlet</servlet-name>
+ <servlet-class>org.jboss.soa.bpel.samples.quickstart.purchase.ShippingPT_Impl</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>shippingServlet</servlet-name>
+ <url-pattern>/shippingService</url-pattern>
+ </servlet-mapping>
+
+ <env-entry>
+ <description>Today's shipping price</description>
+ <env-entry-name>shippingPrice</env-entry-name>
+ <env-entry-type>java.lang.Float</env-entry-type>
+ <env-entry-value>9.50</env-entry-value>
+ </env-entry>
+
+ <!-- Production Scheduling Process -->
+ <servlet>
+ <servlet-name>schedulingServlet</servlet-name>
+ <servlet-class>org.jboss.soa.bpel.samples.quickstart.purchase.SchedulingPT_Impl</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>schedulingServlet</servlet-name>
+ <url-pattern>/schedulingProcess</url-pattern>
+ </servlet-mapping>
+
+</web-app>
\ No newline at end of file
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/resources/WEB-INF/web.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ComputePricePT.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ComputePricePT.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ComputePricePT.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,35 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 Generated source
+ * version: 2.1
+ */
+@WebService(name = "computePricePT", targetNamespace =
"http://manufacturing.org/wsdl/purchase")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface ComputePricePT {
+
+ /**
+ * @param purchaseOrder
+ * @param customerInfo
+ */
+ @WebMethod(action = "http://manufacturing.org/wsdl/purchase")
+ @Oneway
+ public void initiatePriceCalculation(
+ @WebParam(name = "customerInfo", partName = "customerInfo")
CustomerInfo customerInfo,
+ @WebParam(name = "purchaseOrder", partName = "purchaseOrder")
PurchaseOrder purchaseOrder);
+
+ /**
+ * @param shippingInfo
+ */
+ @WebMethod(action = "http://manufacturing.org/wsdl/purchase")
+ @Oneway
+ public void sendShippingPrice(
+ @WebParam(name = "shippingInfo", partName = "shippingInfo")
ShippingInfo shippingInfo);
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ComputePricePT.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ComputePricePT_Impl.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ComputePricePT_Impl.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ComputePricePT_Impl.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,120 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import javax.annotation.Resource;
+import javax.jms.Connection;
+import javax.jms.ConnectionFactory;
+import javax.jms.JMSException;
+import javax.jms.MapMessage;
+import javax.jms.MessageProducer;
+import javax.jms.Queue;
+import javax.jms.Session;
+import javax.jws.WebService;
+import javax.servlet.ServletContext;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.handler.MessageContext;
+
+/**
+ * Invoice endpoint bean.
+ *
+ * @author Jeff DeLong
+ * @author Alejandro Guizar
+ */
+@WebService(endpointInterface =
"org.jboss.soa.bpel.samples.quickstart.purchase.ComputePricePT", targetNamespace
= "http://manufacturing.org/wsdl/purchase", serviceName =
"invoiceSVC", portName = "computePriceSP")
+public class ComputePricePT_Impl implements ComputePricePT {
+
+ @Resource
+ private Queue invoiceQueue;
+ @Resource
+ private ConnectionFactory connectionFactory;
+
+ @Resource
+ private WebServiceContext serviceContext;
+
+ private final Logger logger =
+ Logger.getLogger(ComputePricePT_Impl.class.getName());
+
+ private static final String ORDER_ID_ATTR = "invoice.orderId";
+ private static final String LINE_PRICE_ATTR = "invoice.linePrice";
+
+ public void initiatePriceCalculation(CustomerInfo customerInfo,
+ PurchaseOrder purchaseOrder) {
+ MessageContext messageContext = serviceContext.getMessageContext();
+ ServletContext servletContext =
+ (ServletContext) messageContext.get(MessageContext.SERVLET_CONTEXT);
+ servletContext.setAttribute(ORDER_ID_ATTR, purchaseOrder.getOrderId());
+ // In our system the part number is also the unit price!
+ servletContext.setAttribute(LINE_PRICE_ATTR,
+ (float) purchaseOrder.getQuantity() * purchaseOrder.getPartNumber());
+ }
+
+ public void sendShippingPrice(ShippingInfo shippingInfo) {
+ try {
+ sendInvoiceMessage(shippingInfo.getShippingPrice());
+ }
+ catch (JMSException e) {
+ logger.log(Level.SEVERE, "failed to send invoice message", e);
+ }
+ }
+
+ protected void sendInvoiceMessage(float shippingPrice) throws JMSException {
+ MessageContext messageContext = serviceContext.getMessageContext();
+ ServletContext servletContext =
+ (ServletContext) messageContext.get(MessageContext.SERVLET_CONTEXT);
+ Integer orderId = (Integer) servletContext.getAttribute(ORDER_ID_ATTR);
+ Float linePrice = (Float) servletContext.getAttribute(LINE_PRICE_ATTR);
+ float amount = linePrice + shippingPrice;
+
+ // create a connection
+ Connection connection = connectionFactory.createConnection();
+ try {
+ // create a session
+ Session session =
+ connection.createSession(false, Session.CLIENT_ACKNOWLEDGE);
+ try {
+ // create the message
+ MapMessage invoiceMessage = session.createMapMessage();
+ invoiceMessage.setInt("orderId", orderId);
+ invoiceMessage.setFloat("amount", amount);
+
+ // send it!
+ MessageProducer producer = session.createProducer(invoiceQueue);
+ producer.send(invoiceMessage);
+
+ logger.log(
+ Level.FINE,
+ "sent invoice message for PO #{0,number,integer} with amount
{1,number,currency}",
+ new Object[] { orderId, amount });
+ }
+ finally {
+ session.close();
+ }
+ }
+ finally {
+ connection.close();
+ }
+ }
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ComputePricePT_Impl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/CustomerInfo.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/CustomerInfo.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/CustomerInfo.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,73 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for customerInfo complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="customerInfo">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="customerId"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="address"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "customerInfo", propOrder = { "customerId",
"address" })
+public class CustomerInfo {
+
+ @XmlElement(required = true)
+ protected String customerId;
+ @XmlElement(required = true)
+ protected String address;
+
+ /**
+ * Gets the value of the customerId property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getCustomerId() {
+ return customerId;
+ }
+
+ /**
+ * Sets the value of the customerId property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setCustomerId(String value) {
+ this.customerId = value;
+ }
+
+ /**
+ * Gets the value of the address property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getAddress() {
+ return address;
+ }
+
+ /**
+ * Sets the value of the address property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setAddress(String value) {
+ this.address = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/CustomerInfo.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/Invoice.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/Invoice.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/Invoice.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,62 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for Invoice complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="Invoice">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="amount"
type="{http://www.w3.org/2001/XMLSchema}float"/>
+ * <element name="orderId"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "Invoice", propOrder = { "amount",
"orderId" })
+public class Invoice {
+
+ protected float amount;
+ protected int orderId;
+
+ /**
+ * Gets the value of the amount property.
+ */
+ public float getAmount() {
+ return amount;
+ }
+
+ /**
+ * Sets the value of the amount property.
+ */
+ public void setAmount(float value) {
+ this.amount = value;
+ }
+
+ /**
+ * Gets the value of the orderId property.
+ */
+ public int getOrderId() {
+ return orderId;
+ }
+
+ /**
+ * Sets the value of the orderId property.
+ */
+ public void setOrderId(int value) {
+ this.orderId = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/Invoice.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ObjectFactory.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ObjectFactory.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ObjectFactory.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,85 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+/**
+ * This object contains factory methods for each Java content interface and Java
+ * element interface generated in the
+ * org.jboss.soa.bpel.samples.quickstart.purchase package.
+ * <p>
+ * An ObjectFactory allows you to programatically construct new instances of the
+ * Java representation for XML content. The Java representation of XML content
+ * can consist of schema derived interfaces and classes representing the binding
+ * of schema type definitions, element declarations and model groups. Factory
+ * methods for each of these are provided in this class.
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _ProblemInfo_QNAME =
+ new
QName("http://manufacturing.org/xsd/purchase",
"problemInfo");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of
+ * schema derived classes for package:
+ * org.jboss.soa.bpel.samples.quickstart.purchase
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link PurchaseOrder }
+ */
+ public PurchaseOrder createPurchaseOrder() {
+ return new PurchaseOrder();
+ }
+
+ /**
+ * Create an instance of {@link ShippingInfo }
+ */
+ public ShippingInfo createShippingInfo() {
+ return new ShippingInfo();
+ }
+
+ /**
+ * Create an instance of {@link ProblemInfo }
+ */
+ public ProblemInfo createProblemInfo() {
+ return new ProblemInfo();
+ }
+
+ /**
+ * Create an instance of {@link Invoice }
+ */
+ public Invoice createInvoice() {
+ return new Invoice();
+ }
+
+ /**
+ * Create an instance of {@link CustomerInfo }
+ */
+ public CustomerInfo createCustomerInfo() {
+ return new CustomerInfo();
+ }
+
+ /**
+ * Create an instance of {@link ScheduleInfo }
+ */
+ public ScheduleInfo createScheduleInfo() {
+ return new ScheduleInfo();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link ProblemInfo }
+ * {@code >}
+ */
+ @XmlElementDecl(namespace = "http://manufacturing.org/xsd/purchase", name =
"problemInfo")
+ public JAXBElement<ProblemInfo> createProblemInfo(ProblemInfo value) {
+ return new JAXBElement<ProblemInfo>(_ProblemInfo_QNAME, ProblemInfo.class,
+ null, value);
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ObjectFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/OrderFaultType.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/OrderFaultType.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/OrderFaultType.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,45 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 Generated source
+ * version: 2.1
+ */
+@WebFault(name = "problemInfo", targetNamespace =
"http://manufacturing.org/xsd/purchase")
+public class OrderFaultType extends Exception {
+
+ private static final long serialVersionUID = 1L;
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ */
+ private ProblemInfo faultInfo;
+
+ /**
+ * @param message
+ * @param faultInfo
+ */
+ public OrderFaultType(String message, ProblemInfo faultInfo) {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public OrderFaultType(String message, ProblemInfo faultInfo, Throwable cause) {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ * @return returns fault bean:
+ * org.jboss.soa.bpel.samples.quickstart.purchase.ProblemInfo
+ */
+ public ProblemInfo getFaultInfo() {
+ return faultInfo;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/OrderFaultType.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ProblemInfo.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ProblemInfo.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ProblemInfo.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,52 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for ProblemInfo complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="ProblemInfo">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="detail"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ProblemInfo", propOrder = { "detail" })
+public class ProblemInfo {
+
+ @XmlElement(required = true)
+ protected String detail;
+
+ /**
+ * Gets the value of the detail property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getDetail() {
+ return detail;
+ }
+
+ /**
+ * Sets the value of the detail property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setDetail(String value) {
+ this.detail = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ProblemInfo.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrder.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrder.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrder.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,79 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for purchaseOrder complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="purchaseOrder">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="orderId"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="partNumber"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="quantity"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "purchaseOrder", propOrder = { "orderId",
"partNumber",
+ "quantity" })
+public class PurchaseOrder {
+
+ protected int orderId;
+ protected int partNumber;
+ protected int quantity;
+
+ /**
+ * Gets the value of the orderId property.
+ */
+ public int getOrderId() {
+ return orderId;
+ }
+
+ /**
+ * Sets the value of the orderId property.
+ */
+ public void setOrderId(int value) {
+ this.orderId = value;
+ }
+
+ /**
+ * Gets the value of the partNumber property.
+ */
+ public int getPartNumber() {
+ return partNumber;
+ }
+
+ /**
+ * Sets the value of the partNumber property.
+ */
+ public void setPartNumber(int value) {
+ this.partNumber = value;
+ }
+
+ /**
+ * Gets the value of the quantity property.
+ */
+ public int getQuantity() {
+ return quantity;
+ }
+
+ /**
+ * Sets the value of the quantity property.
+ */
+ public void setQuantity(int value) {
+ this.quantity = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrder.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ScheduleInfo.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ScheduleInfo.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ScheduleInfo.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,55 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+/**
+ * <p>
+ * Java class for scheduleInfo complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="scheduleInfo">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="shipDate"
type="{http://www.w3.org/2001/XMLSchema}date"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "scheduleInfo", propOrder = { "shipDate" })
+public class ScheduleInfo {
+
+ @XmlElement(required = true)
+ @XmlSchemaType(name = "date")
+ protected XMLGregorianCalendar shipDate;
+
+ /**
+ * Gets the value of the shipDate property.
+ *
+ * @return possible object is {@link XMLGregorianCalendar }
+ */
+ public XMLGregorianCalendar getShipDate() {
+ return shipDate;
+ }
+
+ /**
+ * Sets the value of the shipDate property.
+ *
+ * @param value allowed object is {@link XMLGregorianCalendar }
+ */
+ public void setShipDate(XMLGregorianCalendar value) {
+ this.shipDate = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ScheduleInfo.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/SchedulingPT.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/SchedulingPT.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/SchedulingPT.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,35 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 Generated source
+ * version: 2.1
+ */
+@WebService(name = "schedulingPT", targetNamespace =
"http://manufacturing.org/wsdl/purchase")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface SchedulingPT {
+
+ /**
+ * @param purchaseOrder
+ * @param customerInfo
+ */
+ @WebMethod(action = "http://manufacturing.org/wsdl/purchase")
+ @Oneway
+ public void requestProductionScheduling(
+ @WebParam(name = "customerInfo", partName = "customerInfo")
CustomerInfo customerInfo,
+ @WebParam(name = "purchaseOrder", partName = "purchaseOrder")
PurchaseOrder purchaseOrder);
+
+ /**
+ * @param schedule
+ */
+ @WebMethod(action = "http://manufacturing.org/wsdl/purchase")
+ @Oneway
+ public void sendShippingSchedule(
+ @WebParam(name = "schedule", partName = "schedule") ScheduleInfo
schedule);
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/SchedulingPT.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/SchedulingPT_Impl.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/SchedulingPT_Impl.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/SchedulingPT_Impl.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import javax.jws.WebService;
+
+/**
+ * Production scheduling endpoint bean.
+ *
+ * @author Alejandro Guizar
+ */
+@WebService(endpointInterface =
"org.jboss.soa.bpel.samples.quickstart.purchase.SchedulingPT", targetNamespace =
"http://manufacturing.org/wsdl/purchase", serviceName =
"schedulingSVC", portName = "schedulingSP")
+public class SchedulingPT_Impl implements SchedulingPT {
+
+ private final Logger logger = Logger.getLogger(SchedulingPT.class.getName());
+
+ public void requestProductionScheduling(CustomerInfo customerInfo,
+ PurchaseOrder purchaseOrder) {
+ logger.log(
+ Level.FINE,
+ "received production scheduling request for customer {0} and PO
{1,number,integer}",
+ new Object[] { customerInfo.getCustomerId(), purchaseOrder.getOrderId() });
+ }
+
+ public void sendShippingSchedule(ScheduleInfo schedule) {
+ logger.log(Level.FINE, "received shipping schedule on {0,date}",
+ schedule.getShipDate().toGregorianCalendar().getTime());
+ }
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/SchedulingPT_Impl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingInfo.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingInfo.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingInfo.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,46 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for shippingInfo complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="shippingInfo">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="shippingPrice"
type="{http://www.w3.org/2001/XMLSchema}float"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "shippingInfo", propOrder = { "shippingPrice" })
+public class ShippingInfo {
+
+ protected float shippingPrice;
+
+ /**
+ * Gets the value of the shippingPrice property.
+ */
+ public float getShippingPrice() {
+ return shippingPrice;
+ }
+
+ /**
+ * Sets the value of the shippingPrice property.
+ */
+ public void setShippingPrice(float value) {
+ this.shippingPrice = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingInfo.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingPT.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingPT.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingPT.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,28 @@
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 Generated source
+ * version: 2.1
+ */
+@WebService(name = "shippingPT", targetNamespace =
"http://manufacturing.org/wsdl/purchase")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface ShippingPT {
+
+ /**
+ * @param customerInfo
+ * @return returns org.jboss.soa.bpel.samples.quickstart.purchase.ShippingInfo
+ * @throws OrderFaultType
+ */
+ @WebMethod(action = "http://manufacturing.org/wsdl/purchase")
+ @WebResult(name = "shippingInfo", partName = "shippingInfo")
+ public ShippingInfo requestShipping(
+ @WebParam(name = "customerInfo", partName = "customerInfo")
CustomerInfo customerInfo)
+ throws OrderFaultType;
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingPT.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingPT_Impl.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingPT_Impl.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingPT_Impl.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,109 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import javax.annotation.Resource;
+import javax.jms.Connection;
+import javax.jms.ConnectionFactory;
+import javax.jms.JMSException;
+import javax.jms.MapMessage;
+import javax.jms.MessageProducer;
+import javax.jms.Queue;
+import javax.jms.Session;
+import javax.jws.WebService;
+
+/**
+ * Shipping endpoint bean.
+ *
+ * @author Jeff DeLong
+ * @author Alejandro Guizar
+ */
+@WebService(endpointInterface =
"org.jboss.soa.bpel.samples.quickstart.purchase.ShippingPT", targetNamespace =
"http://manufacturing.org/wsdl/purchase", serviceName = "shippingSVC",
portName = "shippingSP")
+public class ShippingPT_Impl implements ShippingPT {
+
+ @Resource
+ private Queue shippingQueue;
+ @Resource
+ private ConnectionFactory connectionFactory;
+ @Resource
+ private Float shippingPrice;
+
+ private final Logger logger =
+ Logger.getLogger(ShippingPT_Impl.class.getName());
+
+ /**
+ * Returns shipping price synchronously and date asynchronously.
+ */
+ public ShippingInfo requestShipping(CustomerInfo customerInfo)
+ throws OrderFaultType {
+ // check the address before accepting the shipping
+ String address = customerInfo.getAddress();
+ if (address.indexOf("Elm St") != -1) {
+ // we do not ship to Elm St, it is a scary place
+ ProblemInfo problemInfo = new ProblemInfo();
+ problemInfo.setDetail("Shipping to address '" + address
+ + "' is not available");
+ throw new OrderFaultType("shipping unavailable", problemInfo);
+ }
+
+ try {
+ sendShippingMessage(customerInfo.getCustomerId());
+ }
+ catch (JMSException e) {
+ logger.log(Level.SEVERE, "failed to send shipping message", e);
+ }
+
+ ShippingInfo shippingInfo = new ShippingInfo();
+ shippingInfo.setShippingPrice(shippingPrice);
+ return shippingInfo;
+ }
+
+ protected void sendShippingMessage(String customerId) throws JMSException {
+ Connection connection = connectionFactory.createConnection();
+ try {
+ // create a session
+ Session session =
+ connection.createSession(false, Session.CLIENT_ACKNOWLEDGE);
+ try {
+ // create the message
+ MapMessage message = session.createMapMessage();
+ message.setString("customerId", customerId);
+
+ // send it!
+ MessageProducer producer = session.createProducer(shippingQueue);
+ producer.send(message);
+
+ logger.log(Level.FINE, "sent shipping message for customer {0}",
+ customerId);
+ }
+ finally {
+ session.close();
+ }
+ }
+ finally {
+ connection.close();
+ }
+ }
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingPT_Impl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/package-info.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/package-info.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/package-info.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -0,0 +1,3 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://manufacturing.org/xsd/purchase")
+package org.jboss.soa.bpel.samples.quickstart.purchase;
+
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/package-info.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: trunk/samples/quickstart/atm/build.xml
===================================================================
--- trunk/samples/quickstart/atm/build.xml 2009-11-18 15:06:15 UTC (rev 280)
+++ trunk/samples/quickstart/atm/build.xml 2009-11-19 02:53:57 UTC (rev 281)
@@ -9,7 +9,8 @@
<property name="version" value="1" />
- <property name="server.dir"
value="${org.jboss.as.home}/server/${org.jboss.as.config}" />
+ <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" />
@@ -18,13 +19,16 @@
<property name="war.build.dir" location="build/war/classes"
/>
<path id="compile-classpath">
- <fileset dir="${org.jboss.as.home}/client" includes="*.jar"
/>
+ <pathelement location="${org.jboss.as.home}/client/jboss-javaee.jar"
/>
</path>
<target name="makewar" description="make war">
<!-- Compile... -->
<mkdir dir="${war.build.dir}" />
- <javac srcdir="war/src" destdir="${war.build.dir}"
target="1.5" debug="true">
+ <javac srcdir="war/src"
+ destdir="${war.build.dir}"
+ target="1.5"
+ debug="true">
<classpath refid="compile-classpath" />
</javac>
<copy todir="${war.build.dir}">
@@ -32,7 +36,8 @@
</copy>
<!-- War... -->
- <war warfile="build/${ant.project.name}.war"
webxml="${basedir}/war/resources/WEB-INF/web.xml">
+ <war warfile="build/${ant.project.name}.war"
+ webxml="${basedir}/war/resources/WEB-INF/web.xml">
<classes dir="${war.build.dir}" />
</war>
</target>
Added: trunk/samples/quickstart/purchase/bpel/bpel-deploy.xml
===================================================================
--- trunk/samples/quickstart/purchase/bpel/bpel-deploy.xml (rev
0)
+++ trunk/samples/quickstart/purchase/bpel/bpel-deploy.xml 2009-11-19 02:53:57 UTC (rev
281)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deploy
xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
xmlns:def="http://manufacturing.org/wsdl/purchase"
+
xmlns:pro="http://manufacturing.org/ws-bp/purchase">
+ <process name="pro:PurchaseOrder"
xmlns:pur="http://acme.com/ws-bp/purchase">
+ <active>true</active>
+ <provide partnerLink="purchasing">
+ <service name="def:purchaseSVC" port="purchaseOrderSP" />
+ </provide>
+ <provide partnerLink="invoicing">
+ <service name="def:purchaseSVC" port="invoiceCallbackSP" />
+ </provide>
+ <provide partnerLink="shipping">
+ <service name="def:purchaseSVC" port="shippingCallbackSP"
/>
+ </provide>
+ <invoke partnerLink="invoicing">
+ <service name="def:invoiceSVC" port="computePriceSP" />
+ </invoke>
+ <invoke partnerLink="shipping">
+ <service name="def:shippingSVC" port="shippingSP" />
+ </invoke>
+ <invoke partnerLink="scheduling">
+ <service name="def:schedulingSVC" port="schedulingSP" />
+ </invoke>
+ </process>
+</deploy>
\ No newline at end of file
Property changes on: trunk/samples/quickstart/purchase/bpel/bpel-deploy.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: trunk/samples/quickstart/purchase/build.xml
===================================================================
--- trunk/samples/quickstart/purchase/build.xml 2009-11-18 15:06:15 UTC (rev 280)
+++ trunk/samples/quickstart/purchase/build.xml 2009-11-19 02:53:57 UTC (rev 281)
@@ -1,15 +1,14 @@
-<project name="quickstart_bpel_purchase" default="deploy"
basedir=".">
+<project name="Quickstart_bpel_purchase" default="deploy"
basedir=".">
- <description>
- ${ant.project.name}
- </description>
+ <description>${ant.project.name}</description>
<!-- Import the base Ant build script... -->
<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="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" />
@@ -19,8 +18,8 @@
<property name="ejb.build.dir" location="build/ejb/classes"
/>
<path id="compile-classpath">
- <pathelement
location="${org.jboss.as.home}/common/lib/servlet-api.jar"/>
- <pathelement location="${org.jboss.as.home}/client/jboss-javaee.jar"/>
+ <pathelement location="${org.jboss.as.home}/common/lib/servlet-api.jar"
/>
+ <pathelement location="${org.jboss.as.home}/client/jboss-javaee.jar"
/>
</path>
<target name="deployq">
@@ -34,7 +33,10 @@
<target name="makewar" description="make war">
<!-- Compile -->
<mkdir dir="${war.build.dir}" />
- <javac srcdir="war/src" destdir="${war.build.dir}"
target="1.5" debug="true">
+ <javac srcdir="war/src"
+ destdir="${war.build.dir}"
+ target="1.5"
+ debug="true">
<classpath refid="compile-classpath" />
</javac>
<copy todir="${war.build.dir}">
@@ -42,7 +44,8 @@
</copy>
<!-- War -->
- <war warfile="build/${ant.project.name}.war"
webxml="${basedir}/war/resources/WEB-INF/web.xml">
+ <war warfile="build/${ant.project.name}.war"
+ webxml="${basedir}/war/resources/WEB-INF/web.xml">
<classes dir="${war.build.dir}" />
<webinf dir="${basedir}/war/resources/WEB-INF"
includes="jboss-web.xml" />
</war>
@@ -59,22 +62,25 @@
<target name="makeejb">
<!-- Compile -->
<mkdir dir="${ejb.build.dir}" />
- <javac srcdir="ejb/src" destdir="${ejb.build.dir}"
target="1.5" debug="true">
+ <javac srcdir="ejb/src"
+ destdir="${ejb.build.dir}"
+ target="1.5"
+ debug="true">
<classpath refid="compile-classpath" />
</javac>
<!-- Jar -->
- <jar destfile="build/${ant.project.name}.jar">
+ <jar destfile="build/${ant.project.name}_ejb.jar">
<fileset dir="${ejb.build.dir}" />
</jar>
</target>
<target name="deployejb" depends="makeejb,deployq">
- <copy todir="${deploy.dir}" file="build/${ant.project.name}.jar"
/>
+ <copy todir="${deploy.dir}"
file="build/${ant.project.name}_ejb.jar" />
</target>
<target name="undeployejb">
- <delete file="${deploy.dir}/${ant.project.name}.jar" />
+ <delete file="${deploy.dir}/${ant.project.name}_ejb.jar" />
</target>
<target name="deploy" depends="deploywar,deployejb">
Deleted:
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/CustomerInfo.java
===================================================================
---
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/CustomerInfo.java 2009-11-18
15:06:15 UTC (rev 280)
+++
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/CustomerInfo.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -1,73 +0,0 @@
-package org.jboss.soa.bpel.samples.quickstart.purchase;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * <p>
- * Java class for customerInfo complex type.
- * <p>
- * The following schema fragment specifies the expected content contained within
- * this class.
- *
- * <pre>
- * <complexType name="customerInfo">
- * <complexContent>
- * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="customerId"
type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="address"
type="{http://www.w3.org/2001/XMLSchema}string"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- */
-(a)XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "customerInfo", propOrder = { "customerId",
"address" })
-public class CustomerInfo {
-
- @XmlElement(required = true)
- protected String customerId;
- @XmlElement(required = true)
- protected String address;
-
- /**
- * Gets the value of the customerId property.
- *
- * @return possible object is {@link String }
- */
- public String getCustomerId() {
- return customerId;
- }
-
- /**
- * Sets the value of the customerId property.
- *
- * @param value allowed object is {@link String }
- */
- public void setCustomerId(String value) {
- this.customerId = value;
- }
-
- /**
- * Gets the value of the address property.
- *
- * @return possible object is {@link String }
- */
- public String getAddress() {
- return address;
- }
-
- /**
- * Sets the value of the address property.
- *
- * @param value allowed object is {@link String }
- */
- public void setAddress(String value) {
- this.address = value;
- }
-
-}
Deleted:
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/OrderFaultType.java
===================================================================
---
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/OrderFaultType.java 2009-11-18
15:06:15 UTC (rev 280)
+++
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/OrderFaultType.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -1,46 +0,0 @@
-package org.jboss.soa.bpel.samples.quickstart.purchase;
-
-import javax.xml.ws.WebFault;
-
-/**
- * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 Generated source
- * version: 2.1
- */
-@WebFault(name = "problemInfo", targetNamespace =
"http://manufacturing.org/xsd/purchase")
-public class OrderFaultType extends Exception {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * Java type that goes as soapenv:Fault detail element.
- */
- private ProblemInfo faultInfo;
-
- /**
- * @param message
- * @param faultInfo
- */
- public OrderFaultType(String message, ProblemInfo faultInfo) {
- super(message);
- this.faultInfo = faultInfo;
- }
-
- /**
- * @param message
- * @param faultInfo
- * @param cause
- */
- public OrderFaultType(String message, ProblemInfo faultInfo, Throwable cause) {
- super(message, cause);
- this.faultInfo = faultInfo;
- }
-
- /**
- * @return returns fault bean:
- * org.jboss.soa.bpel.samples.quickstart.purchase.ProblemInfo
- */
- public ProblemInfo getFaultInfo() {
- return faultInfo;
- }
-
-}
Deleted:
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ProblemInfo.java
===================================================================
---
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ProblemInfo.java 2009-11-18
15:06:15 UTC (rev 280)
+++
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ProblemInfo.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -1,52 +0,0 @@
-package org.jboss.soa.bpel.samples.quickstart.purchase;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * <p>
- * Java class for ProblemInfo complex type.
- * <p>
- * The following schema fragment specifies the expected content contained within
- * this class.
- *
- * <pre>
- * <complexType name="ProblemInfo">
- * <complexContent>
- * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="detail"
type="{http://www.w3.org/2001/XMLSchema}string"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- */
-(a)XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "ProblemInfo", propOrder = { "detail" })
-public class ProblemInfo {
-
- @XmlElement(required = true)
- protected String detail;
-
- /**
- * Gets the value of the detail property.
- *
- * @return possible object is {@link String }
- */
- public String getDetail() {
- return detail;
- }
-
- /**
- * Sets the value of the detail property.
- *
- * @param value allowed object is {@link String }
- */
- public void setDetail(String value) {
- this.detail = value;
- }
-
-}
Deleted:
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrder.java
===================================================================
---
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrder.java 2009-11-18
15:06:15 UTC (rev 280)
+++
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrder.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -1,79 +0,0 @@
-package org.jboss.soa.bpel.samples.quickstart.purchase;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * <p>
- * Java class for purchaseOrder complex type.
- * <p>
- * The following schema fragment specifies the expected content contained within
- * this class.
- *
- * <pre>
- * <complexType name="purchaseOrder">
- * <complexContent>
- * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="orderId"
type="{http://www.w3.org/2001/XMLSchema}int"/>
- * <element name="partNumber"
type="{http://www.w3.org/2001/XMLSchema}int"/>
- * <element name="quantity"
type="{http://www.w3.org/2001/XMLSchema}int"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- */
-(a)XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "purchaseOrder", propOrder = { "orderId",
"partNumber",
- "quantity" })
-public class PurchaseOrder {
-
- protected int orderId;
- protected int partNumber;
- protected int quantity;
-
- /**
- * Gets the value of the orderId property.
- */
- public int getOrderId() {
- return orderId;
- }
-
- /**
- * Sets the value of the orderId property.
- */
- public void setOrderId(int value) {
- this.orderId = value;
- }
-
- /**
- * Gets the value of the partNumber property.
- */
- public int getPartNumber() {
- return partNumber;
- }
-
- /**
- * Sets the value of the partNumber property.
- */
- public void setPartNumber(int value) {
- this.partNumber = value;
- }
-
- /**
- * Gets the value of the quantity property.
- */
- public int getQuantity() {
- return quantity;
- }
-
- /**
- * Sets the value of the quantity property.
- */
- public void setQuantity(int value) {
- this.quantity = value;
- }
-
-}
Deleted:
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrderPT.java
===================================================================
---
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrderPT.java 2009-11-18
15:06:15 UTC (rev 280)
+++
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseOrderPT.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -1,30 +0,0 @@
-package org.jboss.soa.bpel.samples.quickstart.purchase;
-
-import javax.jws.WebMethod;
-import javax.jws.WebParam;
-import javax.jws.WebResult;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-/**
- * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 Generated source
- * version: 2.1
- */
-@WebService(name = "purchaseOrderPT", targetNamespace =
"http://manufacturing.org/wsdl/purchase")
-@SOAPBinding(style = SOAPBinding.Style.RPC)
-public interface PurchaseOrderPT {
-
- /**
- * @param purchaseOrder
- * @param customerInfo
- * @return returns org.jboss.soa.bpel.samples.quickstart.purchase.Invoice
- * @throws OrderFaultType
- */
- @WebMethod(action =
"http://manufacturing.org/wsdl/purchase/sendPurchaseOrder")
- @WebResult(name = "IVC", partName = "IVC")
- public Invoice sendPurchaseOrder(
- @WebParam(name = "customerInfo", partName = "customerInfo")
CustomerInfo customerInfo,
- @WebParam(name = "purchaseOrder", partName = "purchaseOrder")
PurchaseOrder purchaseOrder)
- throws OrderFaultType;
-
-}
Modified:
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseSVC.java
===================================================================
---
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseSVC.java 2009-11-18
15:06:15 UTC (rev 280)
+++
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/PurchaseSVC.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -45,27 +45,6 @@
}
/**
- * @return returns PurchaseOrderPT
- */
- @WebEndpoint(name = PURCHASE_ORDER_PORT_NAME)
- public PurchaseOrderPT getPurchaseOrderSP() {
- return super.getPort(new QName(TARGET_NAMESPACE, PURCHASE_ORDER_PORT_NAME),
- PurchaseOrderPT.class);
- }
-
- /**
- * @param features A list of {@link javax.xml.ws.WebServiceFeature} to
- * configure on the proxy. Supported features not in the
<code>features</code>
- * parameter will have their default values.
- * @return returns PurchaseOrderPT
- */
- @WebEndpoint(name = PURCHASE_ORDER_PORT_NAME)
- public PurchaseOrderPT getPurchaseOrderSP(WebServiceFeature... features) {
- return super.getPort(new QName(TARGET_NAMESPACE, PURCHASE_ORDER_PORT_NAME),
- PurchaseOrderPT.class, features);
- }
-
- /**
* @return returns InvoiceCallbackPT
*/
@WebEndpoint(name = INVOICE_CALLBACK_PORT_NAME)
Deleted:
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingInfo.java
===================================================================
---
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingInfo.java 2009-11-18
15:06:15 UTC (rev 280)
+++
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingInfo.java 2009-11-19
02:53:57 UTC (rev 281)
@@ -1,46 +0,0 @@
-package org.jboss.soa.bpel.samples.quickstart.purchase;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * <p>
- * Java class for shippingInfo complex type.
- * <p>
- * The following schema fragment specifies the expected content contained within
- * this class.
- *
- * <pre>
- * <complexType name="shippingInfo">
- * <complexContent>
- * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="shippingPrice"
type="{http://www.w3.org/2001/XMLSchema}float"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- */
-(a)XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "shippingInfo", propOrder = { "shippingPrice" })
-public class ShippingInfo {
-
- protected float shippingPrice;
-
- /**
- * Gets the value of the shippingPrice property.
- */
- public float getShippingPrice() {
- return shippingPrice;
- }
-
- /**
- * Sets the value of the shippingPrice property.
- */
- public void setShippingPrice(float value) {
- this.shippingPrice = value;
- }
-
-}
Modified: trunk/samples/quickstart/purchase/war/resources/WEB-INF/web.xml
===================================================================
--- trunk/samples/quickstart/purchase/war/resources/WEB-INF/web.xml 2009-11-18 15:06:15
UTC (rev 280)
+++ trunk/samples/quickstart/purchase/war/resources/WEB-INF/web.xml 2009-11-19 02:53:57
UTC (rev 281)
@@ -27,7 +27,7 @@
<description>Today's shipping price</description>
<env-entry-name>shippingPrice</env-entry-name>
<env-entry-type>java.lang.Float</env-entry-type>
- <env-entry-value>10.95</env-entry-value>
+ <env-entry-value>9.50</env-entry-value>
</env-entry>
<!-- Production Scheduling Process -->