[jboss-svn-commits] JBL Code SVN: r11511 - in labs/jbossesb/trunk/product/samples/quickstarts: webservice_bpel and 17 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Apr 30 10:22:31 EDT 2007
Author: tfennelly
Date: 2007-04-30 10:22:31 -0400 (Mon, 30 Apr 2007)
New Revision: 11511
Added:
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Address.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/CancelOrder.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Contact.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/CustomerOrder.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Item.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderHeader.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderInquiry.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderManager.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderManagerBean.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Party.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/RetailerCallback.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/SalesOrderFault.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/SalesOrderNotification.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/Shipping.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/ShippingBean.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/ShippingRequest.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/ShippingResponse.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/esb/
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/esb/quickstarts/
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/esb/quickstarts/bpel/
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/esb/quickstarts/bpel/OrderManagerService.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/esb/quickstarts/bpel/ShipperService.java
Removed:
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/com/activebpel/
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/soa/esb/samples/quickstart/bpel/
Modified:
labs/jbossesb/trunk/product/samples/quickstarts/conf/base-build.xml
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/build.xml
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/jbmq-service.xml
Log:
BPEL webservice sample updates
Modified: labs/jbossesb/trunk/product/samples/quickstarts/conf/base-build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/conf/base-build.xml 2007-04-30 14:19:10 UTC (rev 11510)
+++ labs/jbossesb/trunk/product/samples/quickstarts/conf/base-build.xml 2007-04-30 14:22:31 UTC (rev 11511)
@@ -98,7 +98,7 @@
<fail />
</target>
- <target name="deploy" depends="compile,config">
+ <target name="deploy" depends="config">
<description>deploy will deploy the Quickstart .esb archive to JBoss ESB Server
</description>
<echo>Deploying Quickstart to JBoss ESB/App Server...</echo>
@@ -110,9 +110,9 @@
</copy>
<antcall target="quickstart-specific-assemblies" />
-
- <antcall target="jar" />
-
+
+ <antcall target="package-deployment" />
+
<antcall target="deploy-esb-archive-before" />
<antcall target="quickstart-specific-deploys" />
<antcall target="deploy-esb-archive-after" />
@@ -125,20 +125,21 @@
<echo message='******************' />
</target>
-
- <target name="jar" depends="compile">
- <jar destfile="${build.dir}/${ant.project.name}.esb">
- <fileset dir="${build.dir}/classes" />
- <fileset dir="${build.dir}" includes="*.jar,*.war"/>
- <fileset dir="${build.dir}" includes="deployment.xml"/>
- <fileset dir="${build.dir}" includes="META-INF/**" />
- <fileset dir="${basedir}/src" excludes="**/*.java" /> <!-- Please leave the src dir in here! -->
- <fileset dir="${basedir}" includes="jbm-queue-service.xml"/>
- <fileset dir="${basedir}" includes="${additional.deploys}" excludes="build/**" />
+
+ <target name="package-deployment" depends="compile">
+ <jar destfile="${build.dir}/${ant.project.name}.esb">
+ <fileset dir="${build.dir}/classes" />
+ <fileset dir="${build.dir}" includes="*.jar,*.war"/>
+ <fileset dir="${build.dir}" includes="deployment.xml"/>
+ <fileset dir="${build.dir}" includes="META-INF/**" />
+ <fileset dir="${basedir}/src" excludes="**/*.java" /> <!-- Please leave the src dir in here! -->
+ <fileset dir="${basedir}" includes="jbm-queue-service.xml"/>
+ <fileset dir="${basedir}" includes="${additional.deploys}" excludes="build/**" />
+ <fileset dir="${basedir}/lib" includes="*.jar"/>
</jar>
- </target>
+ </target>
- <target name="undeploy">
+ <target name="undeploy">
<description> undeploy will undeploy the Quickstart .esb archive from JBoss ESB Server
</description>
<delete file="${org.jboss.esb.server.deploy.dir}/${ant.project.name}.esb" quiet="false"/>
Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/build.xml 2007-04-30 14:19:10 UTC (rev 11510)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/build.xml 2007-04-30 14:22:31 UTC (rev 11511)
@@ -1,15 +1,25 @@
<project name="Quickstart_webservice_bpel" default="deploy" basedir=".">
- <property name="additional.deploys" value="jbmq-service.xml,groovy/**"/>
+ <property name="additional.deploys" value="jbmq-service.xml,jbossesb-properties.xml,groovy/**"/>
<!-- Import the base Ant build script... -->
<import file="../conf/base-build.xml"/>
<target name="compile">
- <mkdir dir="${classes}" />
+ <!-- Build the EJB Services (the webservice-unaware target services) -->
+ <antcall target="build-ejb-service">
+ <param name="servicename" value="order-manager" />
+ </antcall>
+ <antcall target="build-ejb-service">
+ <param name="servicename" value="shipping" />
+ </antcall>
+
+ <!-- Build the webservice wrappers -->
+ <mkdir dir="${classes}" />
<javac srcdir="src" destdir="${classes}">
<classpath>
<path refid="compile-classpath" />
+ <fileset dir="${build.dir}" includes="order-manager-types.jar,shipping-types.jar"/>
<fileset dir="${org.jboss.esb.server.home}/client" includes="jbossws-client.jar,jboss-remoting.jar"/>
</classpath>
</javac>
@@ -30,4 +40,27 @@
</war>
</target>
+ <target name="quickstart-specific-deploys">
+ <copy file="${build.dir}/order-manager/order-manager-service.jar" overwrite="true" todir="${org.jboss.esb.server.deploy.dir}" />
+ <copy file="${build.dir}/shipping/shipping-service.jar" overwrite="true" todir="${org.jboss.esb.server.deploy.dir}" />
+ </target>
+
+ <target name="build-ejb-service">
+ <delete dir="${build.dir}/${servicename}" />
+ <mkdir dir="${build.dir}/${servicename}" />
+ <javac srcdir="services/${servicename}/src" destdir="${build.dir}/${servicename}">
+ <classpath>
+ <path refid="compile-classpath" />
+ <fileset dir="${org.jboss.esb.server.home}/client" includes="*.jar"/>
+ </classpath>
+ </javac>
+ <!-- Jar the service types. -->
+ <jar basedir="${build.dir}/${servicename}" destfile="${build.dir}/${servicename}-types.jar" excludes="**/*Bean.class" />
+ <!-- Jar the service. -->
+ <jar destfile="${build.dir}/${servicename}/${servicename}-service.jar">
+ <fileset dir="${build.dir}" includes="${servicename}-types.jar"/>
+ <fileset dir="${build.dir}/${servicename}" includes="**/*Bean.class"/>
+ </jar>
+ </target>
+
</project>
\ No newline at end of file
Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/jbmq-service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/jbmq-service.xml 2007-04-30 14:19:10 UTC (rev 11510)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/jbmq-service.xml 2007-04-30 14:22:31 UTC (rev 11511)
@@ -18,4 +18,9 @@
jboss.mq:service=DestinationManager
</depends>
</mbean>
+
+ <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
+ <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
+ </loader-repository>
+
</server>
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Address.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Address.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Address.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,56 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Apr 27 12:51:17 BST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package com.activebpel.ordermanagement;
+
+import java.io.Serializable;
+
+
+public class Address implements Serializable {
+
+protected java.lang.String street1;
+
+protected java.lang.String street2;
+
+protected java.lang.String city;
+
+protected java.lang.String state;
+
+protected java.lang.String zip;
+public Address(){}
+
+public Address(java.lang.String street1, java.lang.String street2, java.lang.String city, java.lang.String state, java.lang.String zip){
+this.street1=street1;
+this.street2=street2;
+this.city=city;
+this.state=state;
+this.zip=zip;
+}
+public java.lang.String getStreet1() { return street1 ;}
+
+public void setStreet1(java.lang.String street1){ this.street1=street1; }
+
+public java.lang.String getStreet2() { return street2 ;}
+
+public void setStreet2(java.lang.String street2){ this.street2=street2; }
+
+public java.lang.String getCity() { return city ;}
+
+public void setCity(java.lang.String city){ this.city=city; }
+
+public java.lang.String getState() { return state ;}
+
+public void setState(java.lang.String state){ this.state=state; }
+
+public java.lang.String getZip() { return zip ;}
+
+public void setZip(java.lang.String zip){ this.zip=zip; }
+
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Address.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/CancelOrder.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/CancelOrder.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/CancelOrder.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,28 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Apr 27 12:51:17 BST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package com.activebpel.ordermanagement;
+
+import java.io.Serializable;
+
+
+public class CancelOrder implements Serializable {
+
+protected com.activebpel.ordermanagement.OrderInquiry orderInquiry;
+public CancelOrder(){}
+
+public CancelOrder(com.activebpel.ordermanagement.OrderInquiry orderInquiry){
+this.orderInquiry=orderInquiry;
+}
+public com.activebpel.ordermanagement.OrderInquiry getOrderInquiry() { return orderInquiry ;}
+
+public void setOrderInquiry(com.activebpel.ordermanagement.OrderInquiry orderInquiry){ this.orderInquiry=orderInquiry; }
+
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/CancelOrder.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Contact.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Contact.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Contact.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,49 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Apr 27 12:51:17 BST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package com.activebpel.ordermanagement;
+
+import java.io.Serializable;
+
+
+public class Contact implements Serializable {
+
+protected java.lang.String name;
+
+protected java.lang.String phone;
+
+protected java.lang.String fax;
+
+protected java.lang.String email;
+public Contact(){}
+
+public Contact(java.lang.String name, java.lang.String phone, java.lang.String fax, java.lang.String email){
+this.name=name;
+this.phone=phone;
+this.fax=fax;
+this.email=email;
+}
+public java.lang.String getName() { return name ;}
+
+public void setName(java.lang.String name){ this.name=name; }
+
+public java.lang.String getPhone() { return phone ;}
+
+public void setPhone(java.lang.String phone){ this.phone=phone; }
+
+public java.lang.String getFax() { return fax ;}
+
+public void setFax(java.lang.String fax){ this.fax=fax; }
+
+public java.lang.String getEmail() { return email ;}
+
+public void setEmail(java.lang.String email){ this.email=email; }
+
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Contact.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/CustomerOrder.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/CustomerOrder.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/CustomerOrder.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,35 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Apr 27 12:51:17 BST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package com.activebpel.ordermanagement;
+
+import java.io.Serializable;
+
+
+public class CustomerOrder implements Serializable {
+
+protected com.activebpel.ordermanagement.OrderHeader header;
+
+protected com.activebpel.ordermanagement.Item[] items;
+public CustomerOrder(){}
+
+public CustomerOrder(com.activebpel.ordermanagement.OrderHeader header, com.activebpel.ordermanagement.Item[] items){
+this.header=header;
+this.items=items;
+}
+public com.activebpel.ordermanagement.OrderHeader getHeader() { return header ;}
+
+public void setHeader(com.activebpel.ordermanagement.OrderHeader header){ this.header=header; }
+
+public com.activebpel.ordermanagement.Item[] getItems() { return items ;}
+
+public void setItems(com.activebpel.ordermanagement.Item[] items){ this.items=items; }
+
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/CustomerOrder.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Item.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Item.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Item.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,56 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Apr 27 12:51:17 BST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package com.activebpel.ordermanagement;
+
+import java.io.Serializable;
+
+
+public class Item implements Serializable {
+
+protected java.lang.String partNumber;
+
+protected java.lang.String description;
+
+protected int quantity;
+
+protected java.math.BigDecimal price;
+
+protected java.math.BigDecimal extensionAmount;
+public Item(){}
+
+public Item(java.lang.String partNumber, java.lang.String description, int quantity, java.math.BigDecimal price, java.math.BigDecimal extensionAmount){
+this.partNumber=partNumber;
+this.description=description;
+this.quantity=quantity;
+this.price=price;
+this.extensionAmount=extensionAmount;
+}
+public java.lang.String getPartNumber() { return partNumber ;}
+
+public void setPartNumber(java.lang.String partNumber){ this.partNumber=partNumber; }
+
+public java.lang.String getDescription() { return description ;}
+
+public void setDescription(java.lang.String description){ this.description=description; }
+
+public int getQuantity() { return quantity ;}
+
+public void setQuantity(int quantity){ this.quantity=quantity; }
+
+public java.math.BigDecimal getPrice() { return price ;}
+
+public void setPrice(java.math.BigDecimal price){ this.price=price; }
+
+public java.math.BigDecimal getExtensionAmount() { return extensionAmount ;}
+
+public void setExtensionAmount(java.math.BigDecimal extensionAmount){ this.extensionAmount=extensionAmount; }
+
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Item.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderHeader.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderHeader.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderHeader.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,77 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Apr 27 12:51:17 BST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package com.activebpel.ordermanagement;
+
+import java.io.Serializable;
+
+
+public class OrderHeader implements Serializable {
+
+protected java.lang.String customerNumber;
+
+protected java.lang.String poNumber;
+
+protected java.util.Calendar orderDate;
+
+protected java.math.BigDecimal orderTotal;
+
+protected com.activebpel.ordermanagement.Party billTo;
+
+protected com.activebpel.ordermanagement.Party shipTo;
+
+protected java.lang.String billTerms;
+
+protected java.lang.String shipTerms;
+public OrderHeader(){}
+
+public OrderHeader(java.lang.String customerNumber, java.lang.String poNumber, java.util.Calendar orderDate, java.math.BigDecimal orderTotal, com.activebpel.ordermanagement.Party billTo, com.activebpel.ordermanagement.Party shipTo, java.lang.String billTerms, java.lang.String shipTerms){
+this.customerNumber=customerNumber;
+this.poNumber=poNumber;
+this.orderDate=orderDate;
+this.orderTotal=orderTotal;
+this.billTo=billTo;
+this.shipTo=shipTo;
+this.billTerms=billTerms;
+this.shipTerms=shipTerms;
+}
+public java.lang.String getCustomerNumber() { return customerNumber ;}
+
+public void setCustomerNumber(java.lang.String customerNumber){ this.customerNumber=customerNumber; }
+
+public java.lang.String getPoNumber() { return poNumber ;}
+
+public void setPoNumber(java.lang.String poNumber){ this.poNumber=poNumber; }
+
+public java.util.Calendar getOrderDate() { return orderDate ;}
+
+public void setOrderDate(java.util.Calendar orderDate){ this.orderDate=orderDate; }
+
+public java.math.BigDecimal getOrderTotal() { return orderTotal ;}
+
+public void setOrderTotal(java.math.BigDecimal orderTotal){ this.orderTotal=orderTotal; }
+
+public com.activebpel.ordermanagement.Party getBillTo() { return billTo ;}
+
+public void setBillTo(com.activebpel.ordermanagement.Party billTo){ this.billTo=billTo; }
+
+public com.activebpel.ordermanagement.Party getShipTo() { return shipTo ;}
+
+public void setShipTo(com.activebpel.ordermanagement.Party shipTo){ this.shipTo=shipTo; }
+
+public java.lang.String getBillTerms() { return billTerms ;}
+
+public void setBillTerms(java.lang.String billTerms){ this.billTerms=billTerms; }
+
+public java.lang.String getShipTerms() { return shipTerms ;}
+
+public void setShipTerms(java.lang.String shipTerms){ this.shipTerms=shipTerms; }
+
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderHeader.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderInquiry.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderInquiry.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderInquiry.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,35 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Apr 27 12:51:17 BST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package com.activebpel.ordermanagement;
+
+import java.io.Serializable;
+
+
+public class OrderInquiry implements Serializable {
+
+protected java.lang.String customerNumber;
+
+protected java.lang.String poNumber;
+public OrderInquiry(){}
+
+public OrderInquiry(java.lang.String customerNumber, java.lang.String poNumber){
+this.customerNumber=customerNumber;
+this.poNumber=poNumber;
+}
+public java.lang.String getCustomerNumber() { return customerNumber ;}
+
+public void setCustomerNumber(java.lang.String customerNumber){ this.customerNumber=customerNumber; }
+
+public java.lang.String getPoNumber() { return poNumber ;}
+
+public void setPoNumber(java.lang.String poNumber){ this.poNumber=poNumber; }
+
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderInquiry.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderManager.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderManager.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderManager.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,16 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Apr 27 12:51:17 BST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+package com.activebpel.ordermanagement;
+public interface OrderManager extends java.rmi.Remote
+{
+
+ public java.lang.String createSalesOrder(com.activebpel.ordermanagement.CustomerOrder customerOrder) throws com.activebpel.ordermanagement.SalesOrderFault, java.rmi.RemoteException;
+ public boolean cancelOrder(com.activebpel.ordermanagement.CancelOrder cancelOrder) throws java.rmi.RemoteException;
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderManager.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderManagerBean.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderManagerBean.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderManagerBean.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, 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) 2005-2006, JBoss Inc.
+ */
+package com.activebpel.ordermanagement;
+
+import javax.ejb.Stateful;
+import javax.ejb.Remote;
+import java.rmi.RemoteException;
+import java.util.UUID;
+import java.io.Serializable;
+
+/**
+ * Order Management Service bean.
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+ at Stateful
+ at Remote(OrderManager.class)
+public class OrderManagerBean implements OrderManager, Serializable {
+
+ public String createSalesOrder(CustomerOrder customerOrder) throws SalesOrderFault, RemoteException {
+ return UUID.randomUUID().toString();
+ }
+
+ public boolean cancelOrder(CancelOrder cancelOrder) throws RemoteException {
+ return true;
+ }
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderManagerBean.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Party.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Party.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Party.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,42 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Apr 27 12:51:17 BST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package com.activebpel.ordermanagement;
+
+import java.io.Serializable;
+
+
+public class Party implements Serializable {
+
+protected java.lang.String company;
+
+protected com.activebpel.ordermanagement.Contact contact;
+
+protected com.activebpel.ordermanagement.Address address;
+public Party(){}
+
+public Party(java.lang.String company, com.activebpel.ordermanagement.Contact contact, com.activebpel.ordermanagement.Address address){
+this.company=company;
+this.contact=contact;
+this.address=address;
+}
+public java.lang.String getCompany() { return company ;}
+
+public void setCompany(java.lang.String company){ this.company=company; }
+
+public com.activebpel.ordermanagement.Contact getContact() { return contact ;}
+
+public void setContact(com.activebpel.ordermanagement.Contact contact){ this.contact=contact; }
+
+public com.activebpel.ordermanagement.Address getAddress() { return address ;}
+
+public void setAddress(com.activebpel.ordermanagement.Address address){ this.address=address; }
+
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/Party.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/RetailerCallback.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/RetailerCallback.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/RetailerCallback.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,15 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Apr 27 12:51:17 BST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+package com.activebpel.ordermanagement;
+public interface RetailerCallback extends java.rmi.Remote
+{
+
+ public boolean sendSalesOrderNotification(com.activebpel.ordermanagement.SalesOrderNotification salesOrderNotification) throws java.rmi.RemoteException;
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/RetailerCallback.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/SalesOrderFault.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/SalesOrderFault.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/SalesOrderFault.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,26 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Apr 27 12:51:17 BST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package com.activebpel.ordermanagement;
+
+
+public class SalesOrderFault
+ extends Exception{
+
+private java.lang.String reason;
+public SalesOrderFault(java.lang.String reason){
+super(reason);
+this.reason=reason;
+}
+public java.lang.String getReason() { return reason ;}
+
+
+
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/SalesOrderFault.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/SalesOrderNotification.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/SalesOrderNotification.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/SalesOrderNotification.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,28 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Apr 27 12:51:17 BST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package com.activebpel.ordermanagement;
+
+import java.io.Serializable;
+
+
+public class SalesOrderNotification implements Serializable {
+
+protected java.lang.String orderNumber;
+public SalesOrderNotification(){}
+
+public SalesOrderNotification(java.lang.String orderNumber){
+this.orderNumber=orderNumber;
+}
+public java.lang.String getOrderNumber() { return orderNumber ;}
+
+public void setOrderNumber(java.lang.String orderNumber){ this.orderNumber=orderNumber; }
+
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/SalesOrderNotification.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/Shipping.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/Shipping.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/Shipping.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,15 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Apr 27 12:51:18 BST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+package com.activebpel.shipping;
+public interface Shipping extends java.rmi.Remote
+{
+
+ public com.activebpel.shipping.ShippingResponse shipOrder(com.activebpel.shipping.ShippingRequest shippingRequest) throws java.rmi.RemoteException;
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/Shipping.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/ShippingBean.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/ShippingBean.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/ShippingBean.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, 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) 2005-2006, JBoss Inc.
+ */
+package com.activebpel.shipping;
+
+import javax.ejb.Stateful;
+import javax.ejb.Remote;
+import java.rmi.RemoteException;
+import java.io.Serializable;
+
+/**
+ * Shipping Service bean.
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+ at Stateful
+ at Remote(Shipping.class)
+public class ShippingBean implements Shipping, Serializable {
+
+ public ShippingResponse shipOrder(ShippingRequest shippingRequest) throws RemoteException {
+ return new ShippingResponse(true);
+ }
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/ShippingBean.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/ShippingRequest.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/ShippingRequest.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/ShippingRequest.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,42 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Apr 27 12:51:18 BST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package com.activebpel.shipping;
+
+import java.io.Serializable;
+
+
+public class ShippingRequest implements Serializable {
+
+protected java.lang.String customerNumber;
+
+protected java.lang.String poNumber;
+
+protected java.lang.String orderNumber;
+public ShippingRequest(){}
+
+public ShippingRequest(java.lang.String customerNumber, java.lang.String poNumber, java.lang.String orderNumber){
+this.customerNumber=customerNumber;
+this.poNumber=poNumber;
+this.orderNumber=orderNumber;
+}
+public java.lang.String getCustomerNumber() { return customerNumber ;}
+
+public void setCustomerNumber(java.lang.String customerNumber){ this.customerNumber=customerNumber; }
+
+public java.lang.String getPoNumber() { return poNumber ;}
+
+public void setPoNumber(java.lang.String poNumber){ this.poNumber=poNumber; }
+
+public java.lang.String getOrderNumber() { return orderNumber ;}
+
+public void setOrderNumber(java.lang.String orderNumber){ this.orderNumber=orderNumber; }
+
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/ShippingRequest.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/ShippingResponse.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/ShippingResponse.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/ShippingResponse.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,28 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Apr 27 12:51:18 BST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package com.activebpel.shipping;
+
+import java.io.Serializable;
+
+
+public class ShippingResponse implements Serializable {
+
+protected boolean orderShipped;
+public ShippingResponse(){}
+
+public ShippingResponse(boolean orderShipped){
+this.orderShipped=orderShipped;
+}
+public boolean isOrderShipped() { return orderShipped ;}
+
+public void setOrderShipped(boolean orderShipped){ this.orderShipped=orderShipped; }
+
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/shipping/src/com/activebpel/shipping/ShippingResponse.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/esb/quickstarts/bpel/OrderManagerService.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/esb/quickstarts/bpel/OrderManagerService.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/esb/quickstarts/bpel/OrderManagerService.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,69 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, 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) 2005-2006, JBoss Inc.
+ */
+package org.jboss.esb.quickstarts.bpel;
+
+import com.activebpel.ordermanagement.OrderManager;
+import com.activebpel.ordermanagement.CustomerOrder;
+import com.activebpel.ordermanagement.SalesOrderFault;
+import com.activebpel.ordermanagement.CancelOrder;
+
+import javax.jws.WebService;
+import javax.jws.WebMethod;
+import javax.jws.soap.SOAPBinding;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import java.rmi.RemoteException;
+
+/**
+ * Order Manager Service wrapper webservice.
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+ at WebService(name = "OrderManagerPortType",
+ targetNamespace = "http://org.jboss.esb/quickstarts/bpel/ABI_OrderManager")
+ at SOAPBinding(style = SOAPBinding.Style.DOCUMENT, parameterStyle = SOAPBinding.ParameterStyle.BARE)
+public class OrderManagerService implements OrderManager {
+
+ private OrderManager orderManagement = null;
+
+ public OrderManagerService() {
+ InitialContext ctx = null;
+ try {
+ ctx = new InitialContext();
+ } catch (NamingException e) {
+ throw new RuntimeException("Unable to create JNDI context.", e);
+ }
+ try {
+ orderManagement = (OrderManager) ctx.lookup("OrderManagerBean/remote");
+ } catch (NamingException e) {
+ throw new RuntimeException("Unable to lookup OrderManager Service Bean.", e);
+ }
+ }
+
+ @WebMethod(operationName = "customerOrder")
+ public String createSalesOrder(CustomerOrder customerOrder) throws SalesOrderFault, RemoteException {
+ return orderManagement.createSalesOrder(customerOrder);
+ }
+
+ @WebMethod(operationName = "cancelOrder")
+ public boolean cancelOrder(CancelOrder cancelOrder) throws RemoteException {
+ return orderManagement.cancelOrder(cancelOrder);
+ }
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/esb/quickstarts/bpel/OrderManagerService.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/esb/quickstarts/bpel/ShipperService.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/esb/quickstarts/bpel/ShipperService.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/esb/quickstarts/bpel/ShipperService.java 2007-04-30 14:22:31 UTC (rev 11511)
@@ -0,0 +1,63 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, 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) 2005-2006, JBoss Inc.
+ */
+package org.jboss.esb.quickstarts.bpel;
+
+import com.activebpel.shipping.Shipping;
+import com.activebpel.shipping.ShippingResponse;
+import com.activebpel.shipping.ShippingRequest;
+
+import javax.jws.WebService;
+import javax.jws.WebMethod;
+import javax.jws.soap.SOAPBinding;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import java.rmi.RemoteException;
+
+/**
+ * Shipper Service wrapper webservice.
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+ at WebService(name = "ShippingPortType",
+ targetNamespace = "http://org.jboss.esb/quickstarts/bpel/ABI_Shipping")
+ at SOAPBinding(style = SOAPBinding.Style.DOCUMENT, parameterStyle = SOAPBinding.ParameterStyle.BARE)
+public class ShipperService implements Shipping {
+
+ private Shipping shipping = null;
+
+ public ShipperService() {
+ InitialContext ctx = null;
+ try {
+ ctx = new InitialContext();
+ } catch (NamingException e) {
+ throw new RuntimeException("Unable to create JNDI context.", e);
+ }
+ try {
+ shipping = (Shipping) ctx.lookup("ShippingBean/remote");
+ } catch (NamingException e) {
+ throw new RuntimeException("Unable to lookup Shipping Service Bean.", e);
+ }
+ }
+
+ @WebMethod(operationName = "shippingRequest")
+ public ShippingResponse shipOrder(ShippingRequest shippingRequest) throws RemoteException {
+ return shipping.shipOrder(shippingRequest);
+ }
+}
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/src/org/jboss/esb/quickstarts/bpel/ShipperService.java
___________________________________________________________________
Name: svn:eol-style
+ native
More information about the jboss-svn-commits
mailing list