Modified: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/java/org/apache/ode/jbi/JbiTestBase.java
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/java/org/apache/ode/jbi/JbiTestBase.java?rev=812654&r1=812653&r2=812654&view=diff
==============================================================================
--- 
ode/branches/APACHE_ODE_1.X/jbi/src/test/java/org/apache/ode/jbi/JbiTestBase.java
 (original)
+++ 
ode/branches/APACHE_ODE_1.X/jbi/src/test/java/org/apache/ode/jbi/JbiTestBase.java
 Tue Sep  8 19:15:39 2009
@@ -110,8 +110,10 @@
             
             String request = testProperties.getProperty(prefix + "request");
             if (request == null) {
-                if (i == 0) continue;
-                else break;
+                if (i == 0) {
+                    i++;
+                    continue;
+                } else break;
             }
             if (request.startsWith("@")) {
                 request = 
inputStreamToString(getClass().getResourceAsStream("/" + getTestName() + "/" + 
request.substring(1)));

Added: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/java/org/apache/ode/jbi/ReplayerJbiTest.java
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/java/org/apache/ode/jbi/ReplayerJbiTest.java?rev=812654&view=auto
==============================================================================
--- 
ode/branches/APACHE_ODE_1.X/jbi/src/test/java/org/apache/ode/jbi/ReplayerJbiTest.java
 (added)
+++ 
ode/branches/APACHE_ODE_1.X/jbi/src/test/java/org/apache/ode/jbi/ReplayerJbiTest.java
 Tue Sep  8 19:15:39 2009
@@ -0,0 +1,23 @@
+/*
+ * 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.jbi;
+
+public class ReplayerJbiTest extends JbiTestBase {
+    public void testCommunication() throws Exception {
+        go();
+    }
+}

Propchange: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/java/org/apache/ode/jbi/ReplayerJbiTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelation.bpel
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelation.bpel?rev=812654&view=auto
==============================================================================
--- 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelation.bpel
 (added)
+++ 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelation.bpel
 Tue Sep  8 19:15:39 2009
@@ -0,0 +1,109 @@
+<?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.
+  -->
+<bpws:process 
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:ns="http://sample.bpel.org/bpel/sampleArtifacts"; 
xmlns:tns="http://sample.bpel.org/bpel/sample"; 
xmlns:ode="http://www.apache.org/ode/type/extension"; exitOnStandardFault="yes" 
name="OnEventCorrelation" suppressJoinFailure="yes" 
targetNamespace="http://sample.bpel.org/bpel/sample"; 
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+  <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"; 
location="OnEventCorrelation.wsdl" 
namespace="http://sample.bpel.org/bpel/sample"/>
+  <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"; 
location="OnEventCorrelationArtifacts.wsdl" 
namespace="http://sample.bpel.org/bpel/sampleArtifacts"/>
+  <bpws:partnerLinks>
+    <bpws:partnerLink myRole="OnEventCorrelationProvider" 
partnerRole="OnEventCorrelationProvider" name="client" 
partnerLinkType="tns:OnEventCorrelation"/>
+  </bpws:partnerLinks>
+  <bpws:variables>
+    <bpws:variable messageType="tns:OnEventCorrelationMessage" name="input"/>
+    <bpws:variable messageType="tns:OnEventCorrelationMessage" name="output"/>
+    <bpws:variable type="xsd:int" name="i"/>
+    <bpws:variable type="xsd:int" name="j"/>
+  </bpws:variables>
+  <bpws:correlationSets>
+    <bpws:correlationSet name="CorrelationSet" properties="ns:input 
ns:input2"/>
+  </bpws:correlationSets>
+  <bpws:sequence name="main">
+    <bpws:scope>
+      <bpws:sequence>
+        <bpws:receive createInstance="yes" operation="initiate" 
partnerLink="client" portType="tns:OnEventCorrelation" variable="input" 
messageExchange="mex1">
+          <bpws:correlations>
+            <bpws:correlation initiate="yes" set="CorrelationSet"/>
+          </bpws:correlations>
+        </bpws:receive>
+        <bpws:invoke partnerLink="client" operation="initiate" 
outputVariable="output" inputVariable="input"/>
+        <bpws:assign>
+          <bpws:copy>
+            <bpws:from>concat('first-', $ode:currentEventDateTime, ';', 
$output.payload)</bpws:from>
+            <bpws:to>$output.payload</bpws:to>
+          </bpws:copy>
+          <bpws:copy>
+            <bpws:from>0</bpws:from>
+            <bpws:to>$i</bpws:to>
+          </bpws:copy>
+        </bpws:assign>
+        <bpws:reply operation="initiate" partnerLink="client" 
variable="output" messageExchange="mex1"/>
+      </bpws:sequence>
+    </bpws:scope>
+    <bpws:while>
+      <bpws:condition>$i &lt; 4 </bpws:condition>
+      <bpws:sequence>
+        <bpws:empty name="e1"/>
+        <bpws:assign>
+          <bpws:copy>
+            <bpws:from>$i + 1</bpws:from>
+            <bpws:to>$i</bpws:to>
+          </bpws:copy>
+        </bpws:assign>
+        <bpws:pick>
+          <bpws:onMessage operation="initiate" partnerLink="client" 
portType="tns:OnEventCorrelation" variable="input" messageExchange="mex2">
+            <bpws:correlations>
+              <bpws:correlation initiate="no" set="CorrelationSet"/>
+            </bpws:correlations>
+            <bpws:sequence>
+              <bpws:assign>
+                <bpws:copy>
+                  <bpws:from>concat('request-', $ode:currentEventDateTime, 
';', $output.payload)</bpws:from>
+                  <bpws:to>$output.payload</bpws:to>
+                </bpws:copy>
+              </bpws:assign>
+              <bpws:reply operation="initiate" partnerLink="client" 
variable="output" messageExchange="mex2"/>
+            </bpws:sequence>
+          </bpws:onMessage>
+          <bpws:onAlarm>
+            <bpws:until>$ode:currentEventDateTime + 
xsd:dayTimeDuration('PT10S')</bpws:until>
+            <bpws:assign>
+              <bpws:copy>
+                <bpws:from>concat('timer-',$ode:currentEventDateTime, ';', 
$output.payload)</bpws:from>
+                <bpws:to>$output.payload</bpws:to>
+              </bpws:copy>
+            </bpws:assign>
+          </bpws:onAlarm>
+        </bpws:pick>
+      </bpws:sequence>
+    </bpws:while>
+        
+    
+    <bpws:receive createInstance="no" operation="initiate" 
partnerLink="client" portType="tns:OnEventCorrelation" variable="input" 
messageExchange="mex3">
+          <bpws:correlations>
+            <bpws:correlation initiate="no" set="CorrelationSet"/>
+          </bpws:correlations>
+        </bpws:receive>
+        <bpws:assign>
+          <bpws:copy>
+            <bpws:from>concat('final-', $ode:currentEventDateTime)</bpws:from>
+            <bpws:to>$output.payload2</bpws:to>
+          </bpws:copy>
+        </bpws:assign>
+        <bpws:reply operation="initiate" partnerLink="client" 
variable="output" messageExchange="mex3"/>
+  </bpws:sequence>
+</bpws:process>

Added: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelation.wsdl
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelation.wsdl?rev=812654&view=auto
==============================================================================
--- 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelation.wsdl
 (added)
+++ 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelation.wsdl
 Tue Sep  8 19:15:39 2009
@@ -0,0 +1,66 @@
+<?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.
+  -->
+<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"; 
xmlns:tns="http://sample.bpel.org/bpel/sample"; 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
name="OnEventCorrelation" targetNamespace="http://sample.bpel.org/bpel/sample";
+xmlns:xsd="http://www.w3.org/2001/XMLSchema";
+>
+  <message name="OnEventCorrelationMessage">
+    <part type="xsd:string" name="payload"/>
+    <part type="xsd:string" name="payload2"/>
+  </message>
+  <portType name="OnEventCorrelation">
+    <operation name="initiate">
+      <input message="tns:OnEventCorrelationMessage"/>
+      <output message="tns:OnEventCorrelationMessage"/>
+    </operation>
+    <operation name="complete">
+      <input message="tns:OnEventCorrelationMessage"/>
+      <output message="tns:OnEventCorrelationMessage"/>
+    </operation>
+  </portType>
+  <binding name="OnEventCorrelationBinding" type="tns:OnEventCorrelation">
+    <wsdlsoap:binding style="rpc" 
transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="initiate">
+      <wsdlsoap:operation soapAction="initiate"/>
+      <input>
+        <wsdlsoap:body use="literal"/>
+      </input>
+      <output>
+        <wsdlsoap:body use="literal"/>
+      </output>
+    </operation>
+    <operation name="complete">
+      <wsdlsoap:operation soapAction="complete"/>
+      <input>
+        <wsdlsoap:body use="literal"/>
+      </input>
+      <output>
+        <wsdlsoap:body use="literal"/>
+      </output>
+    </operation>
+  </binding>
+  <service name="OnEventCorrelation">
+    <port binding="tns:OnEventCorrelationBinding" name="OnEventCorrelation">
+      <wsdlsoap:address 
location="http://localhost:8080/ode/processes/OnEventCorrelation/"/>
+    </port>
+  </service>
+    <plnk:partnerLinkType name="OnEventCorrelation">
+        <plnk:role name="OnEventCorrelationProvider" 
portType="tns:OnEventCorrelation"/>
+    </plnk:partnerLinkType>
+</definitions>

Propchange: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelation.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelation2.bpel
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelation2.bpel?rev=812654&view=auto
==============================================================================
--- 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelation2.bpel
 (added)
+++ 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelation2.bpel
 Tue Sep  8 19:15:39 2009
@@ -0,0 +1,47 @@
+<?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.
+  -->
+<bpws:process 
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:ns="http://sample.bpel.org/bpel/sampleArtifacts"; 
xmlns:tns="http://sample.bpel.org/bpel/sample"; exitOnStandardFault="yes" 
name="OnEventCorrelation2" suppressJoinFailure="yes" 
targetNamespace="http://sample.bpel.org/bpel/sample"; 
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+  <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"; 
location="OnEventCorrelation.wsdl" 
namespace="http://sample.bpel.org/bpel/sample"/>
+  <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"; 
location="OnEventCorrelationArtifacts.wsdl" 
namespace="http://sample.bpel.org/bpel/sampleArtifacts"/>
+  <bpws:partnerLinks>
+    <bpws:partnerLink myRole="OnEventCorrelationProvider" name="client" 
partnerLinkType="tns:OnEventCorrelation"/>
+  </bpws:partnerLinks>
+  <bpws:variables>
+    <bpws:variable messageType="tns:OnEventCorrelationMessage" name="input"/>
+    <bpws:variable messageType="tns:OnEventCorrelationMessage" name="output"/>
+    <bpws:variable type="xsd:int" name="i"/>
+    <bpws:variable type="xsd:int" name="j"/>
+  </bpws:variables>
+  <bpws:sequence name="main">
+    <bpws:scope>
+      <bpws:sequence>
+        <bpws:receive createInstance="yes" operation="initiate" 
partnerLink="client" portType="tns:OnEventCorrelation" variable="input" 
messageExchange="mex1">
+        </bpws:receive>
+        <bpws:assign>
+          <bpws:copy>
+            <bpws:from>'test2'</bpws:from>
+            <bpws:to>$output.payload</bpws:to>
+          </bpws:copy>
+        </bpws:assign>
+        <bpws:reply operation="initiate" partnerLink="client" 
variable="output" messageExchange="mex1"/>
+      </bpws:sequence>
+    </bpws:scope>
+  </bpws:sequence>
+</bpws:process>

Added: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelationArtifacts.wsdl
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelationArtifacts.wsdl?rev=812654&view=auto
==============================================================================
--- 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelationArtifacts.wsdl
 (added)
+++ 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelationArtifacts.wsdl
 Tue Sep  8 19:15:39 2009
@@ -0,0 +1,39 @@
+<?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.
+  -->
+<definitions 
+    xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"; 
+    xmlns:tns="http://sample.bpel.org/bpel/sampleArtifacts"; 
+    xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"; 
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
+    xmlns:bpel="http://sample.bpel.org/bpel/sample"; 
+    name="OnEventCorrelationArtifacts" 
+    targetNamespace="http://sample.bpel.org/bpel/sampleArtifacts"; 
+    xmlns="http://schemas.xmlsoap.org/wsdl/";
+    >
+<vprop:property name="input" type="xs:string"/>
+<vprop:propertyAlias messageType="bpel:OnEventCorrelationMessage" 
part="payload" propertyName="tns:input">
+<!--vprop:query><![CDATA[bpel:input]]></vprop:query-->
+</vprop:propertyAlias>
+<vprop:property name="input2" type="xs:string"/>
+<vprop:propertyAlias messageType="bpel:OnEventCorrelationMessage" 
part="payload2" propertyName="tns:input2">
+<!--vprop:query><![CDATA[bpel:input]]></vprop:query-->
+</vprop:propertyAlias>
+<import location="OnEventCorrelation.wsdl" 
namespace="http://sample.bpel.org/bpel/sample"/>
+</definitions>

Propchange: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/OnEventCorrelationArtifacts.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/deploy.xml
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/deploy.xml?rev=812654&view=auto
==============================================================================
--- 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/deploy.xml 
(added)
+++ 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/deploy.xml 
Tue Sep  8 19:15:39 2009
@@ -0,0 +1,41 @@
+<?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.
+  -->
+<dd:deploy xmlns:dd="http://www.apache.org/ode/schemas/dd/2007/03";
+    xmlns:bpel="http://sample.bpel.org/bpel/sample";
+    >
+
+    <dd:process
+        name="bpel:OnEventCorrelation" fileName="OnEventCorrelation.bpel">
+        <!--dd:process-events generate="none"/-->
+        <dd:property name="ble1">input</dd:property>
+        <dd:provide partnerLink="client">
+            <dd:service name="bpel:OnEventCorrelationInit" 
port="OnEventCorrelation" />
+        </dd:provide>
+        <dd:invoke partnerLink="client">
+            <dd:service name="bpel:OnEventCorrelation2Fwd" 
port="OnEventCorrelation2" />
+        </dd:invoke>
+    </dd:process>
+    <dd:process
+        name="bpel:OnEventCorrelation2" fileName="OnEventCorrelation2.bpel">
+        <dd:provide partnerLink="client">
+            <dd:service name="bpel:OnEventCorrelation2" 
port="OnEventCorrelation2" />
+        </dd:provide>
+    </dd:process>
+</dd:deploy>

Propchange: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/deploy.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/initiateRequest.xml
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/initiateRequest.xml?rev=812654&view=auto
==============================================================================
--- 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/initiateRequest.xml
 (added)
+++ 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/initiateRequest.xml
 Tue Sep  8 19:15:39 2009
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<initiate>
+   <payload>abc7</payload>
+   <payload2>abc8</payload2>
+</initiate>
+

Propchange: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/initiateRequest.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/replayRequest.xml
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/replayRequest.xml?rev=812654&view=auto
==============================================================================
--- 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/replayRequest.xml
 (added)
+++ 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/replayRequest.xml
 Tue Sep  8 19:15:39 2009
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<pmap:replay xmlns:ns="http://www.apache.org/ode/pmapi/types/2006/08/02/"; 
xmlns:pmap="http://www.apache.org/ode/pmapi";>
+       <replay>
+<!--
+            <ns:replaceInstance>454277</ns:replaceInstance>
+            <ns:upgradeInstance>?</ns:upgradeInstance>
+-->
+            <ns:restoreInstance>
+           <ns:processType 
xmlns:p="http://sample.bpel.org/bpel/sample";>p:OnEventCorrelation</ns:processType>
+            <exchange 
xmlns="http://www.apache.org/ode/pmapi/types/2006/08/02/";>
+               <type>M</type>
+               <createTime>2009-04-01T16:41:29.873+02:00</createTime>
+               <service 
xmlns:sam="http://sample.bpel.org/bpel/sample";>sam:OnEventCorrelationInit</service>
+               <operation>initiate</operation>
+               <in>
+                  <initiate xmlns:sam="http://sample.bpel.org/bpel/sample"; 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns="">
+                     <payload>abc7</payload>
+                     <payload2>abc8</payload2>
+                  </initiate>
+               </in>
+               <out>
+                  <message xmlns="">
+                     <payload>test1</payload>
+                     <payload2/>
+                  </message>
+               </out>
+            </exchange>
+
+            <exchange 
xmlns="http://www.apache.org/ode/pmapi/types/2006/08/02/";>
+               <type>P</type>
+               <createTime>2009-04-01T16:41:32.998+02:00</createTime>
+               <service 
xmlns:sam="http://sample.bpel.org/bpel/sample";>sam:OnEventCorrelation</service>
+               <operation>initiate</operation>
+               <in>
+                  <initiate xmlns:sam="http://sample.bpel.org/bpel/sample"; 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns="">
+                     <payload>abc7</payload>
+                     <payload2>abc8</payload2>
+                  </initiate>
+               </in>
+               <out>
+                  <message xmlns="">
+                     <payload>test5</payload>
+                     <payload2/>
+                  </message>
+               </out>
+            </exchange>
+            <exchange 
xmlns="http://www.apache.org/ode/pmapi/types/2006/08/02/";>
+               <type>M</type>
+               <createTime>2009-04-01T16:41:40.873+02:00</createTime>
+               <service 
xmlns:sam="http://sample.bpel.org/bpel/sample";>sam:OnEventCorrelationInit</service>
+               <operation>initiate</operation>
+               <in>
+                  <initiate xmlns:sam="http://sample.bpel.org/bpel/sample"; 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns="">
+                     <payload>abc7</payload>
+                     <payload2>abc8</payload2>
+                  </initiate>
+               </in>
+               <out>
+                  <message xmlns="">
+                     <payload>test1</payload>
+                     <payload2/>
+                  </message>
+               </out>
+            </exchange>
+            </ns:restoreInstance>
+       </replay>
+</pmap:replay>
+

Propchange: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/replayRequest.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/smx.xml
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/smx.xml?rev=812654&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/smx.xml 
(added)
+++ ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/smx.xml 
Tue Sep  8 19:15:39 2009
@@ -0,0 +1,111 @@
+<?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:sm="http://servicemix.apache.org/config/1.0";
+       xmlns:http="http://servicemix.apache.org/http/1.0";
+       xmlns:eip="http://servicemix.apache.org/eip/1.0";
+       xmlns:util="http://www.springframework.org/schema/util";
+       xmlns:jencks="http://jencks.org/2.0";
+       xmlns:mws="http://ode/bpel/unit-test.wsdl";
+       xmlns:bpel="http://sample.bpel.org/bpel/sample";
+       >
+
+    <bean id="transactionManager" 
class="org.apache.geronimo.transaction.manager.GeronimoTransactionManager"/>
+
+  <jencks:connectionTracker id="connectionTracker" 
geronimoTransactionManager="#transactionManager" />
+    
+  <jencks:workManager
+            id="workManager"
+            threadPoolSize="200"
+            transactionManager="#transactionManager" />
+  
+  <jencks:bootstrapContext
+            id="bootstrapContext"
+            workManager="#workManager"
+            transactionManager="#transactionManager" />
+  
+  <jencks:poolingSupport 
+            id="poolingSupport" 
+            connectionMaxIdleMinutes="5"
+            poolMaxSize="20"
+            />
+  
+  <jencks:connectionManager
+            id="connectionManager"
+            containerManagedSecurity="false"
+            transaction="xa"
+            transactionManager="#transactionManager"
+            poolingSupport="#poolingSupport"
+            connectionTracker="#connectionTracker" 
+            />
+
+    <bean id="localDerbyMCF" class="org.tranql.connector.derby.EmbeddedXAMCF">
+        <property name="databaseName" value="target/test/testdb"/>
+        <property name="createDatabase" value="true"/>
+        <property name="userName" value = "sa"/>
+        <property name="password" value = ""/>
+    </bean>
+    <bean id="localDerbyDataSource" 
class="org.springframework.jca.support.LocalConnectionFactoryBean">
+        <property name="managedConnectionFactory" ref="localDerbyMCF"/>
+        <property name="connectionManager" ref="connectionManager"/>
+    </bean>
+    
+    <bean id="jndi"
+          class="org.apache.xbean.spring.jndi.SpringInitialContextFactory" 
+          factory-method="makeInitialContext"
+          singleton="true"
+          depends-on="bootstrapContext"
+          >
+      <property name="entries" ref="jndiEntries" />
+    </bean>
+
+    <util:map id="jndiEntries">
+        <entry key="testds" value-ref="localDerbyDataSource"/>
+    </util:map>
+    
+
+
+    <sm:container 
+        id="jbi" 
+        embedded="true" 
+        rootDir="target/test/smx"
+        transactionManager="#transactionManager"
+        depends-on="jndi"
+        >
+        <sm:activationSpecs>
+            <sm:activationSpec id="ms-eip">
+                <sm:component>
+                    <eip:component>
+                        <eip:endpoints>
+                         <eip:content-based-router 
service="bpel:OnEventCorrelation2Fwd" endpoint="OnEventCorrelation2" 
forwardOperation="true">
+                           <eip:rules>
+                             <eip:routing-rule>
+                               <eip:target>
+                                 <eip:exchange-target 
service="bpel:OnEventCorrelation2"/>
+                               </eip:target>
+                             </eip:routing-rule>
+                           </eip:rules>
+                         </eip:content-based-router>
+                        </eip:endpoints>
+                    </eip:component>
+                </sm:component>
+            </sm:activationSpec>
+        </sm:activationSpecs>
+    </sm:container>
+</beans>

Propchange: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/smx.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/test.properties
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/test.properties?rev=812654&view=auto
==============================================================================
--- 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/test.properties
 (added)
+++ 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/test.properties
 Tue Sep  8 19:15:39 2009
@@ -0,0 +1,26 @@
+#
+#    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.
+#
+
+1nmr.service={http://www.apache.org/ode/pmapi}InstanceManagementService
+1nmr.operation=replay
[email protected]
+1response=.*
+2nmr.service={http://sample.bpel.org/bpel/sample}OnEventCorrelationInit
+2nmr.operation=initiate
[email protected]
+2response=.*>timer-2009-04-01T14:42:00.873Z;timer-2009-04-01T14:41:50.873Z;request-2009-04-01T14:41:40.873Z;timer-2009-04-01T14:41:39.873Z;first-2009-04-01T14:41:29.873Z;test5<.*
+

Propchange: 
ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/ReplayerJbiTest/test.properties
------------------------------------------------------------------------------
    svn:eol-style = native


Reply via email to