riftsaw SVN: r282 - trunk/integration-tests.
by riftsaw-commits@lists.jboss.org
Author: alex.guizar(a)jboss.com
Date: 2009-11-18 22:04:23 -0500 (Wed, 18 Nov 2009)
New Revision: 282
Modified:
trunk/integration-tests/pom.xml
Log:
RIFTSAW-34: exclude purchase test case until integration tests run locally
Modified: trunk/integration-tests/pom.xml
===================================================================
--- trunk/integration-tests/pom.xml 2009-11-19 02:53:57 UTC (rev 281)
+++ trunk/integration-tests/pom.xml 2009-11-19 03:04:23 UTC (rev 282)
@@ -279,6 +279,7 @@
<!-- https://jira.jboss.org/jira/browse/RIFTSAW-34 -->
<excludes>
<exclude>org/jboss/soa/bpel/tests/samples/QuickstartBPELAtmTestCase.java</exclude>
+ <exclude>org/jboss/soa/bpel/tests/samples/QuickstartBPELPurchaseTestCase.java</exclude>
</excludes>
</configuration>
<executions>
15 years, 1 month
riftsaw SVN: r281 - in trunk: integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples and 30 other directories.
by riftsaw-commits@lists.jboss.org
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 -->
15 years, 1 month
riftsaw SVN: r280 - trunk/console/integration/src/main/java/org/jboss/soa/bpel/console.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2009-11-18 10:06:15 -0500 (Wed, 18 Nov 2009)
New Revision: 280
Modified:
trunk/console/integration/src/main/java/org/jboss/soa/bpel/console/ProcessMgmtImpl.java
Log:
RIFTSAW-83 - silently ignore ProcessNotFound exception, resulting from the fact that a request to terminate a process instance that has already been terminated due to its process definition being undeployed. Otherwise a stack trace is displayed on the admin console.
Modified: trunk/console/integration/src/main/java/org/jboss/soa/bpel/console/ProcessMgmtImpl.java
===================================================================
--- trunk/console/integration/src/main/java/org/jboss/soa/bpel/console/ProcessMgmtImpl.java 2009-11-18 15:03:43 UTC (rev 279)
+++ trunk/console/integration/src/main/java/org/jboss/soa/bpel/console/ProcessMgmtImpl.java 2009-11-18 15:06:15 UTC (rev 280)
@@ -136,8 +136,12 @@
public void endInstance(String instanceId, ProcessInstanceRef.RESULT result)
{
- String iid = ModelAdaptor.decodeId(instanceId);
- getMgmtFacade().terminate(Long.valueOf(iid));
+ try {
+ String iid = ModelAdaptor.decodeId(instanceId);
+ getMgmtFacade().terminate(Long.valueOf(iid));
+ } catch(org.apache.ode.bpel.pmapi.ProcessNotFoundException ex) {
+ // Silently ignore
+ }
}
public void deleteInstance(String instanceId)
15 years, 1 month
riftsaw SVN: r279 - branches/ODE/ODE-1.x-fixes/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2009-11-18 10:03:43 -0500 (Wed, 18 Nov 2009)
New Revision: 279
Modified:
branches/ODE/ODE-1.x-fixes/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/ProcessDaoImpl.java
Log:
RIFTSAW-83 - avoid npe when terminating a process instance that has had its process definition undeployed
Modified: branches/ODE/ODE-1.x-fixes/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/ProcessDaoImpl.java
===================================================================
--- branches/ODE/ODE-1.x-fixes/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/ProcessDaoImpl.java 2009-11-18 07:27:22 UTC (rev 278)
+++ branches/ODE/ODE-1.x-fixes/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/ProcessDaoImpl.java 2009-11-18 15:03:43 UTC (rev 279)
@@ -79,7 +79,7 @@
}
public QName getProcessId() {
- return QName.valueOf(_process.getProcessId());
+ return _process == null ? null : QName.valueOf(_process.getProcessId());
}
public ProcessInstanceDAO getInstance(Long iid) {
15 years, 1 month
riftsaw SVN: r278 - in trunk/samples/quickstart/purchase: ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase and 2 other directories.
by riftsaw-commits@lists.jboss.org
Author: alex.guizar(a)jboss.com
Date: 2009-11-18 02:27:22 -0500 (Wed, 18 Nov 2009)
New Revision: 278
Modified:
trunk/samples/quickstart/purchase/build.xml
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/InvoiceCallbackBean.java
trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingCallbackBean.java
trunk/samples/quickstart/purchase/war/resources/WEB-INF/jboss-web.xml
trunk/samples/quickstart/purchase/war/resources/WEB-INF/web.xml
trunk/samples/quickstart/purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ComputePricePT_Impl.java
trunk/samples/quickstart/purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/SchedulingPT_Impl.java
trunk/samples/quickstart/purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingPT_Impl.java
Log:
RIFTSAW-34: correct endpoint class names in web.xml
fix environment references in jboss-web.xml
change file headers to LGPL text
Modified: trunk/samples/quickstart/purchase/build.xml
===================================================================
--- trunk/samples/quickstart/purchase/build.xml 2009-11-18 06:30:12 UTC (rev 277)
+++ trunk/samples/quickstart/purchase/build.xml 2009-11-18 07:27:22 UTC (rev 278)
@@ -19,7 +19,8 @@
<property name="ejb.build.dir" location="build/ejb/classes" />
<path id="compile-classpath">
- <fileset dir="${org.jboss.as.home}/client" includes="*.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">
Modified: trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/InvoiceCallbackBean.java
===================================================================
--- trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/InvoiceCallbackBean.java 2009-11-18 06:30:12 UTC (rev 277)
+++ trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/InvoiceCallbackBean.java 2009-11-18 07:27:22 UTC (rev 278)
@@ -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.samples.quickstart.purchase;
Modified: trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingCallbackBean.java
===================================================================
--- trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingCallbackBean.java 2009-11-18 06:30:12 UTC (rev 277)
+++ trunk/samples/quickstart/purchase/ejb/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingCallbackBean.java 2009-11-18 07:27:22 UTC (rev 278)
@@ -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.samples.quickstart.purchase;
Modified: trunk/samples/quickstart/purchase/war/resources/WEB-INF/jboss-web.xml
===================================================================
--- trunk/samples/quickstart/purchase/war/resources/WEB-INF/jboss-web.xml 2009-11-18 06:30:12 UTC (rev 277)
+++ trunk/samples/quickstart/purchase/war/resources/WEB-INF/jboss-web.xml 2009-11-18 07:27:22 UTC (rev 278)
@@ -4,19 +4,18 @@
<jboss-web>
- <!-- Invoice Service -->
<resource-ref>
- <res-ref-name>jms/connectionFactory</res-ref-name>
+ <res-ref-name>connectionFactory</res-ref-name>
<jndi-name>java:ConnectionFactory</jndi-name>
</resource-ref>
<message-destination-ref>
- <message-destination-ref-name>jms/invoiceQueue</message-destination-ref-name>
+ <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>jms/shippingQueue</message-destination-ref-name>
+ <message-destination-ref-name>shippingQueue</message-destination-ref-name>
<jndi-name>queue/ShippingQueue</jndi-name>
</message-destination-ref>
Modified: trunk/samples/quickstart/purchase/war/resources/WEB-INF/web.xml
===================================================================
--- trunk/samples/quickstart/purchase/war/resources/WEB-INF/web.xml 2009-11-18 06:30:12 UTC (rev 277)
+++ trunk/samples/quickstart/purchase/war/resources/WEB-INF/web.xml 2009-11-18 07:27:22 UTC (rev 278)
@@ -6,33 +6,17 @@
<!-- Invoice Service -->
<servlet>
<servlet-name>invoiceServlet</servlet-name>
- <servlet-class>org.jbpm.bpel.tutorial.invoice.ComputePricePT_Impl</servlet-class>
+ <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>
- <resource-ref>
- <description>The single factory from which endpoint implementation beans
- obtain JMS connections.</description>
- <res-ref-name>jms/connectionFactory</res-ref-name>
- <res-type>javax.jms.ConnectionFactory</res-type>
- <res-auth>Container</res-auth>
- <res-sharing-scope>Shareable</res-sharing-scope>
- </resource-ref>
-
- <message-destination-ref>
- <description>The target for invoice messages.</description>
- <message-destination-ref-name>jms/invoiceQueue</message-destination-ref-name>
- <message-destination-type>javax.jms.Queue</message-destination-type>
- <message-destination-usage>Produces</message-destination-usage>
- </message-destination-ref>
-
<!-- Shipping Service -->
<servlet>
<servlet-name>shippingServlet</servlet-name>
- <servlet-class>org.jbpm.bpel.tutorial.shipping.ShippingPT_Impl</servlet-class>
+ <servlet-class>org.jboss.soa.bpel.samples.quickstart.purchase.ShippingPT_Impl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>shippingServlet</servlet-name>
@@ -46,17 +30,10 @@
<env-entry-value>10.95</env-entry-value>
</env-entry>
- <message-destination-ref>
- <description>The target for shipping messages.</description>
- <message-destination-ref-name>jms/shippingQueue</message-destination-ref-name>
- <message-destination-type>javax.jms.Queue</message-destination-type>
- <message-destination-usage>Produces</message-destination-usage>
- </message-destination-ref>
-
<!-- Production Scheduling Process -->
<servlet>
<servlet-name>schedulingServlet</servlet-name>
- <servlet-class>org.jbpm.bpel.tutorial.scheduling.SchedulingPT_Impl</servlet-class>
+ <servlet-class>org.jboss.soa.bpel.samples.quickstart.purchase.SchedulingPT_Impl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>schedulingServlet</servlet-name>
Modified: trunk/samples/quickstart/purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ComputePricePT_Impl.java
===================================================================
--- trunk/samples/quickstart/purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ComputePricePT_Impl.java 2009-11-18 06:30:12 UTC (rev 277)
+++ trunk/samples/quickstart/purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ComputePricePT_Impl.java 2009-11-18 07:27:22 UTC (rev 278)
@@ -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.samples.quickstart.purchase;
@@ -26,6 +33,7 @@
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;
@@ -55,10 +63,12 @@
public void initiatePriceCalculation(CustomerInfo customerInfo,
PurchaseOrder purchaseOrder) {
MessageContext messageContext = serviceContext.getMessageContext();
- messageContext.put(ORDER_ID_ATTR, purchaseOrder.getOrderId());
+ 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!
- messageContext.put(LINE_PRICE_ATTR, purchaseOrder.getQuantity()
- * purchaseOrder.getPartNumber());
+ servletContext.setAttribute(LINE_PRICE_ATTR,
+ (float) purchaseOrder.getQuantity() * purchaseOrder.getPartNumber());
}
public void sendShippingPrice(ShippingInfo shippingInfo) {
@@ -72,8 +82,10 @@
protected void sendInvoiceMessage(float shippingPrice) throws JMSException {
MessageContext messageContext = serviceContext.getMessageContext();
- Integer orderId = (Integer) messageContext.get(ORDER_ID_ATTR);
- Integer linePrice = (Integer) messageContext.get(LINE_PRICE_ATTR);
+ 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
Modified: trunk/samples/quickstart/purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/SchedulingPT_Impl.java
===================================================================
--- trunk/samples/quickstart/purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/SchedulingPT_Impl.java 2009-11-18 06:30:12 UTC (rev 277)
+++ trunk/samples/quickstart/purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/SchedulingPT_Impl.java 2009-11-18 07:27:22 UTC (rev 278)
@@ -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.samples.quickstart.purchase;
Modified: trunk/samples/quickstart/purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingPT_Impl.java
===================================================================
--- trunk/samples/quickstart/purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingPT_Impl.java 2009-11-18 06:30:12 UTC (rev 277)
+++ trunk/samples/quickstart/purchase/war/src/org/jboss/soa/bpel/samples/quickstart/purchase/ShippingPT_Impl.java 2009-11-18 07:27:22 UTC (rev 278)
@@ -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.samples.quickstart.purchase;
@@ -41,7 +48,7 @@
@Resource
private ConnectionFactory connectionFactory;
@Resource
- private float shippingPrice;
+ private Float shippingPrice;
private final Logger logger =
Logger.getLogger(ShippingPT_Impl.class.getName());
15 years, 1 month
riftsaw SVN: r277 - in trunk: runtime/engine-assembly/resources/META-INF and 1 other directory.
by riftsaw-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-11-18 01:30:12 -0500 (Wed, 18 Nov 2009)
New Revision: 277
Modified:
trunk/distribution/src/main/release/db/datasource/bpel-hsql-ds.xml
trunk/runtime/engine-assembly/resources/META-INF/bpel-ds.xml
Log:
* fix the typo in last commit, and update another one in engine-assembly module.
Modified: trunk/distribution/src/main/release/db/datasource/bpel-hsql-ds.xml
===================================================================
--- trunk/distribution/src/main/release/db/datasource/bpel-hsql-ds.xml 2009-11-17 15:07:35 UTC (rev 276)
+++ trunk/distribution/src/main/release/db/datasource/bpel-hsql-ds.xml 2009-11-18 06:30:12 UTC (rev 277)
@@ -15,7 +15,7 @@
<prepared-statement-cache-size>32</prepared-statement-cache-size>
<depends>jboss:service=h2,database=BPELDB</depends>
</local-tx-datasource>
- <mbean code="rg.jboss.soa.bpel.runtime.db.H2Database"
+ <mbean code="org.jboss.soa.bpel.runtime.db.H2Database"
name="jboss:service=h2,database=BPELDB">
<attribute name="Database">BPELDB</attribute>
<attribute name="DataDir">${jboss.server.data.dir}</attribute>
Modified: trunk/runtime/engine-assembly/resources/META-INF/bpel-ds.xml
===================================================================
--- trunk/runtime/engine-assembly/resources/META-INF/bpel-ds.xml 2009-11-17 15:07:35 UTC (rev 276)
+++ trunk/runtime/engine-assembly/resources/META-INF/bpel-ds.xml 2009-11-18 06:30:12 UTC (rev 277)
@@ -15,7 +15,7 @@
<prepared-statement-cache-size>32</prepared-statement-cache-size>
<depends>jboss:service=h2,database=BPELDB</depends>
</local-tx-datasource>
- <mbean code="org.jboss.internal.soa.esb.dependencies.H2Database"
+ <mbean code="org.jboss.soa.bpel.runtime.db.H2Database"
name="jboss:service=h2,database=BPELDB">
<attribute name="Database">BPELDB</attribute>
<attribute name="DataDir">${jboss.server.data.dir}</attribute>
15 years, 1 month
riftsaw SVN: r276 - in trunk: runtime/engine and 1 other directories.
by riftsaw-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-11-17 10:07:35 -0500 (Tue, 17 Nov 2009)
New Revision: 276
Added:
trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/db/H2Database.java
trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/db/H2DatabaseMBean.java
Modified:
trunk/distribution/src/main/release/db/datasource/bpel-hsql-ds.xml
trunk/runtime/engine/pom.xml
Log:
* port the H2Database from ESB.
Modified: trunk/distribution/src/main/release/db/datasource/bpel-hsql-ds.xml
===================================================================
--- trunk/distribution/src/main/release/db/datasource/bpel-hsql-ds.xml 2009-11-17 14:37:12 UTC (rev 275)
+++ trunk/distribution/src/main/release/db/datasource/bpel-hsql-ds.xml 2009-11-17 15:07:35 UTC (rev 276)
@@ -15,7 +15,7 @@
<prepared-statement-cache-size>32</prepared-statement-cache-size>
<depends>jboss:service=h2,database=BPELDB</depends>
</local-tx-datasource>
- <mbean code="org.jboss.internal.soa.esb.dependencies.H2Database"
+ <mbean code="rg.jboss.soa.bpel.runtime.db.H2Database"
name="jboss:service=h2,database=BPELDB">
<attribute name="Database">BPELDB</attribute>
<attribute name="DataDir">${jboss.server.data.dir}</attribute>
Modified: trunk/runtime/engine/pom.xml
===================================================================
--- trunk/runtime/engine/pom.xml 2009-11-17 14:37:12 UTC (rev 275)
+++ trunk/runtime/engine/pom.xml 2009-11-17 15:07:35 UTC (rev 276)
@@ -122,9 +122,23 @@
<version>${riftsaw.engine.version}</version>
<scope>provided</scope>
</dependency>
+
+ <!-- for H2Database -->
+ <dependency>
+ <groupId>com.h2database</groupId>
+ <artifactId>h2</artifactId>
+ <version>1.0.68</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.client</groupId>
+ <artifactId>jbossall-client</artifactId>
+ <version>4.2.3.GA</version>
+ <scope>provided</scope>
+ </dependency>
-
</dependencies>
Added: trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/db/H2Database.java
===================================================================
--- trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/db/H2Database.java (rev 0)
+++ trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/db/H2Database.java 2009-11-17 15:07:35 UTC (rev 276)
@@ -0,0 +1,593 @@
+/*
+ * 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.runtime.db;
+
+import java.io.File;
+import java.io.IOException;
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.SQLException;
+import java.sql.Statement;
+
+import org.h2.tools.Server;
+import org.jboss.mx.util.MBeanProxyExt;
+import org.jboss.system.ServiceMBeanSupport;
+import org.jboss.system.server.ServerConfig;
+import org.jboss.system.server.ServerConfigImplMBean;
+
+/**
+ * Integration with H2.
+ *
+ * @author <a href="mailto:rickard.oberg@telkel.com">Rickard �berg</a>
+ * @author <a href="mailto:Scott_Stark@displayscape.com">Scott Stark</a>.
+ * @author <a href="mailto:pf@iprobot.com">Peter Fagerlund</a>
+ * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
+ * @author <a href="mailto:vesco.claudio@previnet.it">Claudio Vesco</a>
+ * @author <a href="mailto:dimitris@jboss.org">Dimitris Andreadis</a>
+ * @author <a href="mailto:kevin.conner@jboss.org">Kevin Conner</a>
+ * @author <a href="mailto:dbevenius@redhat.com">Daniel Bevenius</a>
+ * @version $Revision: 27106 $
+ */
+public class H2Database extends ServiceMBeanSupport implements H2DatabaseMBean
+{
+ /** Default password: <code>empty string</code>. */
+ private static final String DEFAULT_PASSWORD = "";
+
+ /** Default user: <code>sa</code>. */
+ private static final String DEFAULT_USER = "sa";
+
+ /** JDBC Driver class: <code>org.h2.Driver</code>. */
+ private static final String JDBC_DRIVER_CLASS = "org.h2.Driver";
+
+ /** JDBC URL common prefix: <code>jdbc:h2:</code>. */
+ private static final String JDBC_URL_PREFIX = "jdbc:h2:";
+
+ /** JDBC in memory URL prefix: <code>jdbc:h2:mem:</code>. */
+ private static final String JDBC_MEM_URL_PREFIX = JDBC_URL_PREFIX + "mem:";
+
+ /** JDBC flags */
+ private static final String DEFAULT_FLAGS = ";MVCC=TRUE;DB_CLOSE_ON_EXIT=FALSE";
+
+ /** Default data subdir: <code>h2</code>. */
+ private static final String H2_DATA_DIR = "h2";
+
+ /** Default database name: <code>default</code>. */
+ private static final String DEFAULT_DATABASE_NAME = "default";
+
+ /** Default address for remote h2: <code>0.0.0.0</code>. */
+ private static final String DEFAULT_ADDRESS = "0.0.0.0";
+
+ /** Default port for remote h2: <code>9092</code>. */
+ private static final int DEFAULT_PORT = 9092;
+
+ /** Default delay for remote hypersonic initialisation (ms): <code>5000</code>. */
+ private static final long DEFAULT_DELAY = 5000;
+
+ // Private Data --------------------------------------------------
+
+ /** Full path to db/h2. */
+ private File dbPath;
+
+ /** Database name. */
+ private String name = DEFAULT_DATABASE_NAME;
+
+ /** In memory mode. */
+ private boolean inMemoryMode ;
+
+ /** Database user. */
+ private String user = DEFAULT_USER;
+
+ /** Database password. */
+ private String password = DEFAULT_PASSWORD;
+
+ /** Database flags */
+ private String flags = DEFAULT_FLAGS ;
+
+ /** Hold a connection for in memory h2. */
+ private Connection connection;
+
+ /** Default address. */
+ private String address = DEFAULT_ADDRESS;
+
+ /** Default port. */
+ private int port = DEFAULT_PORT;
+
+ /** Server/remote mode. */
+ private boolean serverMode = false;
+
+ /** Server thread for remote h2. */
+ private Thread serverThread;
+
+ /** The remote server instance */
+ private Server remoteServer ;
+
+ /** Server thread delay for remote H2. */
+ private long delay = DEFAULT_DELAY ;
+
+ private String datadir;
+
+ // Attributes ----------------------------------------------------
+
+ /**
+ * Set the database name.
+ *
+ * @jmx.managed-attribute
+ */
+ public void setDatabase(String name)
+ {
+ if (name == null)
+ {
+ name = DEFAULT_DATABASE_NAME;
+ }
+ this.name = name;
+ }
+
+ /**
+ * Get the database name.
+ *
+ * @jmx.managed-attribute
+ */
+ public String getDatabase()
+ {
+ return name;
+ }
+
+ /**
+ * Get the full database path.
+ *
+ * @jmx.managed-attribute
+ */
+ public String getDatabasePath()
+ {
+ if (dbPath != null)
+ {
+ return dbPath.toString();
+ }
+ else
+ {
+ return null;
+ }
+ }
+
+ /**
+ * @return the <code>inMemoryMode</code> flag.
+ *
+ * @jmx.managed-attribute
+ */
+ public boolean isInMemoryMode()
+ {
+ return inMemoryMode;
+ }
+
+ /**
+ * If <b>true</b> the h2 is in memory mode otherwise embedded mode.
+ *
+ * @param b in memory mode.
+ *
+ * @jmx.managed-attribute
+ */
+ public void setInMemoryMode( boolean b )
+ {
+ inMemoryMode = b;
+ }
+
+ /**
+ * @return the password
+ *
+ * @jmx.managed-attribute
+ */
+ public String getPassword()
+ {
+ return password;
+ }
+
+ /**
+ * @return the user
+ *
+ * @jmx.managed-attribute
+ */
+ public String getUser()
+ {
+ return user;
+ }
+
+ /**
+ * @return the flags
+ *
+ * @jmx.managed-attribute
+ */
+ public String getFlags()
+ {
+ return flags;
+ }
+
+ /**
+ * @param password
+ *
+ * @jmx.managed-attribute
+ */
+ public void setPassword(String password)
+ {
+ if (password == null)
+ {
+ password = DEFAULT_PASSWORD;
+ }
+ this.password = password;
+ }
+
+ /**
+ * @param user
+ *
+ * @jmx.managed-attribute
+ */
+ public void setUser(String user)
+ {
+ if (user == null)
+ {
+ user = DEFAULT_USER;
+ }
+ this.user = user;
+ }
+
+ /**
+ * @param flags
+ *
+ * @jmx.managed-attribute
+ */
+ public void setFlags(String flags)
+ {
+ if (flags == null)
+ {
+ flags = DEFAULT_FLAGS;
+ }
+ this.flags = flags;
+ }
+
+ /**
+ * @return the serverMode
+ *
+ * @jmx.managed-attribute
+ */
+ public boolean isServerMode()
+ {
+ return serverMode;
+ }
+
+ /**
+ * @param serverMode
+ *
+ * @jmx.managed-attribute
+ */
+ public void setServerMode( boolean serverMode )
+ {
+ this.serverMode = serverMode;
+ }
+
+ /**
+ * @return the address
+ *
+ * @jmx.managed-attribute
+ */
+ public String getBindAddress()
+ {
+ return address;
+ }
+
+ /**
+ * @return the port
+ *
+ * @jmx.managed-attribute
+ */
+ public int getPort()
+ {
+ return port;
+ }
+
+ /**
+ * @param address
+ *
+ * @jmx.managed-attribute
+ */
+ public void setBindAddress(String address)
+ {
+ this.address = address;
+ }
+
+ /**
+ * @param port
+ *
+ * @jmx.managed-attribute
+ */
+ public void setPort(int port)
+ {
+ this.port = port;
+ }
+
+ /**
+ * Set the delay for remote hypersonic initialisation.
+ *
+ * @jmx.managed-attribute
+ */
+ public void setDelay(final long delay)
+ {
+ this.delay = delay;
+ }
+
+ /**
+ * Get the delay for remote hypersonic initialisation.
+ *
+ * @jmx.managed-attribute
+ */
+ public long getDelay()
+ {
+ return delay;
+ }
+
+ // Lifecycle -----------------------------------------------------
+
+ /**
+ * Start the database
+ */
+ protected void startService() throws Exception
+ {
+ if (serverMode)
+ {
+ startRemoteDatabase();
+ }
+ else if (inMemoryMode)
+ {
+ startInMemoryDatabase();
+ }
+ else
+ {
+ startStandaloneDatabase();
+ }
+ }
+
+ /**
+ * We now close the connection clean by calling the
+ * serverSocket throught jdbc. The MBeanServer calls this
+ * method at closing time.
+ */
+ protected void stopService() throws Exception
+ {
+ if (serverMode)
+ {
+ stopRemoteDatabase();
+ }
+ else if (inMemoryMode)
+ {
+ stopInMemoryDatabase();
+ }
+ else
+ {
+ stopStandaloneDatabase();
+ }
+ }
+
+ // Private -------------------------------------------------------
+
+ /**
+ * Start the standalone (in process) database.
+ */
+ private void startStandaloneDatabase() throws Exception
+ {
+ final File h2Dir = checkDataDir() ;
+
+ dbPath = new File(h2Dir, name);
+
+ final String dbURL = JDBC_URL_PREFIX + dbPath.toURI().toString() + flags ;
+ log.info(dbURL);
+
+ // Check we have connectivity
+ connection = getConnection(dbURL);
+ }
+
+ /**
+ * Start the only in memory database.
+ */
+ private void startInMemoryDatabase() throws Exception
+ {
+ final String dbURL = JDBC_MEM_URL_PREFIX + name + flags ;
+
+ // hold a connection so h2 does not close the database
+ connection = getConnection(dbURL);
+ }
+
+ /**
+ * Start a remote/server database
+ * @throws Exception
+ */
+ private void startRemoteDatabase() throws Exception
+ {
+ final File h2Dir = checkDataDir() ;
+ dbPath = new File(h2Dir, name);
+
+ // Start DB in new thread, or else it will block us
+ serverThread = new Thread("h2-" + name)
+ {
+ public void run()
+ {
+ try
+ {
+ log.debug( "Starting remote h2 db with port : " + port );
+ final String[] args = new String[] {
+ "-baseDir", dbPath.getAbsolutePath(),
+ "-tcpPort", String.valueOf(port),
+ "-tcpAllowOthers","" }; // need the extra empty string or a exception is thrown by H2
+ final Server server = Server.createTcpServer(args) ;
+ server.start() ;
+ setRemoteServer(server);
+ }
+ catch (Exception e)
+ {
+ log.error("Failed to start database", e);
+ }
+ }
+ };
+
+ serverThread.start();
+
+ if (delay > 0)
+ {
+ log.debug("Waiting for Database initialisation: maximum " + delay + " milliseconds") ;
+ try
+ {
+ serverThread.join(delay) ;
+ }
+ catch (final InterruptedException ie)
+ {
+ Thread.currentThread().interrupt() ;
+ }
+
+ if (serverThread.isAlive())
+ {
+ log.warn("Database initialisation is still active") ;
+ }
+ else
+ {
+ log.debug("Database initialisation completed") ;
+ }
+ }
+ }
+
+ /**
+ * Stop the standalone (in process) database.
+ */
+ private void stopStandaloneDatabase() throws Exception
+ {
+ try
+ {
+ final Statement stmt = connection.createStatement() ;
+ stmt.execute("shutdown") ;
+ }
+ finally
+ {
+ connection = null;
+ }
+ log.info("Database standalone closed clean");
+ }
+
+ /**
+ * Stop the in memory database.
+ */
+ private void stopInMemoryDatabase() throws Exception
+ {
+ try
+ {
+ connection.close() ;
+ }
+ finally
+ {
+ connection = null;
+ }
+ log.info("Database in memory closed clean");
+ }
+
+ /**
+ * Stop the remote database.
+ */
+ private void stopRemoteDatabase() throws SQLException
+ {
+ final Server server = getRemoteServer() ;
+ if (server != null)
+ {
+ server.stop() ;
+ }
+ }
+
+ /**
+ * Set the remote server instance.
+ * @param remoteServer The remote server instance.
+ */
+ private synchronized void setRemoteServer(final Server remoteServer)
+ {
+ this.remoteServer = remoteServer ;
+ }
+
+ /**
+ * Get the remote server instance.
+ * @return The remote server instance.
+ */
+ private synchronized Server getRemoteServer()
+ {
+ return remoteServer ;
+ }
+
+ /**
+ * Get the connection.
+ *
+ * @param dbURL jdbc url.
+ * @return the connection, allocate one if needed.
+ * @throws Exception
+ */
+ private synchronized Connection getConnection(String dbURL) throws Exception
+ {
+ if (connection == null)
+ {
+ ClassLoader cl = Thread.currentThread().getContextClassLoader();
+ Class.forName(JDBC_DRIVER_CLASS, true, cl).newInstance();
+ connection = DriverManager.getConnection(dbURL, user, password);
+ }
+ return connection;
+ }
+
+ /**
+ * Check the existence of the h2 data directory.
+ * @return The h2 data directory.
+ * @throws IOException For errors checking/creating the h2 data directory.
+ */
+ private File checkDataDir() throws IOException
+ {
+ // Get the server data directory
+ final File dataDir = getDataDir();
+
+ // Get DB directory
+ final File h2Dir = new File(dataDir, H2_DATA_DIR);
+
+ if (!h2Dir.exists())
+ {
+ h2Dir.mkdirs();
+ }
+ else if (!h2Dir.isDirectory())
+ {
+ throw new IOException("Failed to create directory: " + h2Dir);
+ }
+ return h2Dir ;
+ }
+
+ File getDataDir()
+ {
+ if (datadir == null)
+ {
+ final ServerConfig serverConfig = (ServerConfig) MBeanProxyExt.create(ServerConfig.class, ServerConfigImplMBean.OBJECT_NAME);
+ return serverConfig.getServerDataDir();
+ }
+ return new File(datadir);
+ }
+
+ public void setDataDir(String datadir)
+ {
+ this.datadir = datadir;
+ }
+
+}
Added: trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/db/H2DatabaseMBean.java
===================================================================
--- trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/db/H2DatabaseMBean.java (rev 0)
+++ trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/db/H2DatabaseMBean.java 2009-11-17 15:07:35 UTC (rev 276)
@@ -0,0 +1,90 @@
+/*
+ * 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.runtime.db;
+
+import javax.management.ObjectName;
+
+import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.system.ServiceMBean;
+
+/**
+ * MBean interface.
+ *
+ * In all cases we run h2 in the same VM with JBoss.
+ * A few notes on h2 running modes:
+ *
+ * remote (server) mode
+ * h2 can be connected to vid tcp
+ *
+ * in-process (standalone) mode
+ * h2 can only be contacted from in-vm clients
+ *
+ * memory-only mode
+ * h2 will only keep tables in memory, no persistence of data
+ *
+ * @version $Revision: 27106 $
+ */
+public interface H2DatabaseMBean extends ServiceMBean
+{
+ /** The default ObjectName */
+ ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss:service=h2");
+
+ // Attributes ----------------------------------------------------
+
+ /** The database name, default is 'default' */
+ String getDatabase();
+ void setDatabase(String name);
+
+ /** The default user to use when connecting to the DB, default is "sa" */
+ String getUser();
+ void setUser(String user);
+
+ /** The default password to use when connecting to the DB, default is "" */
+ String getPassword();
+ void setPassword(String password);
+
+ /** The full database path */
+ String getDatabasePath();
+
+ /** In memory mode */
+ boolean isInMemoryMode() ;
+ void setInMemoryMode(boolean b) ;
+
+ /** Server/remote mode */
+ boolean isServerMode() ;
+ void setServerMode(boolean mode) ;
+
+ /** The flags to use when connecting to the DB, default is "" */
+ String getFlags();
+ void setFlags(String flags);
+
+ /** The listening port when in remove server mode, default is '9092' */
+ int getPort();
+ void setPort(int port);
+
+ /** The binding address, default is '0.0.0.0' */
+ String getBindAddress();
+ void setBindAddress(String address);
+
+ /** Set the dir that will be used by the database. */
+ void setDataDir(final String datadir);
+}
15 years, 1 month
riftsaw SVN: r275 - in trunk: runtime/engine-assembly and 1 other directory.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2009-11-17 09:37:12 -0500 (Tue, 17 Nov 2009)
New Revision: 275
Modified:
trunk/integration-tests/build.xml
trunk/integration-tests/pom.xml
trunk/runtime/engine-assembly/build.xml
trunk/runtime/engine-assembly/pom.xml
Log:
Pass riftsaw.engine.version property into ant scripts, rather than defining again.
Modified: trunk/integration-tests/build.xml
===================================================================
--- trunk/integration-tests/build.xml 2009-11-17 14:26:39 UTC (rev 274)
+++ trunk/integration-tests/build.xml 2009-11-17 14:37:12 UTC (rev 275)
@@ -1,7 +1,6 @@
<project name="integration-tests" basedir=".">
<property environment="env" />
- <property name="riftsaw.engine.version" value="2.0-SNAPSHOT" />
<property name="replace.qa.jdbc" value="true" />
<property file="${riftsaw.test.deployment.properties}" />
Modified: trunk/integration-tests/pom.xml
===================================================================
--- trunk/integration-tests/pom.xml 2009-11-17 14:26:39 UTC (rev 274)
+++ trunk/integration-tests/pom.xml 2009-11-17 14:37:12 UTC (rev 275)
@@ -169,6 +169,8 @@
<property name="test_classpath" refid="maven.test.classpath" />
<property name="plugin_classpath" refid="maven.plugin.classpath" />
<property name="project.version" value="${project.version}" />
+ <property name="riftsaw.engine.version"
+ value="${riftsaw.engine.version}" />
<property name="dependency.bpel.deployer"
value="${maven.dependency.org.jboss.soa.bpel.runtime.deployer.jar.path}" />
<property name="dependency.bpel.engine"
@@ -204,6 +206,8 @@
<property name="test_classpath" refid="maven.test.classpath" />
<property name="plugin_classpath" refid="maven.plugin.classpath" />
<property name="project.version" value="${project.version}" />
+ <property name="riftsaw.engine.version"
+ value="${riftsaw.engine.version}" />
<property name="dependency.bpel.deployer"
value="${maven.dependency.org.jboss.soa.bpel.runtime.deployer.jar.path}" />
<property name="dependency.bpel.engine"
Modified: trunk/runtime/engine-assembly/build.xml
===================================================================
--- trunk/runtime/engine-assembly/build.xml 2009-11-17 14:26:39 UTC (rev 274)
+++ trunk/runtime/engine-assembly/build.xml 2009-11-17 14:37:12 UTC (rev 275)
@@ -1,7 +1,5 @@
<project name="engine-assembly" default="package-bpel" basedir=".">
- <property name="riftsaw.engine.version" value="2.0-SNAPSHOT" />
-
<target name="unzip-ode">
<mkdir dir="${basedir}/target/ode-distro"/>
<echo>${local.repo}</echo>
@@ -18,7 +16,7 @@
<include name="riftsaw-dao-jpa*.jar" />
<include name="axis2-spring-*.jar" />
<include name="axis2-saaj-api-*.jar" />
- <!-- Required for ODE1.3.3
+ <!-- Required for ODE2.0
<include name="saxon-xqj-*.jar" />
-->
<include name="woden-impl-dom-*.jar" />
Modified: trunk/runtime/engine-assembly/pom.xml
===================================================================
--- trunk/runtime/engine-assembly/pom.xml 2009-11-17 14:26:39 UTC (rev 274)
+++ trunk/runtime/engine-assembly/pom.xml 2009-11-17 14:37:12 UTC (rev 275)
@@ -56,6 +56,8 @@
<property name="plugin_classpath" refid="maven.plugin.classpath" />
<property name="project.version" value="${project.version}" />
<property name="local.repo" value="${settings.localRepository}" />
+ <property name="riftsaw.engine.version"
+ value="${riftsaw.engine.version}" />
<property name="dependency.bpel.deployer"
value="${maven.dependency.org.jboss.soa.bpel.runtime.deployer.jar.path}" />
<property name="dependency.bpel.engine"
15 years, 1 month
riftsaw SVN: r274 - in trunk: distribution/src/main/assembly and 4 other directories.
by riftsaw-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-11-17 09:26:39 -0500 (Tue, 17 Nov 2009)
New Revision: 274
Added:
trunk/distribution/src/main/assembly/src.xml
trunk/qa/jdbc/
trunk/qa/jdbc/derby.properties
trunk/qa/jdbc/hsql.properties
trunk/qa/jdbc/mysql.properties
trunk/qa/jdbc/oracle.properties
trunk/qa/jdbc/postgres.properties
trunk/qa/jdbc/sqlserver.properties
Modified:
trunk/distribution/pom.xml
trunk/distribution/src/main/release/db/jdbc/mysql.properties
trunk/distribution/src/main/release/db/jdbc/oracle.properties
trunk/distribution/src/main/release/db/jdbc/postgres.properties
trunk/distribution/src/main/release/db/jdbc/sqlserver.properties
trunk/integration-tests/build.xml
trunk/qa/build.xml
trunk/qa/hudson-riftsaw-db.sh
trunk/qa/hudson-riftsaw-jboss.sh
trunk/qa/hudson-riftsaw-jdk5.sh
trunk/qa/hudson-riftsaw-ws.sh
Log:
* added assembly script for source distribution.
* using dummy data in distribution, while put qa's jdbc files in qa module.
Modified: trunk/distribution/pom.xml
===================================================================
--- trunk/distribution/pom.xml 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/distribution/pom.xml 2009-11-17 14:26:39 UTC (rev 274)
@@ -41,7 +41,6 @@
<postgresql.version>8.3-603.jdbc3</postgresql.version>
<jtds.version>1.2.2</jtds.version>
<derby.version>10.4.1.3</derby.version>
- <oracle.version>10.2.0.4</oracle.version>
</properties>
<dependencies>
@@ -141,7 +140,6 @@
</dependencies>
<build>
- <finalName>riftsaw-${project.version}</finalName>
<resources>
</resources>
<plugins>
@@ -156,12 +154,29 @@
<goal>single</goal>
</goals>
<configuration>
+ <finalName>riftsaw-${project.version}</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/bin.xml</descriptor>
</descriptors>
<tarLongFileMode>gnu</tarLongFileMode>
</configuration>
</execution>
+ <execution>
+ <id>distribution-package-source</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <finalName>riftsaw-${project.version}-src</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+ <descriptor>src/main/assembly/src.xml</descriptor>
+ </descriptors>
+ <tarLongFileMode>gnu</tarLongFileMode>
+ </configuration>
+ </execution>
</executions>
</plugin>
Added: trunk/distribution/src/main/assembly/src.xml
===================================================================
--- trunk/distribution/src/main/assembly/src.xml (rev 0)
+++ trunk/distribution/src/main/assembly/src.xml 2009-11-17 14:26:39 UTC (rev 274)
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2008
+-->
+<assembly>
+ <!-- id typically identifies the "type" (src vs bin etc) of the assembly -->
+ <id>src</id>
+ <includeBaseDirectory>true</includeBaseDirectory>
+ <formats>
+ <format>zip</format>
+ </formats>
+
+ <fileSets>
+ <fileSet>
+ <directory>../console</directory>
+ <outputDirectory>/console</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>../distribution</directory>
+ <outputDirectory>/distribution</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>../docs</directory>
+ <outputDirectory>/docs</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>../integration-tests</directory>
+ <outputDirectory>/integration-tests</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>../runtime</directory>
+ <outputDirectory>/runtime</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>../samples</directory>
+ <outputDirectory>/samples</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>..</directory>
+ <outputDirectory>/</outputDirectory>
+ <includes>
+ <include>pom.xml</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+
+</assembly>
Modified: trunk/distribution/src/main/release/db/jdbc/mysql.properties
===================================================================
--- trunk/distribution/src/main/release/db/jdbc/mysql.properties 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/distribution/src/main/release/db/jdbc/mysql.properties 2009-11-17 14:26:39 UTC (rev 274)
@@ -1,5 +1,5 @@
-connection.url=jdbc:mysql://vmg08.mw.lab.eng.bos.redhat.com:3306/riftsaw
+connection.url=jdbc:mysql://localhost:3306/riftsaw
driver=com.mysql.jdbc.Driver
username=riftsaw
-password=rsqapwd
+password=riftsaw
dialect=org.hibernate.dialect.MySQLInnoDBDialect
\ No newline at end of file
Modified: trunk/distribution/src/main/release/db/jdbc/oracle.properties
===================================================================
--- trunk/distribution/src/main/release/db/jdbc/oracle.properties 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/distribution/src/main/release/db/jdbc/oracle.properties 2009-11-17 14:26:39 UTC (rev 274)
@@ -1,5 +1,5 @@
-connection.url=jdbc:oracle:thin:@vmg05.mw.lab.eng.bos.redhat.com:1521:qaora10
+connection.url=jdbc:oracle:thin:@localhost:1521:riftsaw
driver=oracle.jdbc.driver.OracleDriver
username=riftsaw
-password=rsqapwd
+password=riftsaw
dialect=org.hibernate.dialect.Oracle9Dialect
\ No newline at end of file
Modified: trunk/distribution/src/main/release/db/jdbc/postgres.properties
===================================================================
--- trunk/distribution/src/main/release/db/jdbc/postgres.properties 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/distribution/src/main/release/db/jdbc/postgres.properties 2009-11-17 14:26:39 UTC (rev 274)
@@ -1,5 +1,5 @@
-connection.url=jdbc:postgresql://vmg01.mw.lab.eng.bos.redhat.com/riftsaw
+connection.url=jdbc:postgresql://localhost/riftsaw
driver=org.postgresql.Driver
username=riftsaw
-password=rsqapwd
+password=riftsaw
dialect=org.hibernate.dialect.PostgreSQLDialect
\ No newline at end of file
Modified: trunk/distribution/src/main/release/db/jdbc/sqlserver.properties
===================================================================
--- trunk/distribution/src/main/release/db/jdbc/sqlserver.properties 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/distribution/src/main/release/db/jdbc/sqlserver.properties 2009-11-17 14:26:39 UTC (rev 274)
@@ -1,5 +1,5 @@
-connection.url=jdbc:jtds:sqlserver://vmg04.mw.lab.eng.bos.redhat.com:1433/riftsaw
+connection.url=jdbc:jtds:sqlserver://localhost:1433/riftsaw
driver=net.sourceforge.jtds.jdbc.Driver
username=riftsaw
-password=rsqapwd
+password=riftsaw
dialect=org.hibernate.dialect.SQLServerDialect
\ No newline at end of file
Modified: trunk/integration-tests/build.xml
===================================================================
--- trunk/integration-tests/build.xml 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/integration-tests/build.xml 2009-11-17 14:26:39 UTC (rev 274)
@@ -2,18 +2,32 @@
<property environment="env" />
<property name="riftsaw.engine.version" value="2.0-SNAPSHOT" />
+ <property name="replace.qa.jdbc" value="true" />
<property file="${riftsaw.test.deployment.properties}" />
<condition property="is.ojdbc.available">
<available file="${basedir}/../distribution/target/libs/ojdbc14.jar" />
</condition>
+
+ <condition property="is.replace.qa.jdbc">
+ <equals arg1="true" arg2="${replace.qa.jdbc}" />
+ </condition>
<target name="copy.ojdbc" if="is.ojdbc.available">
<copy file="${basedir}/../distribution/target/libs/ojdbc14.jar"
todir="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/db/drivers"/>
</target>
+ <target name="replace.jdbc.files" if="is.replace.qa.jdbc">
+ <echo>Replacing the QA's Lab jdbc files</echo>
+ <copy todir="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/db/jdbc">
+ <fileset dir="${basedir}/../qa/jdbc">
+ <include name="*.properties" />
+ </fileset>
+ </copy>
+ </target>
+
<target name="unpack-distribution">
<mkdir dir="${basedir}/../distribution/target/dist"/>
<unzip dest="${basedir}/../distribution/target/dist" src="${basedir}/../distribution/target/riftsaw-${riftsaw.engine.version}.zip"/>
@@ -22,7 +36,8 @@
</target>
<target name="deploy-riftsaw" >
- <ant antfile="build.xml"
+ <antcall target="replace.jdbc.files" />
+ <ant antfile="build.xml"
target="deploy"
dir="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/install">
<property name="org.jboss.as.home" value="${org.jboss.as.home}" />
Modified: trunk/qa/build.xml
===================================================================
--- trunk/qa/build.xml 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/qa/build.xml 2009-11-17 14:26:39 UTC (rev 274)
@@ -31,13 +31,15 @@
<property name="org.jboss.as.config" value="default" />
<property name="ojdbc.url" value="http://www.qa.jboss.com/jdbc-drivers/maven2/com/oracle/ojdbc14/10.0.2.0/o..."/>
-
+ <property name="replace.qa.jdbc" value="true" />
+
+ <echo message="===============================" />
<echo message="database.......... ${database}" />
<echo message="riftsaw.version...... ${riftsaw.version}" />
<echo message="riftsaw.home......... ${riftsaw.home}" />
<echo message="jbossesb.home.. ${jboss.home}" />
+ <echo message="===============================" />
-
<condition property="is.jboss.distro.available">
<available file="${jboss.distro.path}" />
</condition>
@@ -48,6 +50,10 @@
<condition property="is.oracle">
<equals arg1="oracle" arg2="${database}"/>
</condition>
+
+ <condition property="is.replace.qa.jdbc">
+ <equals arg1="true" arg2="${replace.qa.jdbc}" />
+ </condition>
<!-- remove the riftsaw.home -->
<target name="clean"
@@ -82,6 +88,7 @@
</ant>
<antcall target="get.ojdbc" />
+
</target>
<!-- ### INSTALL RiftSaw into JBossESB ################################################## -->
@@ -122,7 +129,9 @@
<!-- ### Install and Cleanup DB ###################################################### -->
<target name="unpack-riftsaw">
<unzip dest="../distribution/target" src="../distribution/target/riftsaw-${riftsaw.version}.zip"/>
+ <antcall target="replace.jdbc.files" />
</target>
+
<target name="drop.riftsaw.schema" depends="unpack-riftsaw">
<echo>clean the riftsaw database schema...</echo>
<ant dir="../distribution/target/riftsaw-${riftsaw.version}/db" target="drop.riftsaw.schema" >
@@ -130,6 +139,15 @@
</ant>
</target>
+ <target name="replace.jdbc.files" if="is.replace.qa.jdbc">
+ <echo>Replacing the QA's Lab jdbc files</echo>
+ <copy todir="${basedir}/../distribution/target/riftsaw-${riftsaw.engine.version}/db/jdbc">
+ <fileset dir="${basedir}/../qa/jdbc">
+ <include name="*.properties" />
+ </fileset>
+ </copy>
+ </target>
+
<target name="stop-server" >
<echo>Stopping the server</echo>
<echo>Server is at ${org.jboss.as.home}</echo>
Modified: trunk/qa/hudson-riftsaw-db.sh
===================================================================
--- trunk/qa/hudson-riftsaw-db.sh 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/qa/hudson-riftsaw-db.sh 2009-11-17 14:26:39 UTC (rev 274)
@@ -3,34 +3,31 @@
# Run Riftsaw Integration tests.
MAVEN_OPTS="-Xms512M -Xmx1024M"
+
RIFTSAW_PARENT_DIR="$WORKSPACE"
+
JBOSS_VERSION="5.1.0.GA"
+RIFTSAW_VERSION="2.0-SNAPSHOT"
+AS_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
+AS_CONFIG="default"
+REPLACE_QA_JDBC="true"
-ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE"
+ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE -Dreplace.qa.jdbc=$REPLACE_QA_JDBC -Dorg.jboss.as.home=$AS_HOME -Dorg.jboss.as.config=$AS_CONFIG"
echo ANT_PROPERTIES=${ANT_PROPERTIES}
-# firstly build the Riftsaw and run unit tests
-echo build RiftSaw and running unit test
+#build RiftSaw and running unit tests
cd ..
mvn clean install
-# run integration test
-echo cleanup the RiftSaw HOME
+#cleanup the RiftSaw HOME
cd qa
+ant $ANT_PROPERTIES stop-server
ant $ANT_PROPERTIES clean
ant $ANT_PROPERTIES install.jbossesb
# clean up the database
-echo clean up the database
-
ant $ANT_PROPERTIES drop.riftsaw.schema
-RIFTSAW_VERSION="2.0-SNAPSHOT"
-AS_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
-AS_CONFIG="default"
-
-echo build the RiftSaw and run integration tests
-echo AS_HOME=$AS_HOME, AS_CONIFG=$AS_CONFIG
-
+#build the RiftSaw and run integration tests
cd ../integration-tests
-mvn -Dorg.jboss.as.home=$AS_HOME -Dorg.jboss.as.config=$AS_CONFIG -Ddatabase=$DATABASE clean install
+mvn $ANT_PROPERTIES clean install
Modified: trunk/qa/hudson-riftsaw-jboss.sh
===================================================================
--- trunk/qa/hudson-riftsaw-jboss.sh 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/qa/hudson-riftsaw-jboss.sh 2009-11-17 14:26:39 UTC (rev 274)
@@ -3,30 +3,29 @@
# Run Riftsaw Integration tests.
MAVEN_OPTS="-Xms512M -Xmx1024M"
+
RIFTSAW_PARENT_DIR="$WORKSPACE"
+
JBOSS_VERSION="5.1.0.GA"
-#DATABASE="hsql"
+RIFTSAW_VERSION="2.0-SNAPSHOT"
+AS_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
+AS_CONFIG="default"
+REPLACE_QA_JDBC="true"
-ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE"
+ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE -Dreplace.qa.jdbc=$REPLACE_QA_JDBC -Dorg.jboss.as.home=$AS_HOME -Dorg.jboss.as.config=$AS_CONFIG"
echo ANT_PROPERTIES=${ANT_PROPERTIES}
-# firstly build the Riftsaw and run unit tests
-echo build RiftSaw and running unit test
+# build RiftSaw and running unit test
cd ..
mvn clean install
# run integration test
-echo cleanup the RiftSaw HOME
cd qa
+ant $ANT_PROPERTIES stop-server
ant $ANT_PROPERTIES clean
ant $ANT_PROPERTIES install.jbossesb
-RIFTSAW_VERSION="2.0-SNAPSHOT"
-AS_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
-AS_CONFIG="default"
+# build the RiftSaw and run integration tests
-echo build the RiftSaw and run integration tests
-echo AS_HOME=$AS_HOME, AS_CONIFG=$AS_CONFIG
-
cd ../integration-tests
-mvn -Dorg.jboss.as.home=$AS_HOME -Dorg.jboss.as.config=$AS_CONFIG -Ddatabase=$DATABASE clean install
+mvn $ANT_PROPERTIES clean install
Modified: trunk/qa/hudson-riftsaw-jdk5.sh
===================================================================
--- trunk/qa/hudson-riftsaw-jdk5.sh 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/qa/hudson-riftsaw-jdk5.sh 2009-11-17 14:26:39 UTC (rev 274)
@@ -3,36 +3,31 @@
# Run Riftsaw Integration tests.
MAVEN_OPTS="-Xms512M -Xmx1024M"
+
RIFTSAW_PARENT_DIR="$WORKSPACE"
JBOSS_VERSION="5.1.0.GA"
DATABASE="hsql"
JBOSS_FILENAME="jboss-$JBOSS_VERSION.zip"
+REPLACE_QA_JDBC="true"
+RIFTSAW_VERSION="2.0-SNAPSHOT"
+AS_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
+AS_CONFIG="default"
+WS_STACK_DIR="$RIFTSAW_PARENT_DIR/downloads"
-ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE -Djboss.filename=$JBOSS_FILENAME"
+
+ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE -Djboss.filename=$JBOSS_FILENAME -Dreplace.qa.jdbc=$REPLACE_QA_JDBC -Dorg.jboss.as.home=$AS_HOME -Dorg.jboss.as.config=$AS_CONFIG -Dws.stack.dir=$WS_STACK_DIR"
echo ANT_PROPERTIES=${ANT_PROPERTIES}
-# firstly build the Riftsaw and run unit tests
-echo build RiftSaw and running unit test
+# build RiftSaw and running unit test
cd ..
mvn clean install
# run integration test
-echo cleanup the RiftSaw HOME
cd qa
+ant $ANT_PROPERTIES stop-server
ant $ANT_PROPERTIES clean
ant $ANT_PROPERTIES install.jbossesb
-# clean up the database (no need for hsql)
-echo clean up the database
-#ant $ANT_PROPERTIES drop.riftsaw.schema
-
-RIFTSAW_VERSION="2.0-SNAPSHOT"
-AS_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
-AS_CONFIG="default"
-WS_STACK_DIR="$RIFTSAW_PARENT_DIR/downloads"
-
-echo build the RiftSaw and run integration tests
-echo AS_HOME=$AS_HOME, AS_CONIFG=$AS_CONFIG WS_STACK_DIR=$WS_STACK_DIR WS_STACK=$WS_STACK
-
+#build the RiftSaw and run integration tests
cd ../integration-tests
-mvn -Dorg.jboss.as.home=$AS_HOME -Dorg.jboss.as.config=$AS_CONFIG -Ddatabase=$DATABASE -Dws.stack.dir=$WS_STACK_DIR clean install
+mvn $ANT_PROPERTIES clean install
Modified: trunk/qa/hudson-riftsaw-ws.sh
===================================================================
--- trunk/qa/hudson-riftsaw-ws.sh 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/qa/hudson-riftsaw-ws.sh 2009-11-17 14:26:39 UTC (rev 274)
@@ -6,32 +6,25 @@
RIFTSAW_PARENT_DIR="$WORKSPACE"
JBOSS_VERSION="5.1.0.GA"
DATABASE="hsql"
+RIFTSAW_VERSION="2.0-SNAPSHOT"
+AS_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
+AS_CONFIG="default"
+WS_STACK_DIR="$RIFTSAW_PARENT_DIR/downloads"
+REPLACE_QA_JDBC="true"
-ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE"
+ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE -Dreplace.qa.jdbc=$REPLACE_QA_JDBC -Dorg.jboss.as.home=$AS_HOME -Dorg.jboss.as.config=$AS_CONFIG -Dws.stack=$WS_STACK -Dws.stack.dir=$WS_STACK_DIR"
echo ANT_PROPERTIES=${ANT_PROPERTIES}
-# firstly build the Riftsaw and run unit tests
-echo build RiftSaw and running unit test
+#build RiftSaw and running unit test
cd ..
mvn clean install
# run integration test
-echo cleanup the RiftSaw HOME
cd qa
+ant $ANT_PROPERTIES stop-server
ant $ANT_PROPERTIES clean
ant $ANT_PROPERTIES install.jbossesb
-# clean up the database (no need for hsql)
-echo clean up the database
-#ant $ANT_PROPERTIES drop.riftsaw.schema
-
-RIFTSAW_VERSION="2.0-SNAPSHOT"
-AS_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
-AS_CONFIG="default"
-WS_STACK_DIR="$RIFTSAW_PARENT_DIR/downloads"
-
-echo build the RiftSaw and run integration tests
-echo AS_HOME=$AS_HOME, AS_CONIFG=$AS_CONFIG WS_STACK_DIR=$WS_STACK_DIR WS_STACK=$WS_STACK
-
+# build the RiftSaw and run integration tests
cd ../integration-tests
-mvn -Dorg.jboss.as.home=$AS_HOME -Dorg.jboss.as.config=$AS_CONFIG -Ddatabase=$DATABASE -Dws.stack=$WS_STACK -Dws.stack.dir=$WS_STACK_DIR clean install
+mvn $ANT_PROPERTIES clean install
Added: trunk/qa/jdbc/derby.properties
===================================================================
--- trunk/qa/jdbc/derby.properties (rev 0)
+++ trunk/qa/jdbc/derby.properties 2009-11-17 14:26:39 UTC (rev 274)
@@ -0,0 +1,5 @@
+connection.url=jdbc:derby:${jboss.server.data.dir}${/}derby${/}BPELDB;create=true
+driver=org.apache.derby.jdbc.EmbeddedDriver
+username=sa
+password=
+dialect=org.hibernate.dialect.DerbyDialect
\ No newline at end of file
Added: trunk/qa/jdbc/hsql.properties
===================================================================
--- trunk/qa/jdbc/hsql.properties (rev 0)
+++ trunk/qa/jdbc/hsql.properties 2009-11-17 14:26:39 UTC (rev 274)
@@ -0,0 +1,5 @@
+connection.url=jdbc:h2:${jboss.server.data.dir}${/}h2${/}BPELDB
+driver=org.h2.Driver
+username=sa
+password=
+dialect=org.hibernate.dialect.H2Dialect
Added: trunk/qa/jdbc/mysql.properties
===================================================================
--- trunk/qa/jdbc/mysql.properties (rev 0)
+++ trunk/qa/jdbc/mysql.properties 2009-11-17 14:26:39 UTC (rev 274)
@@ -0,0 +1,5 @@
+connection.url=jdbc:mysql://vmg08.mw.lab.eng.bos.redhat.com:3306/riftsaw
+driver=com.mysql.jdbc.Driver
+username=riftsaw
+password=rsqapwd
+dialect=org.hibernate.dialect.MySQLInnoDBDialect
\ No newline at end of file
Added: trunk/qa/jdbc/oracle.properties
===================================================================
--- trunk/qa/jdbc/oracle.properties (rev 0)
+++ trunk/qa/jdbc/oracle.properties 2009-11-17 14:26:39 UTC (rev 274)
@@ -0,0 +1,5 @@
+connection.url=jdbc:oracle:thin:@vmg05.mw.lab.eng.bos.redhat.com:1521:qaora10
+driver=oracle.jdbc.driver.OracleDriver
+username=riftsaw
+password=rsqapwd
+dialect=org.hibernate.dialect.Oracle9Dialect
\ No newline at end of file
Added: trunk/qa/jdbc/postgres.properties
===================================================================
--- trunk/qa/jdbc/postgres.properties (rev 0)
+++ trunk/qa/jdbc/postgres.properties 2009-11-17 14:26:39 UTC (rev 274)
@@ -0,0 +1,5 @@
+connection.url=jdbc:postgresql://vmg01.mw.lab.eng.bos.redhat.com/riftsaw
+driver=org.postgresql.Driver
+username=riftsaw
+password=rsqapwd
+dialect=org.hibernate.dialect.PostgreSQLDialect
\ No newline at end of file
Added: trunk/qa/jdbc/sqlserver.properties
===================================================================
--- trunk/qa/jdbc/sqlserver.properties (rev 0)
+++ trunk/qa/jdbc/sqlserver.properties 2009-11-17 14:26:39 UTC (rev 274)
@@ -0,0 +1,5 @@
+connection.url=jdbc:jtds:sqlserver://vmg04.mw.lab.eng.bos.redhat.com:1433/riftsaw
+driver=net.sourceforge.jtds.jdbc.Driver
+username=riftsaw
+password=rsqapwd
+dialect=org.hibernate.dialect.SQLServerDialect
\ No newline at end of file
15 years, 1 month