Author: objectiser
Date: 2010-06-23 13:03:46 -0400 (Wed, 23 Jun 2010)
New Revision: 782
Added:
trunk/samples/esb/simple_esb_proxy_invoke/
trunk/samples/esb/simple_esb_proxy_invoke/bpelContent/
trunk/samples/esb/simple_esb_proxy_invoke/bpelContent/HelloWorldWS.wsdl
trunk/samples/esb/simple_esb_proxy_invoke/bpelContent/SimpleInvoke.bpel
trunk/samples/esb/simple_esb_proxy_invoke/bpelContent/SimpleInvoke.wsdl
trunk/samples/esb/simple_esb_proxy_invoke/bpelContent/bpel-deploy.xml
trunk/samples/esb/simple_esb_proxy_invoke/build.xml
trunk/samples/esb/simple_esb_proxy_invoke/esbcontent/
trunk/samples/esb/simple_esb_proxy_invoke/esbcontent/META-INF/
trunk/samples/esb/simple_esb_proxy_invoke/esbcontent/META-INF/deployment.xml
trunk/samples/esb/simple_esb_proxy_invoke/esbcontent/META-INF/jbm-queue-service.xml
trunk/samples/esb/simple_esb_proxy_invoke/esbcontent/META-INF/jboss-esb.xml
trunk/samples/esb/simple_esb_proxy_invoke/messages/
trunk/samples/esb/simple_esb_proxy_invoke/messages/hello_request1.xml
trunk/samples/esb/simple_esb_proxy_invoke/readme.txt
trunk/samples/esb/simple_esb_proxy_invoke/war/
trunk/samples/esb/simple_esb_proxy_invoke/war/resources/
trunk/samples/esb/simple_esb_proxy_invoke/war/resources/WEB-INF/
trunk/samples/esb/simple_esb_proxy_invoke/war/resources/WEB-INF/classes/
trunk/samples/esb/simple_esb_proxy_invoke/war/resources/WEB-INF/lib/
trunk/samples/esb/simple_esb_proxy_invoke/war/resources/WEB-INF/web.xml
trunk/samples/esb/simple_esb_proxy_invoke/war/src/
trunk/samples/esb/simple_esb_proxy_invoke/war/src/org/
trunk/samples/esb/simple_esb_proxy_invoke/war/src/org/jboss/
trunk/samples/esb/simple_esb_proxy_invoke/war/src/org/jboss/soa/
trunk/samples/esb/simple_esb_proxy_invoke/war/src/org/jboss/soa/bpel/
trunk/samples/esb/simple_esb_proxy_invoke/war/src/org/jboss/soa/bpel/samples/
trunk/samples/esb/simple_esb_proxy_invoke/war/src/org/jboss/soa/bpel/samples/quickstart/
trunk/samples/esb/simple_esb_proxy_invoke/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/
trunk/samples/esb/simple_esb_proxy_invoke/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/HelloWorldWS.java
trunk/samples/esb/simple_esb_proxy_invoke/war/view/
trunk/samples/esb/simple_esb_proxy_invoke/war/view/index.jsp
Modified:
trunk/distribution/src/main/assembly/bin.xml
Log:
ESB Example showing how to invoke an ESB service wrapping a JAXWS service from a BPEL
process.
Modified: trunk/distribution/src/main/assembly/bin.xml
===================================================================
--- trunk/distribution/src/main/assembly/bin.xml 2010-06-23 17:02:18 UTC (rev 781)
+++ trunk/distribution/src/main/assembly/bin.xml 2010-06-23 17:03:46 UTC (rev 782)
@@ -67,6 +67,7 @@
<include>esb/bpel_helloworld/**</include>
<include>esb/bpel_loan_fault/**</include>
<include>esb/invoke_esb_ebws/**</include>
+ <include>esb/simple_esb_proxy_invoke/**</include>
<include>esb/webservice_esb_bpel/**</include>
<include>quickstart/bpel_event_listener/**</include>
<include>quickstart/hello_world/**</include>
Added: trunk/samples/esb/simple_esb_proxy_invoke/bpelContent/HelloWorldWS.wsdl
===================================================================
--- trunk/samples/esb/simple_esb_proxy_invoke/bpelContent/HelloWorldWS.wsdl
(rev 0)
+++ trunk/samples/esb/simple_esb_proxy_invoke/bpelContent/HelloWorldWS.wsdl 2010-06-23
17:03:46 UTC (rev 782)
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<definitions name='HelloWorldWSService'
+targetNamespace='http://simple_invoke/helloworld'
+xmlns='http://schemas.xmlsoap.org/wsdl/'
+xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
+xmlns:tns='http://simple_invoke/helloworld'
+xmlns:xsd='http://www.w3.org/2001/XMLSchema'
+xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+>
+ <types>
+ <xs:schema targetNamespace='http://simple_invoke/helloworld'
version='1.0' xmlns:tns='http://simple_invoke/helloworld'
xmlns:xs='http://www.w3.org/2001/XMLSchema'>
+ <xs:element name='sayGoodbye' type='tns:sayGoodbye'/>
+ <xs:element name='sayGoodbyeResponse'
type='tns:sayGoodbyeResponse'/>
+ <xs:element name='sayHello' type='tns:sayHello'/>
+ <xs:element name='sayHelloResponse'
type='tns:sayHelloResponse'/>
+ <xs:complexType name='sayGoodbye'>
+ <xs:sequence>
+ <xs:element minOccurs='0' name='toWhom'
type='xs:string'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='sayGoodbyeResponse'>
+ <xs:sequence>
+ <xs:element minOccurs='0' name='return'
type='xs:string'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='sayHello'>
+ <xs:sequence>
+ <xs:element minOccurs='0' name='toWhom'
type='xs:string'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='sayHelloResponse'>
+ <xs:sequence>
+ <xs:element minOccurs='0' name='return'
type='xs:string'/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:schema>
+ </types>
+ <message name='HelloWorld_sayGoodbye'>
+ <part element='tns:sayGoodbye' name='sayGoodbye'></part>
+ </message>
+ <message name='HelloWorld_sayHello'>
+ <part element='tns:sayHello' name='sayHello'></part>
+ </message>
+ <message name='HelloWorld_sayHelloResponse'>
+ <part element='tns:sayHelloResponse'
name='sayHelloResponse'></part>
+ </message>
+ <message name='HelloWorld_sayGoodbyeResponse'>
+ <part element='tns:sayGoodbyeResponse'
name='sayGoodbyeResponse'></part>
+ </message>
+ <portType name='HelloWorld'>
+ <operation name='sayGoodbye' parameterOrder='sayGoodbye'>
+ <input message='tns:HelloWorld_sayGoodbye'></input>
+ <output message='tns:HelloWorld_sayGoodbyeResponse'></output>
+ </operation>
+ <operation name='sayHello' parameterOrder='sayHello'>
+ <input message='tns:HelloWorld_sayHello'></input>
+ <output message='tns:HelloWorld_sayHelloResponse'></output>
+ </operation>
+ </portType>
+ <binding name='HelloWorldBinding' type='tns:HelloWorld'>
+ <soap:binding style='document'
transport='http://schemas.xmlsoap.org/soap/http'/>
+ <operation name='sayGoodbye'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ </operation>
+ <operation name='sayHello'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ </operation>
+ </binding>
+ <service name='HelloWorldWSService'>
+ <port binding='tns:HelloWorldBinding' name='HelloWorldPort'>
+ <soap:address location='http://127.0.0.1:8765'/>
+ </port>
+ </service>
+ <plnk:partnerLinkType name="theExternalService_PartnerLinkType">
+ <plnk:role name="callingTheExternalService"
portType="tns:HelloWorld"/>
+ </plnk:partnerLinkType>
+</definitions>
Added: trunk/samples/esb/simple_esb_proxy_invoke/bpelContent/SimpleInvoke.bpel
===================================================================
--- trunk/samples/esb/simple_esb_proxy_invoke/bpelContent/SimpleInvoke.bpel
(rev 0)
+++ trunk/samples/esb/simple_esb_proxy_invoke/bpelContent/SimpleInvoke.bpel 2010-06-23
17:03:46 UTC (rev 782)
@@ -0,0 +1,96 @@
+<!--
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, 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.
+ -->
+<process name="SimpleInvoke"
+
targetNamespace="http://www.jboss.org/bpel/examples"
+
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+
xmlns:tns="http://www.jboss.org/bpel/examples"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:intf="http://www.jboss.org/bpel/examples/wsdl"
+ xmlns:intf2="http://simple_invoke/helloworld"
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="SimpleInvoke.wsdl"
+
namespace="http://www.jboss.org/bpel/examples/wsdl"
+
importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <import location="HelloWorldWS.wsdl"
+ namespace="http://simple_invoke/helloworld"
+
importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="theClient_PartnerLink"
+ partnerLinkType="intf:myClientCalling_PartnerLinkType"
+ myRole="me" />
+ <partnerLink name="theExternalService_PartnerLink"
+ partnerLinkType="intf2:theExternalService_PartnerLinkType"
+ partnerRole="callingTheExternalService"
+ initializePartnerRole="yes"/>
+ </partnerLinks>
+
+ <variables>
+ <variable name="myVar"
messageType="intf:GreetingTarget_Message"/>
+ <variable name="inVar"
messageType="intf2:HelloWorld_sayHello"/>
+ <variable name="outVar"
messageType="intf2:HelloWorld_sayHelloResponse"/>
+ <variable name="tempVar" type="xsd:string"/>
+ </variables>
+
+ <sequence>
+ <receive
+ name="request"
+ partnerLink="theClient_PartnerLink"
+ portType="intf:SimpleInvoke_PortType"
+ operation="sayHelloTo"
+ variable="myVar"
+ createInstance="yes"/>
+
+ <assign name="assignRequestToHelloWorldWS">
+ <!-- Ode requires variable initialization -->
+ <copy>
+ <from><literal><intf2:sayHello><toWhom
xmlns=""/></intf2:sayHello></literal></from>
+ <to variable="inVar" part="sayHello"/>
+ </copy>
+ <!-- now the real copy -->
+ <copy>
+ <from variable="myVar" part="ToWhom"/>
+ <to>$inVar.sayHello/toWhom</to>
+ </copy>
+ </assign>
+
+ <invoke name="ICallTheExternalService"
+ partnerLink="theExternalService_PartnerLink"
+ portType="intf2:HelloWorld"
+ operation="sayHello"
+ inputVariable="inVar"
+ outputVariable="outVar"
+ />
+
+ <assign name="assignResponseOfHelloWorldWS">
+ <copy>
+ <from>concat($outVar.sayHelloResponse/return,' and
BPEL')</from>
+ <to variable="myVar" part="ToWhom"/>
+ </copy>
+ </assign>
+
+ <reply name="response"
+ partnerLink="theClient_PartnerLink"
+ portType="intf:SimpleInvoke_PortType"
+ operation="sayHelloTo"
+ variable="myVar"/>
+ </sequence>
+</process>
Added: trunk/samples/esb/simple_esb_proxy_invoke/bpelContent/SimpleInvoke.wsdl
===================================================================
--- trunk/samples/esb/simple_esb_proxy_invoke/bpelContent/SimpleInvoke.wsdl
(rev 0)
+++ trunk/samples/esb/simple_esb_proxy_invoke/bpelContent/SimpleInvoke.wsdl 2010-06-23
17:03:46 UTC (rev 782)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, 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.
+ -->
+<wsdl:definitions
+
targetNamespace="http://www.jboss.org/bpel/examples/wsdl"
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:tns="http://www.jboss.org/bpel/examples/wsdl"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+
+ <wsdl:message name="GreetingTarget_Message">
+ <wsdl:part name="ToWhom" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:portType name="SimpleInvoke_PortType">
+ <wsdl:operation name="sayHelloTo">
+ <wsdl:input message="tns:GreetingTarget_Message"
name="TestIn"/>
+ <wsdl:output message="tns:GreetingTarget_Message"
name="TestOut"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="SimpleInvoke_SoapBinding"
type="tns:SimpleInvoke_PortType">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="sayHelloTo">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input>
+ <soap:body
+
namespace="http://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body
+
namespace="http://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="SimpleInvoke_Service">
+ <wsdl:port name="SimpleInvoke_Port"
binding="tns:SimpleInvoke_SoapBinding">
+ <soap:address
location="http://localhost:8080/Quickstart_bpel_simple_invokeWS"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="myClientCalling_PartnerLinkType">
+ <plnk:role name="me"
portType="tns:SimpleInvoke_PortType"/>
+ <plnk:role name="you"
portType="tns:SimpleInvoke_PortType"/>
+ </plnk:partnerLinkType>
+</wsdl:definitions>
+
Added: trunk/samples/esb/simple_esb_proxy_invoke/bpelContent/bpel-deploy.xml
===================================================================
--- trunk/samples/esb/simple_esb_proxy_invoke/bpelContent/bpel-deploy.xml
(rev 0)
+++ trunk/samples/esb/simple_esb_proxy_invoke/bpelContent/bpel-deploy.xml 2010-06-23
17:03:46 UTC (rev 782)
@@ -0,0 +1,32 @@
+<!--
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, 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.
+ -->
+<deploy
xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+
xmlns:bpl="http://www.jboss.org/bpel/examples"
+
xmlns:intf="http://www.jboss.org/bpel/examples/wsdl"
+ xmlns:intf2="http://simple_invoke/helloworld">
+
+ <process name="bpl:SimpleInvoke">
+ <active>true</active>
+ <provide partnerLink="theClient_PartnerLink">
+ <service name="intf:SimpleInvoke_Service"
port="SimpleInvoke_Port"/>
+ </provide>
+ <invoke partnerLink="theExternalService_PartnerLink">
+ <service name="intf2:HelloWorldWSService"
port="HelloWorldPort"/>
+ </invoke>
+ </process>
+</deploy>
Added: trunk/samples/esb/simple_esb_proxy_invoke/build.xml
===================================================================
--- trunk/samples/esb/simple_esb_proxy_invoke/build.xml (rev 0)
+++ trunk/samples/esb/simple_esb_proxy_invoke/build.xml 2010-06-23 17:03:46 UTC (rev 782)
@@ -0,0 +1,96 @@
+<project name="Quickstart_bpel_simple_invoke" default="deploy"
basedir=".">
+
+ <description>
+ ${ant.project.name}
+ ${line.separator}
+ </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="conf.dir" value="${server.dir}/conf"/>
+ <property name="deploy.dir" value="${server.dir}/deploy"/>
+ <property name="server.lib.dir" value="${server.dir}/lib"/>
+
+ <property name="sample.jar.name"
value="${ant.project.name}-${version}.jar" />
+ <property name="sample.esb.name" value="SimpleESBProxyInvoke.esb"
/>
+
+ <property name="war.build.dir"
location="build/war/classes"/>
+
+ <path id="compile-classpath">
+ <fileset dir="${org.jboss.as.home}/client" includes="*.jar"
/>
+ <fileset dir="${org.jboss.esb.home}/lib" includes="*.jar" />
+ </path>
+ <property name="compile-classpath"
refid="compile-classpath"/>
+
+ <target name="makewar" description="make war">
+ <!-- Compile... -->
+ <mkdir dir="${war.build.dir}" />
+ <javac srcdir="war/src" destdir="${war.build.dir}"
debug="true">
+ <classpath>
+ <path refid="compile-classpath" />
+ <fileset dir="war/resources/WEB-INF/lib"
includes="*.jar" />
+ </classpath>
+ </javac>
+
+ <!-- War... -->
+ <war warfile="build/${ant.project.name}.war"
+ webxml="${basedir}/war/resources/WEB-INF/web.xml">
+ <webinf dir="${basedir}/war/resources/WEB-INF">
+ <include name="jboss-web.xml"/>
+ </webinf>
+ <classes dir="${war.build.dir}"
includes="**/*.class"/>
+ <fileset dir="${basedir}/war/view">
+ <include name="**/*"/>
+ </fileset>
+ <classes dir="${basedir}">
+ <include name="juddi.properties"/>
+ </classes>
+ </war>
+ </target>
+
+ <target name="deploywar" depends="makewar" >
+ <copy todir="${deploy.dir}"
+ file="build/${ant.project.name}.war"/>
+ </target>
+
+ <target name="undeploywar">
+ <delete file="${deploy.dir}/${ant.project.name}.war"/>
+ </target>
+
+ <target name="deployesb" >
+ <jar basedir="esbcontent"
destfile="${deploy.dir}/${sample.esb.name}" />
+ </target>
+
+ <target name="undeployesb">
+ <delete file="${deploy.dir}/${sample.esb.name}"/>
+ </target>
+
+ <target name="deploy" depends="deploywar,deployesb" >
+ <echo>Deploy ${ant.project.name}</echo>
+ <jar basedir="bpelContent"
destfile="${deploy.dir}/${sample.jar.name}" />
+ </target>
+
+ <target name="undeploy" depends="undeploywar,undeploywar" >
+ <echo>Undeploy ${ant.project.name}</echo>
+ <delete file="${deploy.dir}/${sample.jar.name}" />
+ </target>
+
+ <target name="sendhello">
+ <echo>Send test message to: ${ant.project.name}</echo>
+ <java
classname="org.apache.ode.tools.sendsoap.cline.HttpSoapSender">
+ <arg
value="http://localhost:8080/Quickstart_bpel_simple_invokeWS"/>
+ <arg value="messages/hello_request1.xml"/>
+ <classpath>
+ <fileset dir="../../common/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+ </target>
+
+</project>
Added: trunk/samples/esb/simple_esb_proxy_invoke/esbcontent/META-INF/deployment.xml
===================================================================
--- trunk/samples/esb/simple_esb_proxy_invoke/esbcontent/META-INF/deployment.xml
(rev 0)
+++
trunk/samples/esb/simple_esb_proxy_invoke/esbcontent/META-INF/deployment.xml 2010-06-23
17:03:46 UTC (rev 782)
@@ -0,0 +1,7 @@
+<jbossesb-deployment>
+ <depends>jboss.esb:deployment=soap.esb</depends>
+
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_simple_esb_proxy_invoke_gw</depends>
+
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_simple_esb_proxy_invoke_esb</depends>
+
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_simple_esb_proxy_invoke_esb_reply
+ </depends>
+</jbossesb-deployment>
Added:
trunk/samples/esb/simple_esb_proxy_invoke/esbcontent/META-INF/jbm-queue-service.xml
===================================================================
--- trunk/samples/esb/simple_esb_proxy_invoke/esbcontent/META-INF/jbm-queue-service.xml
(rev 0)
+++
trunk/samples/esb/simple_esb_proxy_invoke/esbcontent/META-INF/jbm-queue-service.xml 2010-06-23
17:03:46 UTC (rev 782)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+
name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_simple_esb_proxy_invoke_gw"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends
optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+
name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_simple_esb_proxy_invoke_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends
optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+
name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_simple_esb_proxy_invoke_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends
optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+</server>
Added: trunk/samples/esb/simple_esb_proxy_invoke/esbcontent/META-INF/jboss-esb.xml
===================================================================
--- trunk/samples/esb/simple_esb_proxy_invoke/esbcontent/META-INF/jboss-esb.xml
(rev 0)
+++ trunk/samples/esb/simple_esb_proxy_invoke/esbcontent/META-INF/jboss-esb.xml 2010-06-23
17:03:46 UTC (rev 782)
@@ -0,0 +1,55 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jbossesb
+
xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc...
+ parameterReloadSecs="5">
+
+ <providers>
+ <jms-provider name="JBossMQ"
connection-factory="ConnectionFactory">
+ <jms-bus busid="quickstartGwChannel">
+ <jms-message-filter dest-type="QUEUE"
dest-name="queue/quickstart_simple_esb_proxy_invoke_gw"/>
+ </jms-bus>
+ <jms-bus busid="quickstartEsbChannel">
+ <jms-message-filter dest-type="QUEUE"
dest-name="queue/quickstart_simple_esb_proxy_invoke_esb"/>
+ </jms-bus>
+ </jms-provider>
+
+ <jbr-provider name="JBR-Http" protocol="http"
host="localhost">
+ <jbr-bus busid="Http-1" port="8765" />
+ </jbr-provider>
+
+ <jbr-provider name="JBR-Socket" protocol="socket"
host="localhost">
+ <jbr-bus busid="Socket-1" port="8888" />
+ </jbr-provider>
+
+ </providers>
+
+ <services>
+
+ <service category="MyServiceCategory"
name="MyWSProducerService" description="WS Frontend speaks natively to the
ESB">
+
+ <listeners>
+ <jms-listener name="JMS-Gateway"
busidref="quickstartGwChannel" is-gateway="true"/>
+ <jbr-listener name="Http-Gateway"
busidref="Http-1" is-gateway="true"/>
+ <jbr-listener name="Socket-Gateway"
busidref="Socket-1" is-gateway="true"/>
+
+ <jms-listener name="JMS-ESBListener"
busidref="quickstartEsbChannel"/>
+ </listeners>
+ <actions>
+ <action name="print-before"
class="org.jboss.soa.esb.actions.SystemPrintln">
+ <property name="message"
+ value="[Quickstart_simple_esb_proxy_invoke] BEFORE
invoking jbossws endpoint"/>
+ </action>
+ <action name="JBossWSAdapter"
class="org.jboss.soa.esb.actions.soap.SOAPProcessor">
+ <property name="jbossws-endpoint"
value="HelloWorldWS"/>
+ </action>
+ <action name="print-after"
class="org.jboss.soa.esb.actions.SystemPrintln">
+ <property name="message"
+ value="[Quickstart_simple_esb_proxy_invoke] AFTER
invoking jbossws endpoint"/>
+ </action>
+ <action name="testStore"
class="org.jboss.soa.esb.actions.TestMessageStore"/>
+ </actions>
+ </service>
+
+ </services>
+
+</jbossesb>
Added: trunk/samples/esb/simple_esb_proxy_invoke/messages/hello_request1.xml
===================================================================
--- trunk/samples/esb/simple_esb_proxy_invoke/messages/hello_request1.xml
(rev 0)
+++ trunk/samples/esb/simple_esb_proxy_invoke/messages/hello_request1.xml 2010-06-23
17:03:46 UTC (rev 782)
@@ -0,0 +1,8 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:sayHelloTo>
+ <ToWhom>ME</ToWhom>
+ </wsdl:sayHelloTo>
+ </soapenv:Body>
+</soapenv:Envelope>
Added: trunk/samples/esb/simple_esb_proxy_invoke/readme.txt
===================================================================
--- trunk/samples/esb/simple_esb_proxy_invoke/readme.txt (rev 0)
+++ trunk/samples/esb/simple_esb_proxy_invoke/readme.txt 2010-06-23 17:03:46 UTC (rev
782)
@@ -0,0 +1,34 @@
+ESB Examples - Simple Invoke with ESB Proxy Service
+===================================================
+
+This is a variation of the Quickstart simple_invoke (simple echo) example,
+used to respond to a sent message with a modified version of the request
+message being returned in a response.
+
+This example extends the simple_invoke example by wrapping the invoked JAX-WS
+service with an ESB service using the HTTP gateway and SOAPProcessor.
+
+To deploy the example, open a command line window in the example's folder,
+and simply type 'ant deploy'. To undeploy, use the command 'ant
undeploy'.
+
+To test the example, for example using the SOAPUI client, an example message
+can be found in the messages sub-folder, with the relevant WSDL being
+located in the bpel sub-folder.
+
+Alternatively, use the 'ant sendhello' command (from a command line window)
+to send the example message directly to the deployed process.
+
+When running the command, additional output will be seen in the JBossAS
+console, showing the ESB service reporting the message sent to, and received
+from, the invoked JAX-WS service.
+
+NOTE: The "ant deploy" command will by default deploy version 1 of the
+example to the server. If you wish to change the example, and redeploy,
+then you will need to update the version number in the build.xml, or
+override the version property, e.g. "ant -Dversion=2 deploy" (and similarly
+when undeploying "ant -Dversion=2 undeploy").
+
+Some handy URLs:
+http://localhost:8080/bpel-console is the BPEL console
+http://localhost:8080/Quickstart_bpel_simple_invokeWS?wsdl is the URL to the BPEL
process' WSDL
+http://localhost:8080/Quickstart_bpel_simple_invoke/HelloWorldWS?wsdl is the JBossWS
endpoint's WSDL
Added: trunk/samples/esb/simple_esb_proxy_invoke/war/resources/WEB-INF/web.xml
===================================================================
--- trunk/samples/esb/simple_esb_proxy_invoke/war/resources/WEB-INF/web.xml
(rev 0)
+++ trunk/samples/esb/simple_esb_proxy_invoke/war/resources/WEB-INF/web.xml 2010-06-23
17:03:46 UTC (rev 782)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<web-app
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"
+ version="2.4">
+
+ <servlet>
+ <servlet-name>HelloWorldWS</servlet-name>
+
<servlet-class>org.jboss.soa.bpel.samples.quickstart.simple_invoke.HelloWorldWS</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>HelloWorldWS</servlet-name>
+ <url-pattern>/HelloWorldWS</url-pattern>
+ </servlet-mapping>
+
+</web-app>
Added:
trunk/samples/esb/simple_esb_proxy_invoke/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/HelloWorldWS.java
===================================================================
---
trunk/samples/esb/simple_esb_proxy_invoke/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/HelloWorldWS.java
(rev 0)
+++
trunk/samples/esb/simple_esb_proxy_invoke/war/src/org/jboss/soa/bpel/samples/quickstart/simple_invoke/HelloWorldWS.java 2010-06-23
17:03:46 UTC (rev 782)
@@ -0,0 +1,56 @@
+/*
+ * 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,
+ * @author JBoss Inc.
+ */
+
+package org.jboss.soa.bpel.samples.quickstart.simple_invoke;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.WebParam;
+
+@WebService(name = "HelloWorld", targetNamespace =
"http://simple_invoke/helloworld")
+public class HelloWorldWS
+{
+ @WebMethod
+ public String sayHello(@WebParam(name = "toWhom")
+ String toWhom)
+ {
+ System.out.println("\n");
+ System.out.println("*************************************************");
+ System.out.println("toWhom Parameter: " + toWhom );
+ System.out.println("*************************************************");
+ System.out.println("\n");
+ String greeting = "Hello " + toWhom + ". Sincerely, JBossWS";
+ return greeting;
+
+ }
+
+ @WebMethod
+ public String sayGoodbye(@WebParam(name = "toWhom")
+ String toWhom)
+ {
+
+ String greeting = "Goodbye Cruel World, sincerely '" + toWhom +
"' at " + new java.util.Date();
+
+ return greeting;
+
+ }
+}
Added: trunk/samples/esb/simple_esb_proxy_invoke/war/view/index.jsp
===================================================================
--- trunk/samples/esb/simple_esb_proxy_invoke/war/view/index.jsp
(rev 0)
+++ trunk/samples/esb/simple_esb_proxy_invoke/war/view/index.jsp 2010-06-23 17:03:46 UTC
(rev 782)
@@ -0,0 +1,9 @@
+<html>
+ <body>
+ This is just a place holder.<br>
+ Verify the that the WS has been deployed by hitting
+ <a href="http://localhost:8080/jbossws">
+
http://localhost:8080/jbossws
+ </a>
+ </body>
+</html>
\ No newline at end of file