You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by rr...@apache.org on 2009/11/20 16:27:54 UTC
svn commit: r882603 - in
/ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi: ./ HelloWorld2-RPC/
HelloWorld2/ PingPong/ ProcessManagement/ ant/ ant/HelloWorld2-RPC/
ant/HelloWorld2/ ant/PingPong/ ant/ProcessManagement/ maven2/
maven2/ping-pong/ maven...
Author: rr
Date: Fri Nov 20 15:27:50 2009
New Revision: 882603
URL: http://svn.apache.org/viewvc?rev=882603&view=rev
Log:
ODE-709: Added example ServiceAssembly demonstrating new feature (by Maciej Prochniak)
Added:
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/ant/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/ant/HelloWorld2/
- copied from r882598, ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/HelloWorld2/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/ant/HelloWorld2-RPC/
- copied from r882598, ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/HelloWorld2-RPC/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/ant/PingPong/
- copied from r882598, ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/PingPong/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/ant/ProcessManagement/
- copied from r882598, ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/ProcessManagement/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/ant/base-sa.xml
- copied unchanged from r882598, ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/base-sa.xml
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/ant/base-su.xml
- copied unchanged from r882598, ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/base-su.xml
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/ant/base.xml
- copied unchanged from r882598, ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/base.xml
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/ant/example.properties
- copied unchanged from r882598, ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/example.properties
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/README.txt (with props)
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/pom.xml (with props)
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/src/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/src/main/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/src/main/resources/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/src/main/resources/Ping.wsdl (with props)
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/src/main/resources/Pong.wsdl (with props)
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/http-su/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/http-su/pom.xml (with props)
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/http-su/src/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/http-su/src/main/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/http-su/src/main/resources/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/http-su/src/main/resources/xbean.xml (with props)
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/pom.xml (with props)
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/java/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/java/org/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/java/org/apache/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/java/org/apache/ode/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/java/org/apache/ode/ping/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/java/org/apache/ode/ping/AttachPing.java (with props)
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/Ping.bpel (with props)
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/Pong.bpel (with props)
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/deploy.xml (with props)
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/pom.xml (with props)
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/sa/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/sa/pom.xml (with props)
Removed:
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/HelloWorld2/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/HelloWorld2-RPC/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/PingPong/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/ProcessManagement/
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/base-sa.xml
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/base-su.xml
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/base.xml
ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/example.properties
Added: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/README.txt
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/README.txt?rev=882603&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/README.txt (added)
+++ ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/README.txt Fri Nov 20 15:27:50 2009
@@ -0,0 +1,5 @@
+This example demonstrates particularly a feature, which enables adding java code inside JBI Service Unit and invoking it from BPEL using Saxon.
+An invoked method is AttachPing.attachPing(String).
+
+More detailed information is here: http://issues.apache.org/jira/browse/ODE-709
+
Propchange: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/README.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/pom.xml
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/pom.xml?rev=882603&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/pom.xml (added)
+++ ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/pom.xml Fri Nov 20 15:27:50 2009
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.apache.ode.ping-pong</groupId>
+ <artifactId>pom</artifactId>
+ <version>1.0.0</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.ode.ping-pong</groupId>
+ <artifactId>common</artifactId>
+ <packaging>jar</packaging>
+</project>
Propchange: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/src/main/resources/Ping.wsdl
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/src/main/resources/Ping.wsdl?rev=882603&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/src/main/resources/Ping.wsdl (added)
+++ ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/src/main/resources/Ping.wsdl Fri Nov 20 15:27:50 2009
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<definitions name="Ping"
+ targetNamespace="urn:/Ping.wsdl"
+ xmlns:tns="urn:/Ping.wsdl"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+ xmlns="http://schemas.xmlsoap.org/wsdl/">
+
+ <types>
+ <schema targetNamespace="urn:/Ping.wsdl"
+ xmlns="http://www.w3.org/2000/10/XMLSchema">
+ <element name="PingRequest">
+ <complexType>
+ <all>
+ <element name="text" type="string"/>
+ </all>
+ </complexType>
+ </element>
+ <element name="PingResponse">
+ <complexType>
+ <all>
+ <element name="text" type="string"/>
+ </all>
+ </complexType>
+ </element>
+ </schema>
+ </types>
+
+ <message name="PingRequest">
+ <part name="body" element="tns:PingRequest"/>
+ </message>
+
+ <message name="PingResponse">
+ <part name="body" element="tns:PingResponse"/>
+ </message>
+
+ <portType name="PingPortType">
+ <operation name="Ping">
+ <input message="tns:PingRequest"/>
+ <output message="tns:PingResponse"/>
+ </operation>
+ </portType>
+
+ <plnk:partnerLinkType name="PingPartnerLinkType">
+ <plnk:role name="Provider" portType="tns:PingPortType"/>
+ </plnk:partnerLinkType>
+
+ <!--
+
+ This is an abstract interface/portType definition. Note the lack of
+ binding and service: these are defined by the HTTP binding component.
+ See ping-http/Ping.wsdl for details.
+
+ -->
+
+</definitions>
Propchange: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/src/main/resources/Ping.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/src/main/resources/Pong.wsdl
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/src/main/resources/Pong.wsdl?rev=882603&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/src/main/resources/Pong.wsdl (added)
+++ ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/src/main/resources/Pong.wsdl Fri Nov 20 15:27:50 2009
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<definitions name="Pong"
+ targetNamespace="urn:/Pong.wsdl"
+ xmlns:tns="urn:/Pong.wsdl"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+ xmlns="http://schemas.xmlsoap.org/wsdl/">
+
+ <types>
+ <schema targetNamespace="urn:/Pong.wsdl"
+ xmlns="http://www.w3.org/2000/10/XMLSchema">
+ <element name="PongRequest">
+ <complexType>
+ <all>
+ <element name="text" type="string"/>
+ </all>
+ </complexType>
+ </element>
+ <element name="PongResponse">
+ <complexType>
+ <all>
+ <element name="text" type="string"/>
+ </all>
+ </complexType>
+ </element>
+ </schema>
+ </types>
+
+ <message name="PongRequest">
+ <part name="body" element="tns:PongRequest"/>
+ </message>
+
+ <message name="PongResponse">
+ <part name="body" element="tns:PongResponse"/>
+ </message>
+
+ <portType name="PongPortType">
+ <operation name="Pong">
+ <input message="tns:PongRequest"/>
+ <output message="tns:PongResponse"/>
+ </operation>
+ </portType>
+
+ <plnk:partnerLinkType name="PongPartnerLinkType">
+ <plnk:role name="Provider" portType="tns:PongPortType"/>
+ </plnk:partnerLinkType>
+
+ <!--
+
+ This is an abstract interface/portType definition. Note the lack of
+ binding and service. Since Pong is only exposed on the JBI bus, the
+ JBI endpoint is defined in Pong.dd.
+
+ -->
+
+</definitions>
Propchange: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/common/src/main/resources/Pong.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/http-su/pom.xml
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/http-su/pom.xml?rev=882603&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/http-su/pom.xml (added)
+++ ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/http-su/pom.xml Fri Nov 20 15:27:50 2009
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.apache.ode.ping-pong</groupId>
+ <artifactId>pom</artifactId>
+ <version>1.0.0</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.ode.ping-pong</groupId>
+ <artifactId>ping-pong-http-su</artifactId>
+ <packaging>jbi-service-unit</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>common</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+
+ <properties>
+ <componentName>servicemix-http</componentName>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>common</artifactId>
+ <version>${project.version}</version>
+ <type>jar</type>
+ <overWrite>true</overWrite>
+ <outputDirectory>${project.build.directory}/classes</outputDirectory>
+ <includes>**/*.*</includes>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Propchange: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/http-su/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/http-su/src/main/resources/xbean.xml
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/http-su/src/main/resources/xbean.xml?rev=882603&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/http-su/src/main/resources/xbean.xml (added)
+++ ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/http-su/src/main/resources/xbean.xml Fri Nov 20 15:27:50 2009
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<beans xmlns:http="http://servicemix.apache.org/http/1.0"
+ xmlns:ping="urn:/Ping.wsdl"
+ xmlns:pong="urn:/Pong.wsdl"
+ >
+ <http:endpoint
+ service="ping:PingService"
+ endpoint="http"
+ targetService="ping:PingService"
+ targetEndpoint="PingPort"
+ defaultOperation="Ping"
+ role="consumer"
+ locationURI="http://localhost:8192/PingHttp/"
+ defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
+ wsdlResource="classpath:Ping.wsdl"
+ soapVersion="1.1"
+ soap="true" />
+</beans>
Propchange: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/http-su/src/main/resources/xbean.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/pom.xml
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/pom.xml?rev=882603&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/pom.xml (added)
+++ ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/pom.xml Fri Nov 20 15:27:50 2009
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.apache.ode.ping-pong</groupId>
+ <artifactId>pom</artifactId>
+ <version>1.0.0</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.ode.ping-pong</groupId>
+ <artifactId>ping-pong-ode-su-${processRevision}</artifactId>
+ <packaging>jbi-service-unit</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>common</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+
+ <properties>
+ <componentName>OdeBpelEngine</componentName>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>common</artifactId>
+ <version>${project.version}</version>
+ <type>jar</type>
+ <overWrite>true</overWrite>
+ <outputDirectory>${project.build.directory}/classes</outputDirectory>
+ <includes>**/*.*</includes>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/java/org/apache/ode/ping/AttachPing.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/java/org/apache/ode/ping/AttachPing.java?rev=882603&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/java/org/apache/ode/ping/AttachPing.java (added)
+++ ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/java/org/apache/ode/ping/AttachPing.java Fri Nov 20 15:27:50 2009
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.ode.ping;
+
+public class AttachPing {
+
+ public static String attachPing(String ping) {
+ return "Java attached ping to: "+ping;
+ }
+
+}
Propchange: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/java/org/apache/ode/ping/AttachPing.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/Ping.bpel
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/Ping.bpel?rev=882603&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/Ping.bpel (added)
+++ ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/Ping.bpel Fri Nov 20 15:27:50 2009
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<process
+ name="Ping"
+ xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ targetNamespace="urn:/Ping.bpel"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:tns="urn:/Ping.bpel"
+ xmlns:ping="urn:/Ping.wsdl"
+ xmlns:pong="urn:/Pong.wsdl"
+ xmlns:fun="java:org.apache.ode.ping.AttachPing"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="Ping.wsdl"
+ namespace="urn:/Ping.wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <import location="Pong.wsdl"
+ namespace="urn:/Pong.wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="PingPartnerLink"
+ partnerLinkType="ping:PingPartnerLinkType"
+ myRole="Provider" />
+ <partnerLink name="PongPartnerLink"
+ partnerLinkType="pong:PongPartnerLinkType"
+ partnerRole="Provider"
+ initializePartnerRole="yes" />
+ </partnerLinks>
+
+ <variables>
+ <variable messageType="ping:PingRequest" name="pingRequest"/>
+ <variable messageType="ping:PingResponse" name="pingResponse"/>
+ <variable messageType="pong:PongRequest" name="pongRequest"/>
+ <variable messageType="pong:PongResponse" name="pongResponse"/>
+ <variable type="xsd:string" name="text" />
+ </variables>
+
+ <sequence name="Main">
+ <receive name="pingReceive"
+ createInstance="yes"
+ operation="Ping"
+ partnerLink="PingPartnerLink"
+ portType="ping:PingPortType"
+ variable="pingRequest"/>
+
+ <assign name="assignPongRequest">
+ <!-- add "ping" text to the input text -->
+ <copy>
+ <from>fun:attachPing($pingRequest.body/ping:text/text())</from>
+ <to variable="text"/>
+ </copy>
+ <!-- initialize pongRequest -->
+ <copy>
+ <from>
+ <literal>
+ <pong:PongRequest>
+ <pong:text/>
+ </pong:PongRequest>
+ </literal>
+ </from>
+ <to>$pongRequest.body</to>
+ </copy>
+ <!-- copy new text into pongRequest -->
+ <copy>
+ <from>$text</from>
+ <to>$pongRequest.body/pong:text</to>
+ </copy>
+ </assign>
+
+ <invoke name="invokePong"
+ operation="Pong"
+ inputVariable="pongRequest"
+ outputVariable="pongResponse"
+ partnerLink="PongPartnerLink"
+ portType="pong:PongPortType"/>
+
+ <assign name="assignPingResponse">
+ <copy>
+ <from>$pongResponse.body/pong:text</from>
+ <to>$text</to>
+ </copy>
+ <!-- initialize pingResponse -->
+ <copy>
+ <from>
+ <literal>
+ <ping:PingResponse>
+ <ping:text/>
+ </ping:PingResponse>
+ </literal>
+ </from>
+ <to>$pingResponse.body</to>
+ </copy>
+ <!-- copy new text into pingResponse -->
+ <copy>
+ <from>$text</from>
+ <to>$pingResponse.body/ping:text</to>
+ </copy>
+ </assign>
+
+ <reply name="pingReply"
+ partnerLink="PingPartnerLink"
+ portType="ping:PingPortType"
+ operation="Ping"
+ variable="pingResponse"/>
+ </sequence>
+</process>
Propchange: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/Ping.bpel
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/Pong.bpel
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/Pong.bpel?rev=882603&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/Pong.bpel (added)
+++ ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/Pong.bpel Fri Nov 20 15:27:50 2009
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<process
+ name="Pong"
+ xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ targetNamespace="urn:/Pong.bpel"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:tns="urn:/Pong.bpel"
+ xmlns:pong="urn:/Pong.wsdl"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
+
+ <import location="Pong.wsdl"
+ namespace="urn:/Pong.wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <import location="Pong.wsdl"
+ namespace="urn:/Pong.wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="PongPartnerLink"
+ partnerLinkType="pong:PongPartnerLinkType"
+ myRole="Provider" />
+ </partnerLinks>
+
+ <variables>
+ <variable messageType="pong:PongRequest" name="pongRequest"/>
+ <variable messageType="pong:PongResponse" name="pongResponse"/>
+ <variable type="xsd:string" name="text" />
+ </variables>
+
+ <sequence name="Main">
+ <receive name="pongReceive"
+ createInstance="yes"
+ operation="Pong"
+ partnerLink="PongPartnerLink"
+ portType="pong:PongPortType"
+ variable="pongRequest"/>
+
+ <assign name="assignPongRequest">
+ <!-- add "ping" text to the input text -->
+ <copy>
+ <from>concat($pongRequest.body/pong:text, ' pong')</from>
+ <to>$text</to>
+ </copy>
+ <!-- initialize pongResponse -->
+ <copy>
+ <from>
+ <literal>
+ <pong:PongRequest>
+ <pong:text/>
+ </pong:PongRequest>
+ </literal>
+ </from>
+ <to>$pongResponse.body</to>
+ </copy>
+ <!-- copy new text into pongResponse -->
+ <copy>
+ <from>$text</from>
+ <to>$pongResponse.body/pong:text</to>
+ </copy>
+ </assign>
+
+ <reply name="pongReply"
+ partnerLink="PongPartnerLink"
+ portType="pong:PongPortType"
+ operation="Pong"
+ variable="pongResponse"/>
+ </sequence>
+</process>
Propchange: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/Pong.bpel
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/deploy.xml
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/deploy.xml?rev=882603&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/deploy.xml (added)
+++ ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/deploy.xml Fri Nov 20 15:27:50 2009
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+ xmlns:pingProcess="urn:/Ping.bpel"
+ xmlns:pongProcess="urn:/Pong.bpel"
+ xmlns:ping="urn:/Ping.wsdl"
+ xmlns:pong="urn:/Pong.wsdl">
+
+ <process name="pingProcess:Ping">
+ <active>true</active>
+ <provide partnerLink="PingPartnerLink">
+ <service name="ping:PingService" port="PingPort"/>
+ </provide>
+ <invoke partnerLink="PongPartnerLink">
+ <service name="pong:PongService" port="PongPort"/>
+ </invoke>
+ </process>
+ <process name="pongProcess:Pong">
+ <active>true</active>
+ <provide partnerLink="PongPartnerLink">
+ <service name="pong:PongService" port="PongPort"/>
+ </provide>
+ </process>
+
+</deploy>
Propchange: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/ode-su/src/main/resources/deploy.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/pom.xml
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/pom.xml?rev=882603&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/pom.xml (added)
+++ ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/pom.xml Fri Nov 20 15:27:50 2009
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.ode.ping-pong</groupId>
+ <artifactId>pom</artifactId>
+ <packaging>pom</packaging>
+ <version>1.0.0</version>
+
+ <properties>
+ <jbi-maven-plugin-version>4.0</jbi-maven-plugin-version>
+ <processRevision>1</processRevision>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.servicemix.tooling</groupId>
+ <artifactId>jbi-maven-plugin</artifactId>
+ <version>${jbi-maven-plugin-version}</version>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <modules>
+ <module>common</module>
+ <module>ode-su</module>
+ <module>http-su</module>
+ <module>sa</module>
+ </modules>
+</project>
Propchange: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/sa/pom.xml
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/sa/pom.xml?rev=882603&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/sa/pom.xml (added)
+++ ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/sa/pom.xml Fri Nov 20 15:27:50 2009
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.apache.ode.ping-pong</groupId>
+ <artifactId>pom</artifactId>
+ <version>1.0.0</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.ode.ping-pong</groupId>
+ <artifactId>ping-pong-sa</artifactId>
+ <packaging>jbi-service-assembly</packaging>
+
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.ode.ping-pong</groupId>
+ <artifactId>ping-pong-ode-su-${processRevision}</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ode.ping-pong</groupId>
+ <artifactId>ping-pong-http-su</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.servicemix.tooling</groupId>
+ <artifactId>jbi-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate-jbi-service-assembly-descriptor</goal>
+ </goals>
+ <configuration>
+ <name>${project.artifactId}-${processRevision}</name>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Propchange: ode/branches/APACHE_ODE_1.X/distro/src/examples-jbi/maven2/ping-pong/sa/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native