You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by th...@apache.org on 2006/05/14 05:09:15 UTC

svn commit: r406210 [13/15] - in /webservices/kandula/site/2: ./ images/ images/logos/ style/ xref-test/ xref-test/org/ xref-test/org/apache/ xref-test/org/apache/kandula/ xref-test/org/apache/kandula/context/ xref-test/org/apache/kandula/coordinator/ ...

Added: webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/CompletionInitiatorPortTypeRawXMLSkeleton.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/CompletionInitiatorPortTypeRawXMLSkeleton.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/CompletionInitiatorPortTypeRawXMLSkeleton.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/CompletionInitiatorPortTypeRawXMLSkeleton.html Sat May 13 20:09:04 2006
@@ -0,0 +1,79 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>CompletionInitiatorPortTypeRawXMLSkeleton xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/kandula/wsat/completion/CompletionInitiatorPortTypeRawXMLSkeleton.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright  2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *  Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *  you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *  You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> *</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a>  <em class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a>  <em class="comment"> *  See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *  limitations under the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../../org/apache/kandula/wsat/completion/package-summary.html">org.apache.kandula.wsat.completion</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> org.apache.axiom.om.OMElement;
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.axis2.AxisFault;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.axis2.context.OperationContext;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.wsdl.WSDLConstants;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.kandula.Constants;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.kandula.Status;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.kandula.context.AbstractContext;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.kandula.storage.StorageFactory;
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  <em>/**<em>*</em></em>
+<a name="29" href="#29">29</a>  <em> * @author &lt;a href="<a href="mailto:thilina@opensource.lk" target="alexandria_uri">mailto:thilina@opensource.lk</a>"> Thilina Gunarathne &lt;/a></em>
+<a name="30" href="#30">30</a>  <em> */</em>
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/kandula/wsat/completion/CompletionInitiatorPortTypeRawXMLSkeleton.html">CompletionInitiatorPortTypeRawXMLSkeleton</a> {
+<a name="33" href="#33">33</a>  	<strong>private</strong> OperationContext opContext;
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  	<strong>public</strong> <strong>void</strong> setOperationContext(OperationContext opContext) {
+<a name="36" href="#36">36</a>  		<strong>this</strong>.opContext = opContext;
+<a name="37" href="#37">37</a>  	}
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  	<strong>public</strong> OMElement committedOperation(OMElement requestElement)
+<a name="40" href="#40">40</a>  			throws AxisFault {
+<a name="41" href="#41">41</a>  		StorageFactory.getInstance().setConfigurationContext(
+<a name="42" href="#42">42</a>  				opContext.getServiceContext().getConfigurationContext());
+<a name="43" href="#43">43</a>  		OMElement header = opContext.getMessageContext(
+<a name="44" href="#44">44</a>  				WSDLConstants.MESSAGE_LABEL_IN_VALUE).getEnvelope().getHeader();
+<a name="45" href="#45">45</a>  		String requesterID = header.getFirstChildWithName(
+<a name="46" href="#46">46</a>  				Constants.REQUESTER_ID_PARAMETER).getText();
+<a name="47" href="#47">47</a>  		AbstractContext context = (AbstractContext) StorageFactory
+<a name="48" href="#48">48</a>  				.getInstance().getInitiatorStore().get(requesterID);
+<a name="49" href="#49">49</a>  		context.setStatus(Status.ParticipantStatus.STATUS_COMMITED);
+<a name="50" href="#50">50</a>  		<strong>return</strong> <strong>null</strong>;
+<a name="51" href="#51">51</a>  	}
+<a name="52" href="#52">52</a>  
+<a name="53" href="#53">53</a>  	<strong>public</strong> OMElement abortedOperation(OMElement requestElement)
+<a name="54" href="#54">54</a>  			throws AxisFault {
+<a name="55" href="#55">55</a>  		StorageFactory.getInstance().setConfigurationContext(
+<a name="56" href="#56">56</a>  				opContext.getServiceContext().getConfigurationContext());
+<a name="57" href="#57">57</a>  		OMElement header = opContext.getMessageContext(
+<a name="58" href="#58">58</a>  				WSDLConstants.MESSAGE_LABEL_IN_VALUE).getEnvelope().getHeader();
+<a name="59" href="#59">59</a>  		String requesterID = header.getFirstChildWithName(
+<a name="60" href="#60">60</a>  				Constants.REQUESTER_ID_PARAMETER).getText();
+<a name="61" href="#61">61</a>  		AbstractContext context = (AbstractContext) StorageFactory
+<a name="62" href="#62">62</a>  				.getInstance().getInitiatorStore().get(requesterID);
+<a name="63" href="#63">63</a>  		context.setStatus(Status.ParticipantStatus.STATUS_ABORTED);
+<a name="64" href="#64">64</a>  		<strong>return</strong> <strong>null</strong>;
+<a name="65" href="#65">65</a>  	}
+<a name="66" href="#66">66</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/CompletionInitiatorPortTypeRawXMLStub.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/CompletionInitiatorPortTypeRawXMLStub.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/CompletionInitiatorPortTypeRawXMLStub.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/CompletionInitiatorPortTypeRawXMLStub.html Sat May 13 20:09:04 2006
@@ -0,0 +1,86 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>CompletionInitiatorPortTypeRawXMLStub xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/kandula/wsat/completion/CompletionInitiatorPortTypeRawXMLStub.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright  2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *  Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *  you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *  You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> *</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a>  <em class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a>  <em class="comment"> *  See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *  limitations under the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../../org/apache/kandula/wsat/completion/package-summary.html">org.apache.kandula.wsat.completion</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> org.apache.axis2.addressing.EndpointReference;
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.axis2.description.AxisOperation;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.axis2.description.AxisService;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.description.OutOnlyAxisOperation;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.kandula.Constants;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.kandula.faults.AbstractKandulaException;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.kandula.utility.KandulaConfiguration;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.kandula.wsat.AbstractATNotifierStub;
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  <em>/**<em>*</em></em>
+<a name="29" href="#29">29</a>  <em> * @author &lt;a href="<a href="mailto:thilina@opensource.lk" target="alexandria_uri">mailto:thilina@opensource.lk</a>"> Thilina Gunarathne &lt;/a></em>
+<a name="30" href="#30">30</a>  <em> */</em>
+<a name="31" href="#31">31</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/kandula/wsat/completion/CompletionInitiatorPortTypeRawXMLStub.html">CompletionInitiatorPortTypeRawXMLStub</a> <strong>extends</strong>
+<a name="32" href="#32">32</a>  		AbstractATNotifierStub {
+<a name="33" href="#33">33</a>  	<strong>public</strong> <strong>static</strong> <strong>final</strong> String AXIS2_HOME = <span class="string">"."</span>;
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  	<em>/**<em>*</em></em>
+<a name="36" href="#36">36</a>  <em>	 * Constructor</em>
+<a name="37" href="#37">37</a>  <em>	 * </em>
+<a name="38" href="#38">38</a>  <em>	 * @throws AbstractKandulaException</em>
+<a name="39" href="#39">39</a>  <em>	 */</em>
+<a name="40" href="#40">40</a>  	<strong>public</strong> <a href="../../../../../org/apache/kandula/wsat/completion/CompletionInitiatorPortTypeRawXMLStub.html">CompletionInitiatorPortTypeRawXMLStub</a>(
+<a name="41" href="#41">41</a>  			EndpointReference targetEndpoint) throws AbstractKandulaException {
+<a name="42" href="#42">42</a>  		<strong>super</strong>(KandulaConfiguration.getInstance().getCoordinatorRepo(),
+<a name="43" href="#43">43</a>  				KandulaConfiguration.getInstance().getCoordinatorAxis2Conf(),
+<a name="44" href="#44">44</a>  				<strong>new</strong> AxisService(<span class="string">"CompletionInitiatorPortType"</span>));
+<a name="45" href="#45">45</a>  		<strong>this</strong>.toEPR = targetEndpoint;
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>  		<em class="comment">// creating the operations</em>
+<a name="48" href="#48">48</a>  		AxisOperation operation;
+<a name="49" href="#49">49</a>  		operations = <strong>new</strong> AxisOperation[2];
+<a name="50" href="#50">50</a>  
+<a name="51" href="#51">51</a>  		operation = <strong>new</strong> OutOnlyAxisOperation();
+<a name="52" href="#52">52</a>  		operation.setName(<strong>new</strong> javax.xml.namespace.QName(Constants.WS_AT,
+<a name="53" href="#53">53</a>  				<span class="string">"committedOperation"</span>));
+<a name="54" href="#54">54</a>  		operations[0] = operation;
+<a name="55" href="#55">55</a>  		service.addOperation(operation);
+<a name="56" href="#56">56</a>  
+<a name="57" href="#57">57</a>  		operation = <strong>new</strong> OutOnlyAxisOperation();
+<a name="58" href="#58">58</a>  		operation.setName(<strong>new</strong> javax.xml.namespace.QName(Constants.WS_AT,
+<a name="59" href="#59">59</a>  				<span class="string">"abortedOperation"</span>));
+<a name="60" href="#60">60</a>  		operations[1] = operation;
+<a name="61" href="#61">61</a>  		service.addOperation(operation);
+<a name="62" href="#62">62</a>  
+<a name="63" href="#63">63</a>  	}
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>  	<strong>public</strong> <strong>void</strong> committedOperation() throws AbstractKandulaException {
+<a name="66" href="#66">66</a>  		<strong>this</strong>.notify(<span class="string">"Committed"</span>, Constants.WS_AT_COMMITTED, 0, <strong>null</strong>);
+<a name="67" href="#67">67</a>  	}
+<a name="68" href="#68">68</a>  
+<a name="69" href="#69">69</a>  	<strong>public</strong> <strong>void</strong> abortedOperation() throws AbstractKandulaException {
+<a name="70" href="#70">70</a>  		<strong>this</strong>.notify(<span class="string">"Aborted"</span>, Constants.WS_AT_ABORTED, 1, <strong>null</strong>);
+<a name="71" href="#71">71</a>  	}
+<a name="72" href="#72">72</a>  
+<a name="73" href="#73">73</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/CompletionInitiatorServiceListener.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/CompletionInitiatorServiceListener.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/CompletionInitiatorServiceListener.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/CompletionInitiatorServiceListener.html Sat May 13 20:09:04 2006
@@ -0,0 +1,112 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>CompletionInitiatorServiceListener xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/kandula/wsat/completion/CompletionInitiatorServiceListener.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright  2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *  Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *  you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *  You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> *</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a>  <em class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a>  <em class="comment"> *  See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *  limitations under the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../../org/apache/kandula/wsat/completion/package-summary.html">org.apache.kandula.wsat.completion</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> java.io.File;
+<a name="20" href="#20">20</a>  <strong>import</strong> java.io.IOException;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axis2.addressing.EndpointReference;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.axis2.description.AxisOperation;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.axis2.description.AxisService;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.axis2.description.InOnlyAxisOperation;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.axis2.description.Parameter;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.axis2.receivers.AbstractMessageReceiver;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver;
+<a name="31" href="#31">31</a>  <strong>import</strong> org.apache.kandula.Constants;
+<a name="32" href="#32">32</a>  <strong>import</strong> org.apache.kandula.utility.KandulaListener;
+<a name="33" href="#33">33</a>  
+<a name="34" href="#34">34</a>  <em>/**<em>*</em></em>
+<a name="35" href="#35">35</a>  <em> * @author &lt;a href="<a href="mailto:thilina@opensource.lk" target="alexandria_uri">mailto:thilina@opensource.lk</a>"> Thilina Gunarathne &lt;/a></em>
+<a name="36" href="#36">36</a>  <em> */</em>
+<a name="37" href="#37">37</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/kandula/wsat/completion/CompletionInitiatorServiceListener.html">CompletionInitiatorServiceListener</a> {
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  	<strong>private</strong> <strong>static</strong> <a href="../../../../../org/apache/kandula/wsat/completion/CompletionInitiatorServiceListener.html">CompletionInitiatorServiceListener</a> instance = <strong>null</strong>;
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>  	<strong>private</strong> EndpointReference epr = <strong>null</strong>;
+<a name="42" href="#42">42</a>  
+<a name="43" href="#43">43</a>  	<strong>private</strong> <a href="../../../../../org/apache/kandula/wsat/completion/CompletionInitiatorServiceListener.html">CompletionInitiatorServiceListener</a>() {
+<a name="44" href="#44">44</a>  		<strong>super</strong>();
+<a name="45" href="#45">45</a>  	}
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>  	<strong>public</strong> <strong>static</strong> <a href="../../../../../org/apache/kandula/wsat/completion/CompletionInitiatorServiceListener.html">CompletionInitiatorServiceListener</a> getInstance() {
+<a name="48" href="#48">48</a>  		<strong>if</strong> (instance == <strong>null</strong>) {
+<a name="49" href="#49">49</a>  			instance = <strong>new</strong> <a href="../../../../../org/apache/kandula/wsat/completion/CompletionInitiatorServiceListener.html">CompletionInitiatorServiceListener</a>();
+<a name="50" href="#50">50</a>  		}
+<a name="51" href="#51">51</a>  		<strong>return</strong> instance;
+<a name="52" href="#52">52</a>  	}
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>  	<strong>public</strong> EndpointReference getEpr() throws IOException {
+<a name="55" href="#55">55</a>  		<strong>if</strong> (epr == <strong>null</strong>) {
+<a name="56" href="#56">56</a>  			<strong>this</strong>.epr = setupListener();
+<a name="57" href="#57">57</a>  		}
+<a name="58" href="#58">58</a>  		<strong>return</strong> <strong>this</strong>.epr;
+<a name="59" href="#59">59</a>  	}
+<a name="60" href="#60">60</a>  
+<a name="61" href="#61">61</a>  	<strong>private</strong> EndpointReference setupListener() throws IOException {
+<a name="62" href="#62">62</a>  		String <strong>class</strong>Name = CompletionInitiatorPortTypeRawXMLSkeleton.<strong>class</strong>
+<a name="63" href="#63">63</a>  				.getName();
+<a name="64" href="#64">64</a>  		String serviceName = <span class="string">"CompletionInitiatorPortType"</span>;
+<a name="65" href="#65">65</a>  		AxisService service = <strong>new</strong> AxisService(serviceName);
+<a name="66" href="#66">66</a>  		service.addParameter(<strong>new</strong> Parameter(
+<a name="67" href="#67">67</a>  				AbstractMessageReceiver.SERVICE_CLASS, className));
+<a name="68" href="#68">68</a>  		service.setFileName((<strong>new</strong> File(className)).toURL());
+<a name="69" href="#69">69</a>  
+<a name="70" href="#70">70</a>  		QName committedOperationName = <strong>new</strong> QName(Constants.WS_COOR,
+<a name="71" href="#71">71</a>  				<span class="string">"committedOperation"</span>);
+<a name="72" href="#72">72</a>  		AxisOperation committedOperationDesc;
+<a name="73" href="#73">73</a>  		String committedMapping = Constants.WS_AT_COMMITTED;
+<a name="74" href="#74">74</a>  		committedOperationDesc = <strong>new</strong> InOnlyAxisOperation();
+<a name="75" href="#75">75</a>  		committedOperationDesc.setName(committedOperationName);
+<a name="76" href="#76">76</a>  		committedOperationDesc
+<a name="77" href="#77">77</a>  				.setMessageReceiver(<strong>new</strong> RawXMLINOnlyMessageReceiver());
+<a name="78" href="#78">78</a>  		<em class="comment">// Adding the WSA Action mapping to the operation</em>
+<a name="79" href="#79">79</a>  		service.mapActionToOperation(committedMapping, committedOperationDesc);
+<a name="80" href="#80">80</a>  		service.addOperation(committedOperationDesc);
+<a name="81" href="#81">81</a>  
+<a name="82" href="#82">82</a>  		QName abortedOperationName = <strong>new</strong> QName(Constants.WS_COOR,
+<a name="83" href="#83">83</a>  				<span class="string">"abortedOperation"</span>);
+<a name="84" href="#84">84</a>  		AxisOperation abortedOperationDesc;
+<a name="85" href="#85">85</a>  		String abortedMapping = Constants.WS_AT_ABORTED;
+<a name="86" href="#86">86</a>  		abortedOperationDesc = <strong>new</strong> InOnlyAxisOperation();
+<a name="87" href="#87">87</a>  		abortedOperationDesc.setName(abortedOperationName);
+<a name="88" href="#88">88</a>  		abortedOperationDesc
+<a name="89" href="#89">89</a>  				.setMessageReceiver(<strong>new</strong> RawXMLINOnlyMessageReceiver());
+<a name="90" href="#90">90</a>  		<em class="comment">// Adding the WSA Action mapping to the operation</em>
+<a name="91" href="#91">91</a>  		service.mapActionToOperation(abortedMapping, abortedOperationDesc);
+<a name="92" href="#92">92</a>  		service.addOperation(abortedOperationDesc);
+<a name="93" href="#93">93</a>  
+<a name="94" href="#94">94</a>  		KandulaListener listener = KandulaListener.getInstance();
+<a name="95" href="#95">95</a>  		listener.addService(service);
+<a name="96" href="#96">96</a>  		listener.start();
+<a name="97" href="#97">97</a>  		<strong>return</strong> <strong>new</strong> EndpointReference(listener.getHost() + serviceName);
+<a name="98" href="#98">98</a>  	}
+<a name="99" href="#99">99</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/package-frame.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/package-frame.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/package-frame.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/package-frame.html Sat May 13 20:09:04 2006
@@ -0,0 +1,43 @@
+
+
+  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+  <html lang="en">
+    <head>
+      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+      <title>Apache Kandula2 0.1-SNAPSHOT Reference Package org.apache.kandula.wsat.completion</title>
+      <link rel="stylesheet" href="../../../../../stylesheet.css" type="text/css" title="style"></link>
+    </head>
+    <body>
+
+      <h3>
+        <a href="package-summary.html" target="classFrame">org.apache.kandula.wsat.completion</a>
+      </h3>
+
+      <h3>Classes</h3>
+
+      <ul>
+        
+          <li>
+            <a href="CompletionCoordinatorPortTypeRawXMLSkeleton.html" target="classFrame">CompletionCoordinatorPortTypeRawXMLSkeleton</a>
+          </li>
+        
+          <li>
+            <a href="CompletionCoordinatorPortTypeRawXMLStub.html" target="classFrame">CompletionCoordinatorPortTypeRawXMLStub</a>
+          </li>
+        
+          <li>
+            <a href="CompletionInitiatorPortTypeRawXMLSkeleton.html" target="classFrame">CompletionInitiatorPortTypeRawXMLSkeleton</a>
+          </li>
+        
+          <li>
+            <a href="CompletionInitiatorPortTypeRawXMLStub.html" target="classFrame">CompletionInitiatorPortTypeRawXMLStub</a>
+          </li>
+        
+          <li>
+            <a href="CompletionInitiatorServiceListener.html" target="classFrame">CompletionInitiatorServiceListener</a>
+          </li>
+        
+      </ul>
+
+    </body>
+  </html>

Added: webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/package-summary.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/package-summary.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/package-summary.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/wsat/completion/package-summary.html Sat May 13 20:09:04 2006
@@ -0,0 +1,126 @@
+
+
+  
+
+  
+    
+
+    
+
+    
+
+  
+      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+      <html lang="en">
+        <head>
+          <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+          <title>Apache Kandula2 0.1-SNAPSHOT Reference Package </title>
+          <link rel="stylesheet" href="../../../../../stylesheet.css" type="text/css" title="style"></link>
+        </head>
+        <body>
+
+          
+      
+      
+
+      <div class="overview">
+        <ul>
+          <li>
+            <a href="../../../../../overview-summary.html">Overview</a>
+          </li>
+          <li class="selected">Package</li>
+        </ul>
+      </div>
+      <div class="framenoframe">
+        <ul>
+          <li>
+            <a href="../../../../../index.html" target="_top">FRAMES</a>
+          </li>
+          <li>
+            <a href="package-summary.html" target="_top">NO FRAMES</a>
+          </li>
+        </ul>
+      </div>
+
+      
+
+    
+      
+      <h2>Package org.apache.kandula.wsat.completion</h2>
+
+      <table class="summary">
+        <thead>
+          <tr>
+            <th>Class Summary</th>
+          </tr>
+        </thead>
+
+        <tbody>
+          
+            <tr>
+              <td>
+                <a href="CompletionCoordinatorPortTypeRawXMLSkeleton.html" target="classFrame">CompletionCoordinatorPortTypeRawXMLSkeleton</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="CompletionCoordinatorPortTypeRawXMLStub.html" target="classFrame">CompletionCoordinatorPortTypeRawXMLStub</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="CompletionInitiatorPortTypeRawXMLSkeleton.html" target="classFrame">CompletionInitiatorPortTypeRawXMLSkeleton</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="CompletionInitiatorPortTypeRawXMLStub.html" target="classFrame">CompletionInitiatorPortTypeRawXMLStub</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="CompletionInitiatorServiceListener.html" target="classFrame">CompletionInitiatorServiceListener</a>
+              </td>
+            </tr>
+          
+        </tbody>
+      </table>
+
+    
+      
+      
+
+      <div class="overview">
+        <ul>
+          <li>
+            <a href="../../../../../overview-summary.html">Overview</a>
+          </li>
+          <li class="selected">Package</li>
+        </ul>
+      </div>
+      <div class="framenoframe">
+        <ul>
+          <li>
+            <a href="../../../../../index.html" target="_top">FRAMES</a>
+          </li>
+          <li>
+            <a href="package-summary.html" target="_top">NO FRAMES</a>
+          </li>
+        </ul>
+      </div>
+
+      
+
+    
+    
+
+          <hr></hr>
+
+          Copyright &copy;  Apache Web Services. All Rights Reserved.
+        </body>
+      </html>
+    

Added: webservices/kandula/site/2/xref/org/apache/kandula/wsat/package-frame.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/wsat/package-frame.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/wsat/package-frame.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/wsat/package-frame.html Sat May 13 20:09:04 2006
@@ -0,0 +1,27 @@
+
+
+  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+  <html lang="en">
+    <head>
+      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+      <title>Apache Kandula2 0.1-SNAPSHOT Reference Package org.apache.kandula.wsat</title>
+      <link rel="stylesheet" href="../../../../stylesheet.css" type="text/css" title="style"></link>
+    </head>
+    <body>
+
+      <h3>
+        <a href="package-summary.html" target="classFrame">org.apache.kandula.wsat</a>
+      </h3>
+
+      <h3>Classes</h3>
+
+      <ul>
+        
+          <li>
+            <a href="AbstractATNotifierStub.html" target="classFrame">AbstractATNotifierStub</a>
+          </li>
+        
+      </ul>
+
+    </body>
+  </html>

Added: webservices/kandula/site/2/xref/org/apache/kandula/wsat/package-summary.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/wsat/package-summary.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/wsat/package-summary.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/wsat/package-summary.html Sat May 13 20:09:04 2006
@@ -0,0 +1,102 @@
+
+
+  
+
+  
+    
+
+    
+
+    
+
+  
+      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+      <html lang="en">
+        <head>
+          <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+          <title>Apache Kandula2 0.1-SNAPSHOT Reference Package </title>
+          <link rel="stylesheet" href="../../../../stylesheet.css" type="text/css" title="style"></link>
+        </head>
+        <body>
+
+          
+      
+      
+
+      <div class="overview">
+        <ul>
+          <li>
+            <a href="../../../../overview-summary.html">Overview</a>
+          </li>
+          <li class="selected">Package</li>
+        </ul>
+      </div>
+      <div class="framenoframe">
+        <ul>
+          <li>
+            <a href="../../../../index.html" target="_top">FRAMES</a>
+          </li>
+          <li>
+            <a href="package-summary.html" target="_top">NO FRAMES</a>
+          </li>
+        </ul>
+      </div>
+
+      
+
+    
+      
+      <h2>Package org.apache.kandula.wsat</h2>
+
+      <table class="summary">
+        <thead>
+          <tr>
+            <th>Class Summary</th>
+          </tr>
+        </thead>
+
+        <tbody>
+          
+            <tr>
+              <td>
+                <a href="AbstractATNotifierStub.html" target="classFrame">AbstractATNotifierStub</a>
+              </td>
+            </tr>
+          
+        </tbody>
+      </table>
+
+    
+      
+      
+
+      <div class="overview">
+        <ul>
+          <li>
+            <a href="../../../../overview-summary.html">Overview</a>
+          </li>
+          <li class="selected">Package</li>
+        </ul>
+      </div>
+      <div class="framenoframe">
+        <ul>
+          <li>
+            <a href="../../../../index.html" target="_top">FRAMES</a>
+          </li>
+          <li>
+            <a href="package-summary.html" target="_top">NO FRAMES</a>
+          </li>
+        </ul>
+      </div>
+
+      
+
+    
+    
+
+          <hr></hr>
+
+          Copyright &copy;  Apache Web Services. All Rights Reserved.
+        </body>
+      </html>
+    

Added: webservices/kandula/site/2/xref/org/apache/kandula/wsat/twopc/CoordinatorPortTypeRawXMLSkeleton.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/wsat/twopc/CoordinatorPortTypeRawXMLSkeleton.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/wsat/twopc/CoordinatorPortTypeRawXMLSkeleton.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/wsat/twopc/CoordinatorPortTypeRawXMLSkeleton.html Sat May 13 20:09:04 2006
@@ -0,0 +1,163 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>CoordinatorPortTypeRawXMLSkeleton xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/kandula/wsat/twopc/CoordinatorPortTypeRawXMLSkeleton.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright  2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *  Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *  you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *  You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> *</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a>  <em class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a>  <em class="comment"> *  See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *  limitations under the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../../org/apache/kandula/wsat/twopc/package-summary.html">org.apache.kandula.wsat.twopc</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> org.apache.axiom.om.OMElement;
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.axis2.AxisFault;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.axis2.context.OperationContext;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.wsdl.WSDLConstants;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.kandula.Constants;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.kandula.coordinator.at.ATCoordinator;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.kandula.faults.AbstractKandulaException;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.kandula.participant.Vote;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.kandula.storage.StorageFactory;
+<a name="28" href="#28">28</a>  
+<a name="29" href="#29">29</a>  <em>/**<em>*</em></em>
+<a name="30" href="#30">30</a>  <em> * @author &lt;a href="<a href="mailto:thilina@opensource.lk" target="alexandria_uri">mailto:thilina@opensource.lk</a>"> Thilina Gunarathne &lt;/a></em>
+<a name="31" href="#31">31</a>  <em> */</em>
+<a name="32" href="#32">32</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/kandula/wsat/twopc/CoordinatorPortTypeRawXMLSkeleton.html">CoordinatorPortTypeRawXMLSkeleton</a> {
+<a name="33" href="#33">33</a>  	<strong>private</strong> OperationContext opContext;
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  	<strong>public</strong> <strong>void</strong> setOperationContext(OperationContext opContext) {
+<a name="36" href="#36">36</a>  		<strong>this</strong>.opContext = opContext;
+<a name="37" href="#37">37</a>  	}
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  	<em>/**<em>*</em></em>
+<a name="40" href="#40">40</a>  <em>	 * @param requestElement</em>
+<a name="41" href="#41">41</a>  <em>	 * @throws AbstractKandulaException</em>
+<a name="42" href="#42">42</a>  <em>	 */</em>
+<a name="43" href="#43">43</a>  	<strong>public</strong> OMElement preparedOperation(OMElement requestElement)
+<a name="44" href="#44">44</a>  			throws AxisFault {
+<a name="45" href="#45">45</a>  		StorageFactory.getInstance().setConfigurationContext(
+<a name="46" href="#46">46</a>  				opContext.getServiceContext().getConfigurationContext());
+<a name="47" href="#47">47</a>  		OMElement header = opContext.getMessageContext(
+<a name="48" href="#48">48</a>  				WSDLConstants.MESSAGE_LABEL_IN_VALUE).getEnvelope().getHeader();
+<a name="49" href="#49">49</a>  		String activityId = header.getFirstChildWithName(
+<a name="50" href="#50">50</a>  				Constants.TRANSACTION_ID_PARAMETER).getText();
+<a name="51" href="#51">51</a>  		String enlistmentId = header.getFirstChildWithName(
+<a name="52" href="#52">52</a>  				Constants.ENLISTMENT_ID_PARAMETER).getText();
+<a name="53" href="#53">53</a>  		ATCoordinator coordinator = <strong>new</strong> <a href="../../../../../org/apache/kandula/coordinator/at/ATCoordinator.html">ATCoordinator</a>();
+<a name="54" href="#54">54</a>  		<strong>try</strong> {
+<a name="55" href="#55">55</a>  			coordinator.countVote(activityId, Vote.PREPARED, enlistmentId);
+<a name="56" href="#56">56</a>  		} <strong>catch</strong> (AbstractKandulaException e) {
+<a name="57" href="#57">57</a>  			AxisFault fault = <strong>new</strong> AxisFault(e);
+<a name="58" href="#58">58</a>  			fault.setFaultCode(e.getFaultCode());
+<a name="59" href="#59">59</a>  			<strong>throw</strong> fault;
+<a name="60" href="#60">60</a>  		}
+<a name="61" href="#61">61</a>  		<strong>return</strong> <strong>null</strong>;
+<a name="62" href="#62">62</a>  	}
+<a name="63" href="#63">63</a>  
+<a name="64" href="#64">64</a>  	<em>/**<em>*</em></em>
+<a name="65" href="#65">65</a>  <em>	 * @param requestElement</em>
+<a name="66" href="#66">66</a>  <em>	 * @throws AbstractKandulaException</em>
+<a name="67" href="#67">67</a>  <em>	 */</em>
+<a name="68" href="#68">68</a>  	<strong>public</strong> OMElement abortedOperation(OMElement requestElement)
+<a name="69" href="#69">69</a>  			throws AxisFault {
+<a name="70" href="#70">70</a>  		StorageFactory.getInstance().setConfigurationContext(
+<a name="71" href="#71">71</a>  				opContext.getServiceContext().getConfigurationContext());
+<a name="72" href="#72">72</a>  		OMElement header = opContext.getMessageContext(
+<a name="73" href="#73">73</a>  				WSDLConstants.MESSAGE_LABEL_IN_VALUE).getEnvelope().getHeader();
+<a name="74" href="#74">74</a>  		String activityId = header.getFirstChildWithName(
+<a name="75" href="#75">75</a>  				Constants.TRANSACTION_ID_PARAMETER).getText();
+<a name="76" href="#76">76</a>  		String enlistmentId = header.getFirstChildWithName(
+<a name="77" href="#77">77</a>  				Constants.ENLISTMENT_ID_PARAMETER).getText();
+<a name="78" href="#78">78</a>  		ATCoordinator coordinator = <strong>new</strong> <a href="../../../../../org/apache/kandula/coordinator/at/ATCoordinator.html">ATCoordinator</a>();
+<a name="79" href="#79">79</a>  		<strong>try</strong> {
+<a name="80" href="#80">80</a>  			coordinator.abortedOperation(activityId, enlistmentId);
+<a name="81" href="#81">81</a>  		} <strong>catch</strong> (AbstractKandulaException e) {
+<a name="82" href="#82">82</a>  			AxisFault fault = <strong>new</strong> AxisFault(e);
+<a name="83" href="#83">83</a>  			fault.setFaultCode(e.getFaultCode());
+<a name="84" href="#84">84</a>  			<strong>throw</strong> fault;
+<a name="85" href="#85">85</a>  		}
+<a name="86" href="#86">86</a>  		<strong>return</strong> <strong>null</strong>;
+<a name="87" href="#87">87</a>  	}
+<a name="88" href="#88">88</a>  
+<a name="89" href="#89">89</a>  	<em>/**<em>*</em></em>
+<a name="90" href="#90">90</a>  <em>	 * @param requestElement</em>
+<a name="91" href="#91">91</a>  <em>	 * @throws AbstractKandulaException</em>
+<a name="92" href="#92">92</a>  <em>	 */</em>
+<a name="93" href="#93">93</a>  	<strong>public</strong> OMElement readOnlyOperation(OMElement requestElement)
+<a name="94" href="#94">94</a>  			throws AxisFault {
+<a name="95" href="#95">95</a>  		StorageFactory.getInstance().setConfigurationContext(
+<a name="96" href="#96">96</a>  				opContext.getServiceContext().getConfigurationContext());
+<a name="97" href="#97">97</a>  		OMElement header = opContext.getMessageContext(
+<a name="98" href="#98">98</a>  				WSDLConstants.MESSAGE_LABEL_IN_VALUE).getEnvelope().getHeader();
+<a name="99" href="#99">99</a>  		String activityId = header.getFirstChildWithName(
+<a name="100" href="#100">100</a> 				Constants.TRANSACTION_ID_PARAMETER).getText();
+<a name="101" href="#101">101</a> 		String enlistmentId = header.getFirstChildWithName(
+<a name="102" href="#102">102</a> 				Constants.ENLISTMENT_ID_PARAMETER).getText();
+<a name="103" href="#103">103</a> 		ATCoordinator coordinator = <strong>new</strong> <a href="../../../../../org/apache/kandula/coordinator/at/ATCoordinator.html">ATCoordinator</a>();
+<a name="104" href="#104">104</a> 		<strong>try</strong> {
+<a name="105" href="#105">105</a> 			coordinator.countVote(activityId, Vote.READ_ONLY, enlistmentId);
+<a name="106" href="#106">106</a> 		} <strong>catch</strong> (AbstractKandulaException e) {
+<a name="107" href="#107">107</a> 			AxisFault fault = <strong>new</strong> AxisFault(e);
+<a name="108" href="#108">108</a> 			fault.setFaultCode(e.getFaultCode());
+<a name="109" href="#109">109</a> 			<strong>throw</strong> fault;
+<a name="110" href="#110">110</a> 		}
+<a name="111" href="#111">111</a> 		<strong>return</strong> <strong>null</strong>;
+<a name="112" href="#112">112</a> 	}
+<a name="113" href="#113">113</a> 
+<a name="114" href="#114">114</a> 	<em>/**<em>*</em></em>
+<a name="115" href="#115">115</a> <em>	 * @param requestElement</em>
+<a name="116" href="#116">116</a> <em>	 * @throws AbstractKandulaException</em>
+<a name="117" href="#117">117</a> <em>	 */</em>
+<a name="118" href="#118">118</a> 	<strong>public</strong> OMElement committedOperation(OMElement requestElement)
+<a name="119" href="#119">119</a> 			throws AxisFault {
+<a name="120" href="#120">120</a> 		StorageFactory.getInstance().setConfigurationContext(
+<a name="121" href="#121">121</a> 				opContext.getServiceContext().getConfigurationContext());
+<a name="122" href="#122">122</a> 		OMElement header = opContext.getMessageContext(
+<a name="123" href="#123">123</a> 				WSDLConstants.MESSAGE_LABEL_IN_VALUE).getEnvelope().getHeader();
+<a name="124" href="#124">124</a> 		String activityId = header.getFirstChildWithName(
+<a name="125" href="#125">125</a> 				Constants.TRANSACTION_ID_PARAMETER).getText();
+<a name="126" href="#126">126</a> 		String enlistmentId = header.getFirstChildWithName(
+<a name="127" href="#127">127</a> 				Constants.ENLISTMENT_ID_PARAMETER).getText();
+<a name="128" href="#128">128</a> 		ATCoordinator coordinator = <strong>new</strong> <a href="../../../../../org/apache/kandula/coordinator/at/ATCoordinator.html">ATCoordinator</a>();
+<a name="129" href="#129">129</a> 		<strong>try</strong> {
+<a name="130" href="#130">130</a> 			coordinator.countParticipantOutcome(activityId, enlistmentId);
+<a name="131" href="#131">131</a> 		} <strong>catch</strong> (AbstractKandulaException e) {
+<a name="132" href="#132">132</a> 			AxisFault fault = <strong>new</strong> AxisFault(e);
+<a name="133" href="#133">133</a> 			fault.setFaultCode(e.getFaultCode());
+<a name="134" href="#134">134</a> 			<strong>throw</strong> fault;
+<a name="135" href="#135">135</a> 		}
+<a name="136" href="#136">136</a> 		<strong>return</strong> <strong>null</strong>;
+<a name="137" href="#137">137</a> 	}
+<a name="138" href="#138">138</a> 
+<a name="139" href="#139">139</a> 	<em>/**<em>*</em></em>
+<a name="140" href="#140">140</a> <em>	 * @param requestElement</em>
+<a name="141" href="#141">141</a> <em>	 * @throws AbstractKandulaException</em>
+<a name="142" href="#142">142</a> <em>	 */</em>
+<a name="143" href="#143">143</a> 	<strong>public</strong> OMElement replayOperation(OMElement requestElement) throws AxisFault {
+<a name="144" href="#144">144</a> 		StorageFactory.getInstance().setConfigurationContext(
+<a name="145" href="#145">145</a> 				opContext.getServiceContext().getConfigurationContext());
+<a name="146" href="#146">146</a> 		System.out.println(<span class="string">"Visited Replay operation"</span>);
+<a name="147" href="#147">147</a> 		<strong>return</strong> <strong>null</strong>;
+<a name="148" href="#148">148</a> 	}
+<a name="149" href="#149">149</a> 
+<a name="150" href="#150">150</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/2/xref/org/apache/kandula/wsat/twopc/CoordinatorPortTypeRawXMLStub.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/wsat/twopc/CoordinatorPortTypeRawXMLStub.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/wsat/twopc/CoordinatorPortTypeRawXMLStub.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/wsat/twopc/CoordinatorPortTypeRawXMLStub.html Sat May 13 20:09:04 2006
@@ -0,0 +1,115 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>CoordinatorPortTypeRawXMLStub xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/kandula/wsat/twopc/CoordinatorPortTypeRawXMLStub.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright  2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *  Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *  you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *  You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> *</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a>  <em class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a>  <em class="comment"> *  See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *  limitations under the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../../org/apache/kandula/wsat/twopc/package-summary.html">org.apache.kandula.wsat.twopc</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> org.apache.axis2.addressing.EndpointReference;
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.axis2.description.AxisOperation;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.axis2.description.AxisService;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.description.OutOnlyAxisOperation;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.kandula.Constants;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.kandula.faults.AbstractKandulaException;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.kandula.utility.KandulaConfiguration;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.kandula.wsat.AbstractATNotifierStub;
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  <em>/**<em>*</em></em>
+<a name="29" href="#29">29</a>  <em> * @author &lt;a href="<a href="mailto:thilina@opensource.lk" target="alexandria_uri">mailto:thilina@opensource.lk</a>"> Thilina Gunarathne &lt;/a></em>
+<a name="30" href="#30">30</a>  <em> */</em>
+<a name="31" href="#31">31</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/kandula/wsat/twopc/CoordinatorPortTypeRawXMLStub.html">CoordinatorPortTypeRawXMLStub</a> <strong>extends</strong> <a href="../../../../../org/apache/kandula/wsat/AbstractATNotifierStub.html">AbstractATNotifierStub</a> {
+<a name="32" href="#32">32</a>  	<strong>public</strong> <strong>static</strong> <strong>final</strong> String AXIS2_HOME = <span class="string">"."</span>;
+<a name="33" href="#33">33</a>  
+<a name="34" href="#34">34</a>  	<em>/**<em>*</em></em>
+<a name="35" href="#35">35</a>  <em>	 * Constructor</em>
+<a name="36" href="#36">36</a>  <em>	 */</em>
+<a name="37" href="#37">37</a>  	<strong>public</strong> <a href="../../../../../org/apache/kandula/wsat/twopc/CoordinatorPortTypeRawXMLStub.html">CoordinatorPortTypeRawXMLStub</a>(EndpointReference targetEndpoint)
+<a name="38" href="#38">38</a>  			throws <a href="../../../../../org/apache/kandula/faults/AbstractKandulaException.html">AbstractKandulaException</a> {
+<a name="39" href="#39">39</a>  		<strong>super</strong>(KandulaConfiguration.getInstance().getParticipantRepository(),
+<a name="40" href="#40">40</a>  				KandulaConfiguration.getInstance().getParticipantAxis2Conf(),
+<a name="41" href="#41">41</a>  				<strong>new</strong> AxisService(<span class="string">"CoordinatorPortType"</span>));
+<a name="42" href="#42">42</a>  		<strong>this</strong>.toEPR = targetEndpoint;
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  		<em class="comment">// creating the operations</em>
+<a name="45" href="#45">45</a>  		AxisOperation operation;
+<a name="46" href="#46">46</a>  		operations = <strong>new</strong> AxisOperation[5];
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>  		operation = <strong>new</strong> OutOnlyAxisOperation();
+<a name="49" href="#49">49</a>  		operation.setName(<strong>new</strong> javax.xml.namespace.QName(Constants.WS_AT,
+<a name="50" href="#50">50</a>  				<span class="string">"PreparedOperation"</span>));
+<a name="51" href="#51">51</a>  		operations[0] = operation;
+<a name="52" href="#52">52</a>  		service.addOperation(operation);
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>  		operation = <strong>new</strong> OutOnlyAxisOperation();
+<a name="55" href="#55">55</a>  		operation.setName(<strong>new</strong> javax.xml.namespace.QName(Constants.WS_AT,
+<a name="56" href="#56">56</a>  				<span class="string">"AbortedOperation"</span>));
+<a name="57" href="#57">57</a>  		operations[1] = operation;
+<a name="58" href="#58">58</a>  		service.addOperation(operation);
+<a name="59" href="#59">59</a>  		operation = <strong>new</strong> OutOnlyAxisOperation();
+<a name="60" href="#60">60</a>  		operation.setName(<strong>new</strong> javax.xml.namespace.QName(Constants.WS_AT,
+<a name="61" href="#61">61</a>  				<span class="string">"ReadOnlyOperation"</span>));
+<a name="62" href="#62">62</a>  		operations[2] = operation;
+<a name="63" href="#63">63</a>  		service.addOperation(operation);
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>  		operation = <strong>new</strong> OutOnlyAxisOperation();
+<a name="66" href="#66">66</a>  		operation.setName(<strong>new</strong> javax.xml.namespace.QName(Constants.WS_AT,
+<a name="67" href="#67">67</a>  				<span class="string">"CommittedOperation"</span>));
+<a name="68" href="#68">68</a>  		operations[3] = operation;
+<a name="69" href="#69">69</a>  		service.addOperation(operation);
+<a name="70" href="#70">70</a>  		operation = <strong>new</strong> OutOnlyAxisOperation();
+<a name="71" href="#71">71</a>  		operation.setName(<strong>new</strong> javax.xml.namespace.QName(Constants.WS_AT,
+<a name="72" href="#72">72</a>  				<span class="string">"ReplayOperation"</span>));
+<a name="73" href="#73">73</a>  		operations[4] = operation;
+<a name="74" href="#74">74</a>  		service.addOperation(operation);
+<a name="75" href="#75">75</a>  
+<a name="76" href="#76">76</a>  	}
+<a name="77" href="#77">77</a>  
+<a name="78" href="#78">78</a>  	<strong>public</strong> <strong>void</strong> preparedOperation() throws AbstractKandulaException {
+<a name="79" href="#79">79</a>  		<em class="comment">// must send reply to epr</em>
+<a name="80" href="#80">80</a>  		<strong>this</strong>.notify(<span class="string">"Prepared"</span>, Constants.WS_AT_PREPARED, 0, <strong>null</strong>);
+<a name="81" href="#81">81</a>  	}
+<a name="82" href="#82">82</a>  
+<a name="83" href="#83">83</a>  	<strong>public</strong> <strong>void</strong> abortedOperation() throws AbstractKandulaException {
+<a name="84" href="#84">84</a>  		<strong>this</strong>.notify(<span class="string">"Aborted"</span>, Constants.WS_AT_ABORTED, 1, <strong>null</strong>);
+<a name="85" href="#85">85</a>  	}
+<a name="86" href="#86">86</a>  
+<a name="87" href="#87">87</a>  	<strong>public</strong> <strong>void</strong> readOnlyOperation() throws AbstractKandulaException {
+<a name="88" href="#88">88</a>  		<strong>this</strong>.notify(<span class="string">"ReadOnly"</span>, Constants.WS_AT_READONLY, 2, <strong>null</strong>);
+<a name="89" href="#89">89</a>  
+<a name="90" href="#90">90</a>  	}
+<a name="91" href="#91">91</a>  
+<a name="92" href="#92">92</a>  	<strong>public</strong> <strong>void</strong> committedOperation() throws AbstractKandulaException {
+<a name="93" href="#93">93</a>  		<strong>this</strong>.notify(<span class="string">"Committed"</span>, Constants.WS_AT_COMMITTED, 3, <strong>null</strong>);
+<a name="94" href="#94">94</a>  
+<a name="95" href="#95">95</a>  	}
+<a name="96" href="#96">96</a>  
+<a name="97" href="#97">97</a>  	<strong>public</strong> <strong>void</strong> replayOperation() throws AbstractKandulaException {
+<a name="98" href="#98">98</a>  		<em class="comment">// must send reply to epr</em>
+<a name="99" href="#99">99</a>  		<strong>this</strong>.notify(<span class="string">"Replay"</span>, Constants.WS_AT_REPLAY, 4, <strong>null</strong>);
+<a name="100" href="#100">100</a> 	}
+<a name="101" href="#101">101</a> 
+<a name="102" href="#102">102</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/2/xref/org/apache/kandula/wsat/twopc/ParticipantPortTypeRawXMLSkeleton.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/wsat/twopc/ParticipantPortTypeRawXMLSkeleton.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/wsat/twopc/ParticipantPortTypeRawXMLSkeleton.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/wsat/twopc/ParticipantPortTypeRawXMLSkeleton.html Sat May 13 20:09:04 2006
@@ -0,0 +1,114 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>ParticipantPortTypeRawXMLSkeleton xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/kandula/wsat/twopc/ParticipantPortTypeRawXMLSkeleton.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright  2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *  Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *  you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *  You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> *</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a>  <em class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a>  <em class="comment"> *  See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *  limitations under the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../../org/apache/kandula/wsat/twopc/package-summary.html">org.apache.kandula.wsat.twopc</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> org.apache.axiom.om.OMElement;
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.axis2.AxisFault;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.axis2.context.OperationContext;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.wsdl.WSDLConstants;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.kandula.Constants;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.kandula.context.AbstractContext;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.kandula.faults.AbstractKandulaException;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.kandula.participant.ParticipantTransactionCoordinator;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.kandula.storage.StorageFactory;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.kandula.storage.Store;
+<a name="29" href="#29">29</a>  
+<a name="30" href="#30">30</a>  <em>/**<em>*</em></em>
+<a name="31" href="#31">31</a>  <em> * @author &lt;a href="<a href="mailto:thilina@opensource.lk" target="alexandria_uri">mailto:thilina@opensource.lk</a>"> Thilina Gunarathne &lt;/a></em>
+<a name="32" href="#32">32</a>  <em> */</em>
+<a name="33" href="#33">33</a>  
+<a name="34" href="#34">34</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/kandula/wsat/twopc/ParticipantPortTypeRawXMLSkeleton.html">ParticipantPortTypeRawXMLSkeleton</a> {
+<a name="35" href="#35">35</a>  	<strong>private</strong> OperationContext opContext;
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>  	<strong>public</strong> <strong>void</strong> setOperationContext(OperationContext opContext) {
+<a name="38" href="#38">38</a>  		<strong>this</strong>.opContext = opContext;
+<a name="39" href="#39">39</a>  	}
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>  	<strong>public</strong> OMElement prepareOperation(OMElement requestEle) throws AxisFault {
+<a name="42" href="#42">42</a>  		StorageFactory.getInstance().setConfigurationContext(
+<a name="43" href="#43">43</a>  				opContext.getServiceContext().getConfigurationContext());
+<a name="44" href="#44">44</a>  		OMElement header = opContext.getMessageContext(
+<a name="45" href="#45">45</a>  				WSDLConstants.MESSAGE_LABEL_IN_VALUE).getEnvelope().getHeader();
+<a name="46" href="#46">46</a>  		String requesterID = header.getFirstChildWithName(
+<a name="47" href="#47">47</a>  				Constants.REQUESTER_ID_PARAMETER).getText();
+<a name="48" href="#48">48</a>  		Store store = StorageFactory.getInstance().getStore();
+<a name="49" href="#49">49</a>  		AbstractContext context = (AbstractContext) store.get(requesterID);
+<a name="50" href="#50">50</a>  		ParticipantTransactionCoordinator txManager = <strong>new</strong> <a href="../../../../../org/apache/kandula/participant/ParticipantTransactionCoordinator.html">ParticipantTransactionCoordinator</a>();
+<a name="51" href="#51">51</a>  		<strong>try</strong> {
+<a name="52" href="#52">52</a>  			txManager.prepare(context);
+<a name="53" href="#53">53</a>  		} <strong>catch</strong> (AbstractKandulaException e) {
+<a name="54" href="#54">54</a>  			AxisFault fault = <strong>new</strong> AxisFault(e);
+<a name="55" href="#55">55</a>  			fault.setFaultCode(e.getFaultCode());
+<a name="56" href="#56">56</a>  			<strong>throw</strong> fault;
+<a name="57" href="#57">57</a>  		}
+<a name="58" href="#58">58</a>  		<strong>return</strong> <strong>null</strong>;
+<a name="59" href="#59">59</a>  
+<a name="60" href="#60">60</a>  	}
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</a>  	<strong>public</strong> OMElement commitOperation(OMElement requestEle) throws AxisFault {
+<a name="63" href="#63">63</a>  		StorageFactory.getInstance().setConfigurationContext(
+<a name="64" href="#64">64</a>  				opContext.getServiceContext().getConfigurationContext());
+<a name="65" href="#65">65</a>  		OMElement header = opContext.getMessageContext(
+<a name="66" href="#66">66</a>  				WSDLConstants.MESSAGE_LABEL_IN_VALUE).getEnvelope().getHeader();
+<a name="67" href="#67">67</a>  		String requesterID = header.getFirstChildWithName(
+<a name="68" href="#68">68</a>  				Constants.REQUESTER_ID_PARAMETER).getText();
+<a name="69" href="#69">69</a>  		Store store = StorageFactory.getInstance().getStore();
+<a name="70" href="#70">70</a>  		AbstractContext context = (AbstractContext) store.get(requesterID);
+<a name="71" href="#71">71</a>  		ParticipantTransactionCoordinator participantTxManager = <strong>new</strong> <a href="../../../../../org/apache/kandula/participant/ParticipantTransactionCoordinator.html">ParticipantTransactionCoordinator</a>();
+<a name="72" href="#72">72</a>  		<strong>try</strong> {
+<a name="73" href="#73">73</a>  			participantTxManager.commit(context);
+<a name="74" href="#74">74</a>  		} <strong>catch</strong> (AbstractKandulaException e) {
+<a name="75" href="#75">75</a>  			AxisFault fault = <strong>new</strong> AxisFault(e);
+<a name="76" href="#76">76</a>  			fault.setFaultCode(e.getFaultCode());
+<a name="77" href="#77">77</a>  			<strong>throw</strong> fault;
+<a name="78" href="#78">78</a>  		}
+<a name="79" href="#79">79</a>  		<strong>return</strong> <strong>null</strong>;
+<a name="80" href="#80">80</a>  	}
+<a name="81" href="#81">81</a>  
+<a name="82" href="#82">82</a>  	<strong>public</strong> OMElement rollbackOperation(OMElement requestEle) throws AxisFault {
+<a name="83" href="#83">83</a>  		StorageFactory.getInstance().setConfigurationContext(
+<a name="84" href="#84">84</a>  				opContext.getServiceContext().getConfigurationContext());
+<a name="85" href="#85">85</a>  		OMElement header = opContext.getMessageContext(
+<a name="86" href="#86">86</a>  				WSDLConstants.MESSAGE_LABEL_IN_VALUE).getEnvelope().getHeader();
+<a name="87" href="#87">87</a>  		String requesterID = header.getFirstChildWithName(
+<a name="88" href="#88">88</a>  				Constants.REQUESTER_ID_PARAMETER).getText();
+<a name="89" href="#89">89</a>  		Store store = StorageFactory.getInstance().getStore();
+<a name="90" href="#90">90</a>  		AbstractContext context = (AbstractContext) store.get(requesterID);
+<a name="91" href="#91">91</a>  		ParticipantTransactionCoordinator txManager = <strong>new</strong> <a href="../../../../../org/apache/kandula/participant/ParticipantTransactionCoordinator.html">ParticipantTransactionCoordinator</a>();
+<a name="92" href="#92">92</a>  		<strong>try</strong> {
+<a name="93" href="#93">93</a>  			txManager.rollback(context);
+<a name="94" href="#94">94</a>  		} <strong>catch</strong> (AbstractKandulaException e) {
+<a name="95" href="#95">95</a>  			AxisFault fault = <strong>new</strong> AxisFault(e);
+<a name="96" href="#96">96</a>  			fault.setFaultCode(e.getFaultCode());
+<a name="97" href="#97">97</a>  			<strong>throw</strong> fault;
+<a name="98" href="#98">98</a>  		}
+<a name="99" href="#99">99</a>  		<strong>return</strong> <strong>null</strong>;
+<a name="100" href="#100">100</a> 	}
+<a name="101" href="#101">101</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/2/xref/org/apache/kandula/wsat/twopc/ParticipantPortTypeRawXMLStub.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/wsat/twopc/ParticipantPortTypeRawXMLStub.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/wsat/twopc/ParticipantPortTypeRawXMLStub.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/wsat/twopc/ParticipantPortTypeRawXMLStub.html Sat May 13 20:09:04 2006
@@ -0,0 +1,103 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>ParticipantPortTypeRawXMLStub xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/kandula/wsat/twopc/ParticipantPortTypeRawXMLStub.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright  2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *  Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *  you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *  You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> *</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a>  <em class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a>  <em class="comment"> *  See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *  limitations under the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../../org/apache/kandula/wsat/twopc/package-summary.html">org.apache.kandula.wsat.twopc</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> org.apache.axis2.addressing.EndpointReference;
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.axis2.description.AxisOperation;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.axis2.description.AxisService;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.description.OutOnlyAxisOperation;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.kandula.Constants;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.kandula.faults.AbstractKandulaException;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.kandula.utility.KandulaConfiguration;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.kandula.wsat.AbstractATNotifierStub;
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  <em>/**<em>*</em></em>
+<a name="29" href="#29">29</a>  <em> * @author &lt;a href="<a href="mailto:thilina@opensource.lk" target="alexandria_uri">mailto:thilina@opensource.lk</a>"> Thilina Gunarathne &lt;/a></em>
+<a name="30" href="#30">30</a>  <em> */</em>
+<a name="31" href="#31">31</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/kandula/wsat/twopc/ParticipantPortTypeRawXMLStub.html">ParticipantPortTypeRawXMLStub</a> <strong>extends</strong> <a href="../../../../../org/apache/kandula/wsat/AbstractATNotifierStub.html">AbstractATNotifierStub</a> {
+<a name="32" href="#32">32</a>  	<strong>public</strong> <strong>static</strong> <strong>final</strong> String AXIS2_HOME = <span class="string">"."</span>;
+<a name="33" href="#33">33</a>  
+<a name="34" href="#34">34</a>  	<em>/**<em>*</em></em>
+<a name="35" href="#35">35</a>  <em>	 * Constructor</em>
+<a name="36" href="#36">36</a>  <em>	 * </em>
+<a name="37" href="#37">37</a>  <em>	 * @throws AbstractKandulaException</em>
+<a name="38" href="#38">38</a>  <em>	 */</em>
+<a name="39" href="#39">39</a>  	<strong>public</strong> <a href="../../../../../org/apache/kandula/wsat/twopc/ParticipantPortTypeRawXMLStub.html">ParticipantPortTypeRawXMLStub</a>() throws AbstractKandulaException {
+<a name="40" href="#40">40</a>  		<strong>super</strong>(KandulaConfiguration.getInstance().getCoordinatorRepo(),
+<a name="41" href="#41">41</a>  				KandulaConfiguration.getInstance().getCoordinatorAxis2Conf(),
+<a name="42" href="#42">42</a>  				<strong>new</strong> AxisService(<span class="string">"ParticipantPortType"</span>));
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  		<em class="comment">// creating the operations</em>
+<a name="45" href="#45">45</a>  		AxisOperation operation;
+<a name="46" href="#46">46</a>  		operations = <strong>new</strong> AxisOperation[3];
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>  		operation = <strong>new</strong> OutOnlyAxisOperation();
+<a name="49" href="#49">49</a>  		operation.setName(<strong>new</strong> javax.xml.namespace.QName(Constants.WS_AT,
+<a name="50" href="#50">50</a>  				<span class="string">"prepareOperation"</span>));
+<a name="51" href="#51">51</a>  		operations[0] = operation;
+<a name="52" href="#52">52</a>  		service.addOperation(operation);
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>  		operation = <strong>new</strong> OutOnlyAxisOperation();
+<a name="55" href="#55">55</a>  		operation.setName(<strong>new</strong> javax.xml.namespace.QName(Constants.WS_AT,
+<a name="56" href="#56">56</a>  				<span class="string">"commitOperation"</span>));
+<a name="57" href="#57">57</a>  		operations[1] = operation;
+<a name="58" href="#58">58</a>  		service.addOperation(operation);
+<a name="59" href="#59">59</a>  
+<a name="60" href="#60">60</a>  		operation = <strong>new</strong> OutOnlyAxisOperation();
+<a name="61" href="#61">61</a>  		operation.setName(<strong>new</strong> javax.xml.namespace.QName(Constants.WS_AT,
+<a name="62" href="#62">62</a>  				<span class="string">"rollbackOperation"</span>));
+<a name="63" href="#63">63</a>  		operations[2] = operation;
+<a name="64" href="#64">64</a>  		service.addOperation(operation);
+<a name="65" href="#65">65</a>  	}
+<a name="66" href="#66">66</a>  
+<a name="67" href="#67">67</a>  	<strong>public</strong> <strong>void</strong> prepareOperation(EndpointReference targetEndpoint)
+<a name="68" href="#68">68</a>  			throws <a href="../../../../../org/apache/kandula/faults/AbstractKandulaException.html">AbstractKandulaException</a> {
+<a name="69" href="#69">69</a>  		<em class="comment">// TODO must send reply TO epr</em>
+<a name="70" href="#70">70</a>  		<strong>this</strong>.toEPR = targetEndpoint;
+<a name="71" href="#71">71</a>  		<strong>this</strong>.notify(<span class="string">"Prepare"</span>, Constants.WS_AT_PREPARE, 0, <strong>null</strong>);
+<a name="72" href="#72">72</a>  
+<a name="73" href="#73">73</a>  	}
+<a name="74" href="#74">74</a>  
+<a name="75" href="#75">75</a>  	<strong>public</strong> <strong>void</strong> commitOperation(EndpointReference targetEndpoint)
+<a name="76" href="#76">76</a>  			throws <a href="../../../../../org/apache/kandula/faults/AbstractKandulaException.html">AbstractKandulaException</a> {
+<a name="77" href="#77">77</a>  		<em class="comment">// TODO must send reply to epr</em>
+<a name="78" href="#78">78</a>  		<strong>this</strong>.toEPR = targetEndpoint;
+<a name="79" href="#79">79</a>  		<strong>this</strong>.notify(<span class="string">"Commit"</span>, Constants.WS_AT_COMMIT, 1, <strong>null</strong>);
+<a name="80" href="#80">80</a>  
+<a name="81" href="#81">81</a>  	}
+<a name="82" href="#82">82</a>  
+<a name="83" href="#83">83</a>  	<strong>public</strong> <strong>void</strong> rollbackOperation(EndpointReference targetEndpoint)
+<a name="84" href="#84">84</a>  			throws <a href="../../../../../org/apache/kandula/faults/AbstractKandulaException.html">AbstractKandulaException</a> {
+<a name="85" href="#85">85</a>  		<em class="comment">// TODO must send reply to epr</em>
+<a name="86" href="#86">86</a>  		<strong>this</strong>.toEPR = targetEndpoint;
+<a name="87" href="#87">87</a>  		<strong>this</strong>.notify(<span class="string">"Rollback"</span>, Constants.WS_AT_ROLLBACK, 2, <strong>null</strong>);
+<a name="88" href="#88">88</a>  	}
+<a name="89" href="#89">89</a>  
+<a name="90" href="#90">90</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+



---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org