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

svn commit: r406210 [11/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/initiator/TransactionManager.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/initiator/TransactionManager.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/initiator/TransactionManager.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/initiator/TransactionManager.html Sat May 13 20:09:04 2006
@@ -0,0 +1,165 @@
+<!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>TransactionManager xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/initiator/TransactionManager.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/initiator/package-summary.html">org.apache.kandula.initiator</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.kandula.Status;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.kandula.context.AbstractContext;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.kandula.context.ContextFactory;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.kandula.context.impl.ATActivityContext;
+<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.faults.InvalidStateException;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.kandula.storage.StorageFactory;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.kandula.storage.Store;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.kandula.utility.EndpointReferenceFactory;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.kandula.wsat.completion.CompletionCoordinatorPortTypeRawXMLStub;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.kandula.wscoor.ActivationCoordinatorPortTypeRawXMLStub;
+<a name="31" href="#31">31</a>  <strong>import</strong> org.apache.kandula.wscoor.RegistrationCoordinatorPortTypeRawXMLStub;
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>  <em>/**<em>*</em></em>
+<a name="34" href="#34">34</a>  <em> * @author Dasarath Weeratunge</em>
+<a name="35" href="#35">35</a>  <em> * @author &lt;a href="<a href="mailto:thilina@apache.org" target="alexandria_uri">mailto:thilina@apache.org</a>"> Thilina Gunarathne &lt;/a></em>
+<a name="36" href="#36">36</a>  <em> */</em>
+<a name="37" href="#37">37</a>  
+<a name="38" href="#38">38</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/initiator/TransactionManager.html">TransactionManager</a> {
+<a name="39" href="#39">39</a>  
+<a name="40" href="#40">40</a>  	<strong>private</strong> <strong>static</strong> ThreadLocal threadInfo;
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>  	<strong>private</strong> String axis2Home, axis2Xml;
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  	<strong>public</strong> <a href="../../../../org/apache/kandula/initiator/TransactionManager.html">TransactionManager</a>(String coordinationType,
+<a name="45" href="#45">45</a>  			EndpointReference coordinatorEPR) throws AbstractKandulaException {
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>  		threadInfo = <strong>new</strong> ThreadLocal();
+<a name="48" href="#48">48</a>  		AbstractContext context = ContextFactory.getInstance().createActivity(
+<a name="49" href="#49">49</a>  				coordinationType, coordinatorEPR);
+<a name="50" href="#50">50</a>  		<strong>if</strong> (threadInfo.get() != <strong>null</strong>)
+<a name="51" href="#51">51</a>  			<strong>throw</strong> <strong>new</strong> IllegalStateException();
+<a name="52" href="#52">52</a>  		threadInfo.set(context.getProperty(ATActivityContext.REQUESTER_ID));
+<a name="53" href="#53">53</a>  		Store store = StorageFactory.getInstance().getInitiatorStore();
+<a name="54" href="#54">54</a>  		store.put(context.getProperty(ATActivityContext.REQUESTER_ID), context);
+<a name="55" href="#55">55</a>  	}
+<a name="56" href="#56">56</a>  
+<a name="57" href="#57">57</a>  	<strong>public</strong> <strong>void</strong> begin(String axis2Home, String axis2Xml) throws Exception {
+<a name="58" href="#58">58</a>  		begin(axis2Home,axis2Xml,false);
+<a name="59" href="#59">59</a>  	}
+<a name="60" href="#60">60</a>  	<em>/**<em>*</em></em>
+<a name="61" href="#61">61</a>  <em>	 * @throws Exception</em>
+<a name="62" href="#62">62</a>  <em>	 */</em>
+<a name="63" href="#63">63</a>  	<strong>public</strong> <strong>void</strong> begin(String axis2Home, String axis2Xml, <strong>boolean</strong> async) throws Exception {
+<a name="64" href="#64">64</a>  		<strong>this</strong>.axis2Home = axis2Home;
+<a name="65" href="#65">65</a>  		<strong>this</strong>.axis2Xml = axis2Xml;
+<a name="66" href="#66">66</a>  		AbstractContext context = getTransaction();
+<a name="67" href="#67">67</a>  		String id = (String) context
+<a name="68" href="#68">68</a>  				.getProperty(AbstractContext.REQUESTER_ID);
+<a name="69" href="#69">69</a>  		ActivationCoordinatorPortTypeRawXMLStub activationCoordinator = <strong>new</strong> <a href="../../../../org/apache/kandula/wscoor/ActivationCoordinatorPortTypeRawXMLStub.html">ActivationCoordinatorPortTypeRawXMLStub</a>(
+<a name="70" href="#70">70</a>  				axis2Home, axis2Xml, (EndpointReference) context
+<a name="71" href="#71">71</a>  						.getProperty(AbstractContext.ACTIVATION_EPR));
+<a name="72" href="#72">72</a>  		activationCoordinator.createCoordinationContextOperation(
+<a name="73" href="#73">73</a>  				context,async);
+<a name="74" href="#74">74</a>  		<strong>while</strong> (async &amp; context.getCoordinationContext() == <strong>null</strong>) {
+<a name="75" href="#75">75</a>  			<em class="comment">// allow other threads to execute</em>
+<a name="76" href="#76">76</a>  			Thread.sleep(10);
+<a name="77" href="#77">77</a>  		}
+<a name="78" href="#78">78</a>  		RegistrationCoordinatorPortTypeRawXMLStub registrationCoordinator = <strong>new</strong> <a href="../../../../org/apache/kandula/wscoor/RegistrationCoordinatorPortTypeRawXMLStub.html">RegistrationCoordinatorPortTypeRawXMLStub</a>(
+<a name="79" href="#79">79</a>  				axis2Home, axis2Xml, context.getCoordinationContext()
+<a name="80" href="#80">80</a>  						.getRegistrationService());
+<a name="81" href="#81">81</a>  		<em class="comment">//TODO make this unaware of the protocol</em>
+<a name="82" href="#82">82</a>  		EndpointReference registrationRequeterPortEPR = <a href="../../../../org/apache/kandula/utility/EndpointReferenceFactory.html">EndpointReferenceFactory</a>
+<a name="83" href="#83">83</a>  				.getInstance().getCompletionInitiatorEndpoint(id);
+<a name="84" href="#84">84</a>  		registrationCoordinator.registerOperation( context,registrationRequeterPortEPR,async);
+<a name="85" href="#85">85</a>  		<strong>while</strong> (async &amp; context.getProperty(ATActivityContext.COORDINATION_EPR) == <strong>null</strong>) {
+<a name="86" href="#86">86</a>  			Thread.sleep(10);
+<a name="87" href="#87">87</a>  		}
+<a name="88" href="#88">88</a>  	}
+<a name="89" href="#89">89</a>  
+<a name="90" href="#90">90</a>  	<strong>public</strong> <strong>void</strong> commit() throws Exception {
+<a name="91" href="#91">91</a>  		AbstractContext context = getTransaction();
+<a name="92" href="#92">92</a>  		EndpointReference coordinationEPR = (EndpointReference) context
+<a name="93" href="#93">93</a>  				.getProperty(ATActivityContext.COORDINATION_EPR);
+<a name="94" href="#94">94</a>  		CompletionCoordinatorPortTypeRawXMLStub stub = <strong>new</strong> <a href="../../../../org/apache/kandula/wsat/completion/CompletionCoordinatorPortTypeRawXMLStub.html">CompletionCoordinatorPortTypeRawXMLStub</a>(
+<a name="95" href="#95">95</a>  				axis2Home, axis2Xml, coordinationEPR);
+<a name="96" href="#96">96</a>  		stub.commitOperation();
+<a name="97" href="#97">97</a>  		<strong>while</strong> ((context.getStatus() != Status.ParticipantStatus.STATUS_COMMITED)
+<a name="98" href="#98">98</a>  				&amp; (context.getStatus() != Status.ParticipantStatus.STATUS_ABORTED)) {
+<a name="99" href="#99">99</a>  			Thread.sleep(10);
+<a name="100" href="#100">100</a> 		}
+<a name="101" href="#101">101</a> 		<strong>if</strong> ((context.getStatus() == Status.ParticipantStatus.STATUS_ABORTED)) {
+<a name="102" href="#102">102</a> 			<strong>throw</strong> <strong>new</strong> Exception(<span class="string">"Aborted"</span>);
+<a name="103" href="#103">103</a> 		}
+<a name="104" href="#104">104</a> 		forgetTransaction();
+<a name="105" href="#105">105</a> 	}
+<a name="106" href="#106">106</a> 
+<a name="107" href="#107">107</a> 	<strong>public</strong> <strong>void</strong> rollback() throws Exception {
+<a name="108" href="#108">108</a> 		AbstractContext context = getTransaction();
+<a name="109" href="#109">109</a> 		EndpointReference coordinationEPR = (EndpointReference) context
+<a name="110" href="#110">110</a> 				.getProperty(ATActivityContext.COORDINATION_EPR);
+<a name="111" href="#111">111</a> 		CompletionCoordinatorPortTypeRawXMLStub stub = <strong>new</strong> <a href="../../../../org/apache/kandula/wsat/completion/CompletionCoordinatorPortTypeRawXMLStub.html">CompletionCoordinatorPortTypeRawXMLStub</a>(
+<a name="112" href="#112">112</a> 				axis2Home, axis2Xml, coordinationEPR);
+<a name="113" href="#113">113</a> 		stub.rollbackOperation();
+<a name="114" href="#114">114</a> 		<strong>while</strong> ((context.getStatus() != Status.ParticipantStatus.STATUS_COMMITED)
+<a name="115" href="#115">115</a> 				| (context.getStatus() != Status.ParticipantStatus.STATUS_ABORTED)) {
+<a name="116" href="#116">116</a> 			Thread.sleep(10);
+<a name="117" href="#117">117</a> 		}
+<a name="118" href="#118">118</a> 		forgetTransaction();
+<a name="119" href="#119">119</a> 	}
+<a name="120" href="#120">120</a> 
+<a name="121" href="#121">121</a> 	<em class="comment">// public Transaction suspend() {</em>
+<a name="122" href="#122">122</a> 	<em class="comment">// Transaction tx= getTransaction();</em>
+<a name="123" href="#123">123</a> 	<em class="comment">// forget();</em>
+<a name="124" href="#124">124</a> 	<em class="comment">// return tx;</em>
+<a name="125" href="#125">125</a> 	<em class="comment">// }</em>
+<a name="126" href="#126">126</a> 	<em class="comment">//</em>
+<a name="127" href="#127">127</a> 	<em class="comment">// public void resume(Transaction tx) {</em>
+<a name="128" href="#128">128</a> 	<em class="comment">// if (threadInfo.get() != null)</em>
+<a name="129" href="#129">129</a> 	<em class="comment">// throw new IllegalStateException();</em>
+<a name="130" href="#130">130</a> 	<em class="comment">// else</em>
+<a name="131" href="#131">131</a> 	<em class="comment">// threadInfo.set(tx);</em>
+<a name="132" href="#132">132</a> 	<em class="comment">// }</em>
+<a name="133" href="#133">133</a> 	<em class="comment">//</em>
+<a name="134" href="#134">134</a> 	<em class="comment">// public void forget() {</em>
+<a name="135" href="#135">135</a> 	<em class="comment">// threadInfo.set(null);</em>
+<a name="136" href="#136">136</a> 	<em class="comment">// }</em>
+<a name="137" href="#137">137</a> 
+<a name="138" href="#138">138</a> 	<strong>public</strong> <strong>static</strong> <a href="../../../../org/apache/kandula/context/AbstractContext.html">AbstractContext</a> getTransaction()
+<a name="139" href="#139">139</a> 			throws <a href="../../../../org/apache/kandula/faults/AbstractKandulaException.html">AbstractKandulaException</a> {
+<a name="140" href="#140">140</a> 		Object key = threadInfo.get();
+<a name="141" href="#141">141</a> 		AbstractContext context = (AbstractContext) StorageFactory
+<a name="142" href="#142">142</a> 				.getInstance().getInitiatorStore().get(key);
+<a name="143" href="#143">143</a> 		<strong>if</strong> (context == <strong>null</strong>) {
+<a name="144" href="#144">144</a> 			<strong>throw</strong> <strong>new</strong> <a href="../../../../org/apache/kandula/faults/InvalidStateException.html">InvalidStateException</a>(<span class="string">"No Activity Found"</span>);
+<a name="145" href="#145">145</a> 		}
+<a name="146" href="#146">146</a> 		<strong>return</strong> context;
+<a name="147" href="#147">147</a> 	}
+<a name="148" href="#148">148</a> 	<strong>public</strong> <strong>static</strong> <strong>void</strong> forgetTransaction()
+<a name="149" href="#149">149</a> 	{
+<a name="150" href="#150">150</a> 		threadInfo.set(<strong>null</strong>);
+<a name="151" href="#151">151</a> 	}
+<a name="152" href="#152">152</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/initiator/TransactionOutHandler.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/initiator/TransactionOutHandler.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/initiator/TransactionOutHandler.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/initiator/TransactionOutHandler.html Sat May 13 20:09:04 2006
@@ -0,0 +1,64 @@
+<!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>TransactionOutHandler xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/initiator/TransactionOutHandler.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"); you may not</em>
+<a name="5" href="#5">5</a>   <em class="comment"> * use this file except in compliance with the License. You may obtain a copy of</em>
+<a name="6" href="#6">6</a>   <em class="comment"> * 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, WITHOUT</em>
+<a name="12" href="#12">12</a>  <em class="comment"> * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the</em>
+<a name="13" href="#13">13</a>  <em class="comment"> * License for the specific language governing permissions and limitations under</em>
+<a name="14" href="#14">14</a>  <em class="comment"> * 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/initiator/package-summary.html">org.apache.kandula.initiator</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> org.apache.axiom.soap.SOAPHeader;
+<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.MessageContext;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.handlers.AbstractHandler;
+<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.context.CoordinationContext;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.kandula.faults.AbstractKandulaException;
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/initiator/TransactionOutHandler.html">TransactionOutHandler</a> <strong>extends</strong> AbstractHandler {
+<a name="29" href="#29">29</a>  
+<a name="30" href="#30">30</a>  	<strong>private</strong> <strong>static</strong> <strong>final</strong> <strong>long</strong> serialVersionUID = 4133392345837905499L;
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>  	<strong>public</strong> <strong>void</strong> invoke(MessageContext msgContext) throws AxisFault {
+<a name="33" href="#33">33</a>  
+<a name="34" href="#34">34</a>  		AbstractContext context;
+<a name="35" href="#35">35</a>  		<strong>try</strong> {
+<a name="36" href="#36">36</a>  			String wsaAction = msgContext.getWSAAction();
+<a name="37" href="#37">37</a>  			<strong>if</strong> ((wsaAction != Constants.WS_COOR_CREATE_COORDINATIONCONTEXT)
+<a name="38" href="#38">38</a>  					&amp;&amp; (wsaAction != Constants.WS_COOR_REGISTER)
+<a name="39" href="#39">39</a>  					&amp;&amp; (wsaAction != Constants.WS_AT_COMMIT)
+<a name="40" href="#40">40</a>  					&amp;&amp; (wsaAction != Constants.WS_AT_ROLLBACK)) {
+<a name="41" href="#41">41</a>  				context = TransactionManager.getTransaction();
+<a name="42" href="#42">42</a>  				SOAPHeader soapHeader = msgContext.getEnvelope().getHeader();
+<a name="43" href="#43">43</a>  				CoordinationContext coorContext = context
+<a name="44" href="#44">44</a>  						.getCoordinationContext();
+<a name="45" href="#45">45</a>  				soapHeader.addChild(coorContext.toOM());
+<a name="46" href="#46">46</a>  			}
+<a name="47" href="#47">47</a>  		} <strong>catch</strong> (AbstractKandulaException e) {
+<a name="48" href="#48">48</a>  			<strong>throw</strong> <strong>new</strong> AxisFault(e);
+<a name="49" href="#49">49</a>  		}
+<a name="50" href="#50">50</a>  	}
+<a name="51" href="#51">51</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/initiator/package-frame.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/initiator/package-frame.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/initiator/package-frame.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/initiator/package-frame.html Sat May 13 20:09:04 2006
@@ -0,0 +1,35 @@
+
+
+  <!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.initiator</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.initiator</a>
+      </h3>
+
+      <h3>Classes</h3>
+
+      <ul>
+        
+          <li>
+            <a href="ATInitiatorTransaction.html" target="classFrame">ATInitiatorTransaction</a>
+          </li>
+        
+          <li>
+            <a href="TransactionManager.html" target="classFrame">TransactionManager</a>
+          </li>
+        
+          <li>
+            <a href="TransactionOutHandler.html" target="classFrame">TransactionOutHandler</a>
+          </li>
+        
+      </ul>
+
+    </body>
+  </html>

Added: webservices/kandula/site/2/xref/org/apache/kandula/initiator/package-summary.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/initiator/package-summary.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/initiator/package-summary.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/initiator/package-summary.html Sat May 13 20:09:04 2006
@@ -0,0 +1,114 @@
+
+
+  
+
+  
+    
+
+    
+
+    
+
+  
+      <!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.initiator</h2>
+
+      <table class="summary">
+        <thead>
+          <tr>
+            <th>Class Summary</th>
+          </tr>
+        </thead>
+
+        <tbody>
+          
+            <tr>
+              <td>
+                <a href="ATInitiatorTransaction.html" target="classFrame">ATInitiatorTransaction</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="TransactionManager.html" target="classFrame">TransactionManager</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="TransactionOutHandler.html" target="classFrame">TransactionOutHandler</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/package-frame.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/package-frame.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/package-frame.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/package-frame.html Sat May 13 20:09:04 2006
@@ -0,0 +1,31 @@
+
+
+  <!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</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</a>
+      </h3>
+
+      <h3>Classes</h3>
+
+      <ul>
+        
+          <li>
+            <a href="Constants.html" target="classFrame">Constants</a>
+          </li>
+        
+          <li>
+            <a href="Status.html" target="classFrame">Status</a>
+          </li>
+        
+      </ul>
+
+    </body>
+  </html>

Added: webservices/kandula/site/2/xref/org/apache/kandula/package-summary.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/package-summary.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/package-summary.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/package-summary.html Sat May 13 20:09:04 2006
@@ -0,0 +1,108 @@
+
+
+  
+
+  
+    
+
+    
+
+    
+
+  
+      <!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</h2>
+
+      <table class="summary">
+        <thead>
+          <tr>
+            <th>Class Summary</th>
+          </tr>
+        </thead>
+
+        <tbody>
+          
+            <tr>
+              <td>
+                <a href="Constants.html" target="classFrame">Constants</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="Status.html" target="classFrame">Status</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/participant/KandulaResource.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/participant/KandulaResource.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/participant/KandulaResource.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/participant/KandulaResource.html Sat May 13 20:09:04 2006
@@ -0,0 +1,43 @@
+<!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>KandulaResource xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/participant/KandulaResource.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/participant/package-summary.html">org.apache.kandula.participant</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <em>/**<em>*</em></em>
+<a name="20" href="#20">20</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="21" href="#21">21</a>  <em> */</em>
+<a name="22" href="#22">22</a>  <strong>public</strong> <strong>interface</strong> <a href="../../../../org/apache/kandula/participant/KandulaResource.html">KandulaResource</a> {
+<a name="23" href="#23">23</a>  	<strong>public</strong> <strong>boolean</strong> commit();
+<a name="24" href="#24">24</a>  
+<a name="25" href="#25">25</a>  	<strong>public</strong> <strong>void</strong> rollback();
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>  	<strong>public</strong> <a href="../../../../org/apache/kandula/participant/Vote.html">Vote</a> prepare();
+<a name="28" href="#28">28</a>  
+<a name="29" href="#29">29</a>  	<strong>public</strong> String getProtocol();
+<a name="30" href="#30">30</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/participant/ParticipantTransactionCoordinator.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/participant/ParticipantTransactionCoordinator.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/participant/ParticipantTransactionCoordinator.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/participant/ParticipantTransactionCoordinator.html Sat May 13 20:09:04 2006
@@ -0,0 +1,131 @@
+<!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>ParticipantTransactionCoordinator xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/participant/ParticipantTransactionCoordinator.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/participant/package-summary.html">org.apache.kandula.participant</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> org.apache.kandula.Status;
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.kandula.context.AbstractContext;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.kandula.context.impl.ATParticipantContext;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.kandula.faults.AbstractKandulaException;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.kandula.faults.InvalidStateException;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.kandula.wsat.twopc.CoordinatorPortTypeRawXMLStub;
+<a name="25" href="#25">25</a>  
+<a name="26" href="#26">26</a>  <em>/**<em>*</em></em>
+<a name="27" href="#27">27</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="28" href="#28">28</a>  <em> */</em>
+<a name="29" href="#29">29</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/participant/ParticipantTransactionCoordinator.html">ParticipantTransactionCoordinator</a> {
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  	<strong>public</strong> <strong>void</strong> prepare(<a href="../../../../org/apache/kandula/context/AbstractContext.html">AbstractContext</a> context)
+<a name="32" href="#32">32</a>  			throws <a href="../../../../org/apache/kandula/faults/AbstractKandulaException.html">AbstractKandulaException</a> {
+<a name="33" href="#33">33</a>  		CoordinatorPortTypeRawXMLStub stub;
+<a name="34" href="#34">34</a>  		ATParticipantContext atContext = (ATParticipantContext) context;
+<a name="35" href="#35">35</a>  		atContext.lock();
+<a name="36" href="#36">36</a>  		<strong>switch</strong> (context.getStatus()) {
+<a name="37" href="#37">37</a>  		<strong>case</strong> (Status.CoordinatorStatus.STATUS_NONE):
+<a name="38" href="#38">38</a>  			atContext.unlock();
+<a name="39" href="#39">39</a>  			stub = <strong>new</strong> <a href="../../../../org/apache/kandula/wsat/twopc/CoordinatorPortTypeRawXMLStub.html">CoordinatorPortTypeRawXMLStub</a>(atContext
+<a name="40" href="#40">40</a>  					.getCoordinationEPR());
+<a name="41" href="#41">41</a>  			stub.abortedOperation();
+<a name="42" href="#42">42</a>  			<strong>break</strong>;
+<a name="43" href="#43">43</a>  		<strong>case</strong> (Status.CoordinatorStatus.STATUS_PREPARING):
+<a name="44" href="#44">44</a>  		<strong>case</strong> (Status.CoordinatorStatus.STATUS_PREPARED):
+<a name="45" href="#45">45</a>  		<strong>case</strong> (Status.CoordinatorStatus.STATUS_COMMITTING):
+<a name="46" href="#46">46</a>  			<em class="comment">// Ignore the message</em>
+<a name="47" href="#47">47</a>  			atContext.unlock();
+<a name="48" href="#48">48</a>  			<strong>break</strong>;
+<a name="49" href="#49">49</a>  		<strong>case</strong> (Status.CoordinatorStatus.STATUS_PREPARED_SUCCESS):
+<a name="50" href="#50">50</a>  			atContext.unlock();
+<a name="51" href="#51">51</a>  			stub = <strong>new</strong> <a href="../../../../org/apache/kandula/wsat/twopc/CoordinatorPortTypeRawXMLStub.html">CoordinatorPortTypeRawXMLStub</a>(atContext
+<a name="52" href="#52">52</a>  					.getCoordinationEPR());
+<a name="53" href="#53">53</a>  			stub.preparedOperation();
+<a name="54" href="#54">54</a>  			<strong>break</strong>;
+<a name="55" href="#55">55</a>  		<strong>case</strong> (Status.CoordinatorStatus.STATUS_ACTIVE):
+<a name="56" href="#56">56</a>  			atContext.setStatus(Status.CoordinatorStatus.STATUS_PREPARING);
+<a name="57" href="#57">57</a>  			atContext.unlock();
+<a name="58" href="#58">58</a>  			KandulaResource resource = atContext.getResource();
+<a name="59" href="#59">59</a>  			Vote vote = resource.prepare();
+<a name="60" href="#60">60</a>  			stub = <strong>new</strong> <a href="../../../../org/apache/kandula/wsat/twopc/CoordinatorPortTypeRawXMLStub.html">CoordinatorPortTypeRawXMLStub</a>(atContext
+<a name="61" href="#61">61</a>  					.getCoordinationEPR());
+<a name="62" href="#62">62</a>  			<strong>if</strong> (vote == Vote.ABORT) {
+<a name="63" href="#63">63</a>  				stub.abortedOperation();
+<a name="64" href="#64">64</a>  			} <strong>else</strong> <strong>if</strong> (vote == Vote.PREPARED) {
+<a name="65" href="#65">65</a>  				stub.preparedOperation();
+<a name="66" href="#66">66</a>  			} <strong>else</strong> <strong>if</strong> (vote == Vote.READ_ONLY) {
+<a name="67" href="#67">67</a>  				stub.readOnlyOperation();
+<a name="68" href="#68">68</a>  			}
+<a name="69" href="#69">69</a>  			<strong>break</strong>;
+<a name="70" href="#70">70</a>  		<strong>default</strong>:
+<a name="71" href="#71">71</a>  			context.unlock();
+<a name="72" href="#72">72</a>  			<strong>throw</strong> <strong>new</strong> <a href="../../../../org/apache/kandula/faults/InvalidStateException.html">InvalidStateException</a>();
+<a name="73" href="#73">73</a>  		}
+<a name="74" href="#74">74</a>  	}
+<a name="75" href="#75">75</a>  
+<a name="76" href="#76">76</a>  	<strong>public</strong> <strong>void</strong> commit(<a href="../../../../org/apache/kandula/context/AbstractContext.html">AbstractContext</a> context) throws AbstractKandulaException {
+<a name="77" href="#77">77</a>  		ATParticipantContext atContext = (ATParticipantContext) context;
+<a name="78" href="#78">78</a>  		<strong>boolean</strong> outcome = atContext.getResource().commit();
+<a name="79" href="#79">79</a>  		CoordinatorPortTypeRawXMLStub stub = <strong>new</strong> <a href="../../../../org/apache/kandula/wsat/twopc/CoordinatorPortTypeRawXMLStub.html">CoordinatorPortTypeRawXMLStub</a>(
+<a name="80" href="#80">80</a>  				atContext.getCoordinationEPR());
+<a name="81" href="#81">81</a>  		<strong>if</strong> (outcome) {
+<a name="82" href="#82">82</a>  			stub.committedOperation();
+<a name="83" href="#83">83</a>  		} <strong>else</strong> {
+<a name="84" href="#84">84</a>  			stub.abortedOperation();
+<a name="85" href="#85">85</a>  		}
+<a name="86" href="#86">86</a>  		<em class="comment">// ATParticipantContext atContext = (ATParticipantContext) context;</em>
+<a name="87" href="#87">87</a>  		<em class="comment">// atContext.lock();</em>
+<a name="88" href="#88">88</a>  		<em class="comment">// switch (context.getStatus()) {</em>
+<a name="89" href="#89">89</a>  		<em class="comment">// case (Status.CoordinatorStatus.STATUS_NONE):</em>
+<a name="90" href="#90">90</a>  		<em class="comment">// //TODO send aborted</em>
+<a name="91" href="#91">91</a>  		<em class="comment">// atContext.unlock();</em>
+<a name="92" href="#92">92</a>  		<em class="comment">// return Vote.ABORT;</em>
+<a name="93" href="#93">93</a>  		<em class="comment">// case (Status.CoordinatorStatus.STATUS_PREPARING):</em>
+<a name="94" href="#94">94</a>  		<em class="comment">// case (Status.CoordinatorStatus.STATUS_PREPARED):</em>
+<a name="95" href="#95">95</a>  		<em class="comment">// case (Status.CoordinatorStatus.STATUS_COMMITTING):</em>
+<a name="96" href="#96">96</a>  		<em class="comment">// //Ignore the message</em>
+<a name="97" href="#97">97</a>  		<em class="comment">// atContext.unlock();</em>
+<a name="98" href="#98">98</a>  		<em class="comment">// return Vote.NONE;</em>
+<a name="99" href="#99">99</a>  		<em class="comment">// case (Status.CoordinatorStatus.STATUS_PREPARED_SUCCESS):</em>
+<a name="100" href="#100">100</a> 		<em class="comment">// atContext.unlock();</em>
+<a name="101" href="#101">101</a> 		<em class="comment">// return Vote.PREPARED;</em>
+<a name="102" href="#102">102</a> 		<em class="comment">// case (Status.CoordinatorStatus.STATUS_ACTIVE):</em>
+<a name="103" href="#103">103</a> 		<em class="comment">// atContext.setStatus(Status.CoordinatorStatus.STATUS_PREPARING);</em>
+<a name="104" href="#104">104</a> 		<em class="comment">// KandulaResource resource = atContext.getResource();</em>
+<a name="105" href="#105">105</a> 		<em class="comment">// return resource.prepare();</em>
+<a name="106" href="#106">106</a> 		<em class="comment">// default:</em>
+<a name="107" href="#107">107</a> 		<em class="comment">// context.unlock();</em>
+<a name="108" href="#108">108</a> 		<em class="comment">// throw new InvalidStateException();</em>
+<a name="109" href="#109">109</a> 		<em class="comment">// }</em>
+<a name="110" href="#110">110</a> 	}
+<a name="111" href="#111">111</a> 
+<a name="112" href="#112">112</a> 	<strong>public</strong> <strong>void</strong> rollback(<a href="../../../../org/apache/kandula/context/AbstractContext.html">AbstractContext</a> context) throws InvalidStateException {
+<a name="113" href="#113">113</a> 		ATParticipantContext atContext = (ATParticipantContext) context;
+<a name="114" href="#114">114</a> 		atContext.getResource().rollback();
+<a name="115" href="#115">115</a> 
+<a name="116" href="#116">116</a> 	}
+<a name="117" href="#117">117</a> 
+<a name="118" href="#118">118</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/participant/TransactionInHandler.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/participant/TransactionInHandler.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/participant/TransactionInHandler.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/participant/TransactionInHandler.html Sat May 13 20:09:04 2006
@@ -0,0 +1,123 @@
+<!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>TransactionInHandler xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/participant/TransactionInHandler.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"); you may not</em>
+<a name="5" href="#5">5</a>   <em class="comment"> * use this file except in compliance with the License. You may obtain a copy of</em>
+<a name="6" href="#6">6</a>   <em class="comment"> * 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, WITHOUT</em>
+<a name="12" href="#12">12</a>  <em class="comment"> * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the</em>
+<a name="13" href="#13">13</a>  <em class="comment"> * License for the specific language governing permissions and limitations under</em>
+<a name="14" href="#14">14</a>  <em class="comment"> * 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/participant/package-summary.html">org.apache.kandula.participant</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> java.io.IOException;
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="22" href="#22">22</a>  
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.axiom.om.OMElement;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axiom.soap.SOAPHeader;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.axis2.AxisFault;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.axis2.addressing.EndpointReference;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.axis2.context.MessageContext;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.axis2.handlers.AbstractHandler;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.kandula.Constants;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.kandula.context.AbstractContext;
+<a name="31" href="#31">31</a>  <strong>import</strong> org.apache.kandula.context.CoordinationContext;
+<a name="32" href="#32">32</a>  <strong>import</strong> org.apache.kandula.context.impl.ATParticipantContext;
+<a name="33" href="#33">33</a>  <strong>import</strong> org.apache.kandula.context.impl.SimpleCoordinationContext;
+<a name="34" href="#34">34</a>  <strong>import</strong> org.apache.kandula.faults.AbstractKandulaException;
+<a name="35" href="#35">35</a>  <strong>import</strong> org.apache.kandula.storage.StorageFactory;
+<a name="36" href="#36">36</a>  <strong>import</strong> org.apache.kandula.storage.Store;
+<a name="37" href="#37">37</a>  <strong>import</strong> org.apache.kandula.utility.EndpointReferenceFactory;
+<a name="38" href="#38">38</a>  <strong>import</strong> org.apache.kandula.utility.KandulaConfiguration;
+<a name="39" href="#39">39</a>  <strong>import</strong> org.apache.kandula.wscoor.RegistrationCoordinatorPortTypeRawXMLStub;
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/participant/TransactionInHandler.html">TransactionInHandler</a> <strong>extends</strong> AbstractHandler {
+<a name="42" href="#42">42</a>  
+<a name="43" href="#43">43</a>  	<strong>private</strong> <strong>static</strong> <strong>final</strong> <strong>long</strong> serialVersionUID = 2098581248112968550L;
+<a name="44" href="#44">44</a>  
+<a name="45" href="#45">45</a>  	<em class="comment">// private ThreadLocal threadInfo = new ThreadLocal();</em>
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>  	<strong>public</strong> <strong>void</strong> invoke(MessageContext msgContext) throws AxisFault {
+<a name="48" href="#48">48</a>  		KandulaResource resource;
+<a name="49" href="#49">49</a>  		String wsaAction = msgContext.getWSAAction();
+<a name="50" href="#50">50</a>  		<strong>if</strong> ((wsaAction != Constants.WS_COOR_CREATE_COORDINATIONCONTEXT)
+<a name="51" href="#51">51</a>  				&amp;&amp; (wsaAction != Constants.WS_COOR_REGISTER)
+<a name="52" href="#52">52</a>  				&amp;&amp; (wsaAction != Constants.WS_AT_COMMIT)
+<a name="53" href="#53">53</a>  				&amp;&amp; (wsaAction != Constants.WS_AT_ROLLBACK)) {
+<a name="54" href="#54">54</a>  			StorageFactory.getInstance().setConfigurationContext(
+<a name="55" href="#55">55</a>  					msgContext.getServiceContext().getConfigurationContext());
+<a name="56" href="#56">56</a>  			ATParticipantContext context = <strong>new</strong> <a href="../../../../org/apache/kandula/context/impl/ATParticipantContext.html">ATParticipantContext</a>();
+<a name="57" href="#57">57</a>  			SOAPHeader header = msgContext.getEnvelope().getHeader();
+<a name="58" href="#58">58</a>  			OMElement coordinationElement = header
+<a name="59" href="#59">59</a>  					.getFirstChildWithName(<strong>new</strong> QName(Constants.WS_COOR,
+<a name="60" href="#60">60</a>  							<span class="string">"CoordinationContext"</span>));
+<a name="61" href="#61">61</a>  			<strong>if</strong> (coordinationElement == <strong>null</strong>) {
+<a name="62" href="#62">62</a>  				<strong>throw</strong> <strong>new</strong> AxisFault(
+<a name="63" href="#63">63</a>  						<span class="string">"Transaction Handler engaged.. No Coordination Context found"</span>);
+<a name="64" href="#64">64</a>  			}
+<a name="65" href="#65">65</a>  			CoordinationContext coorContext = <strong>new</strong> <a href="../../../../org/apache/kandula/context/impl/SimpleCoordinationContext.html">SimpleCoordinationContext</a>(
+<a name="66" href="#66">66</a>  					coordinationElement);
+<a name="67" href="#67">67</a>  			context.setCoordinationContext(coorContext);
+<a name="68" href="#68">68</a>  
+<a name="69" href="#69">69</a>  			<em class="comment">// TODO : See whether we can allow the user to set the resource when</em>
+<a name="70" href="#70">70</a>  			<em class="comment">// the</em>
+<a name="71" href="#71">71</a>  			<em class="comment">// business logic receives the message</em>
+<a name="72" href="#72">72</a>  			String resourceFile = (String) msgContext.getParameter(
+<a name="73" href="#73">73</a>  					Constants.KANDULA_RESOURCE).getValue();
+<a name="74" href="#74">74</a>  			String participantRepository = KandulaConfiguration.getInstance()
+<a name="75" href="#75">75</a>  					.getParticipantRepository();
+<a name="76" href="#76">76</a>  			String participantAxis2Xml = KandulaConfiguration.getInstance()
+<a name="77" href="#77">77</a>  					.getParticipantAxis2Conf();
+<a name="78" href="#78">78</a>  
+<a name="79" href="#79">79</a>  			<strong>try</strong> {
+<a name="80" href="#80">80</a>  				resource = (KandulaResource) Class.forName(resourceFile)
+<a name="81" href="#81">81</a>  						.newInstance();
+<a name="82" href="#82">82</a>  			} <strong>catch</strong> (Exception e) {
+<a name="83" href="#83">83</a>  				<strong>throw</strong> <strong>new</strong> AxisFault(e);
+<a name="84" href="#84">84</a>  			}
+<a name="85" href="#85">85</a>  			context.setResource(resource);
+<a name="86" href="#86">86</a>  
+<a name="87" href="#87">87</a>  			String id = <a href="../../../../org/apache/kandula/utility/EndpointReferenceFactory.html">EndpointReferenceFactory</a>
+<a name="88" href="#88">88</a>  					.getRandomStringOf18Characters();
+<a name="89" href="#89">89</a>  			Store store = StorageFactory.getInstance().getStore();
+<a name="90" href="#90">90</a>  			context.setProperty(AbstractContext.REQUESTER_ID, id);
+<a name="91" href="#91">91</a>  			store.put(id, context);
+<a name="92" href="#92">92</a>  			<em class="comment">// ParticipantTransactionCoordinator txManager = new</em>
+<a name="93" href="#93">93</a>  			<em class="comment">// ParticipantTransactionCoordinator();</em>
+<a name="94" href="#94">94</a>  			<strong>try</strong> {
+<a name="95" href="#95">95</a>  				RegistrationCoordinatorPortTypeRawXMLStub stub = <strong>new</strong> <a href="../../../../org/apache/kandula/wscoor/RegistrationCoordinatorPortTypeRawXMLStub.html">RegistrationCoordinatorPortTypeRawXMLStub</a>(
+<a name="96" href="#96">96</a>  						participantRepository, participantAxis2Xml, coorContext
+<a name="97" href="#97">97</a>  								.getRegistrationService());
+<a name="98" href="#98">98</a>  				EndpointReference participantProtocolService = <a href="../../../../org/apache/kandula/utility/EndpointReferenceFactory.html">EndpointReferenceFactory</a>
+<a name="99" href="#99">99</a>  						.getInstance().get2PCParticipantEndpoint(id);
+<a name="100" href="#100">100</a> 				stub.registerOperation(context,
+<a name="101" href="#101">101</a> 						participantProtocolService,false);
+<a name="102" href="#102">102</a> 			} <strong>catch</strong> (IOException e) {
+<a name="103" href="#103">103</a> 				<strong>throw</strong> <strong>new</strong> AxisFault(e);
+<a name="104" href="#104">104</a> 			} <strong>catch</strong> (AbstractKandulaException e) {
+<a name="105" href="#105">105</a> 				AxisFault e1 = <strong>new</strong> AxisFault(e);
+<a name="106" href="#106">106</a> 				<strong>throw</strong> e1;
+<a name="107" href="#107">107</a> 			}
+<a name="108" href="#108">108</a> 		}
+<a name="109" href="#109">109</a> 	}
+<a name="110" href="#110">110</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/participant/Vote.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/participant/Vote.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/participant/Vote.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/participant/Vote.html Sat May 13 20:09:04 2006
@@ -0,0 +1,54 @@
+<!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>Vote xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/participant/Vote.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/participant/package-summary.html">org.apache.kandula.participant</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <em>/**<em>*</em></em>
+<a name="20" href="#20">20</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="21" href="#21">21</a>  <em> */</em>
+<a name="22" href="#22">22</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/participant/Vote.html">Vote</a> {
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  	<strong>public</strong> <strong>static</strong> <a href="../../../../org/apache/kandula/participant/Vote.html">Vote</a> READ_ONLY = <strong>new</strong> <a href="../../../../org/apache/kandula/participant/Vote.html">Vote</a>(<span class="string">"VoteReadOnly"</span>);
+<a name="25" href="#25">25</a>  
+<a name="26" href="#26">26</a>  	<strong>public</strong> <strong>static</strong> <a href="../../../../org/apache/kandula/participant/Vote.html">Vote</a> ABORT = <strong>new</strong> <a href="../../../../org/apache/kandula/participant/Vote.html">Vote</a>(<span class="string">"VoteAbort"</span>);
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  	<strong>public</strong> <strong>static</strong> <a href="../../../../org/apache/kandula/participant/Vote.html">Vote</a> PREPARED = <strong>new</strong> <a href="../../../../org/apache/kandula/participant/Vote.html">Vote</a>(<span class="string">"VotePrepared"</span>);
+<a name="29" href="#29">29</a>  
+<a name="30" href="#30">30</a>  	<strong>public</strong> <strong>static</strong> <a href="../../../../org/apache/kandula/participant/Vote.html">Vote</a> NONE = <strong>new</strong> <a href="../../../../org/apache/kandula/participant/Vote.html">Vote</a>(<span class="string">""</span>);
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>  	<strong>private</strong> String state;
+<a name="33" href="#33">33</a>  
+<a name="34" href="#34">34</a>  	<strong>public</strong> <a href="../../../../org/apache/kandula/participant/Vote.html">Vote</a>(String outcome) {
+<a name="35" href="#35">35</a>  		<strong>this</strong>.state = outcome;
+<a name="36" href="#36">36</a>  	}
+<a name="37" href="#37">37</a>  
+<a name="38" href="#38">38</a>  	<strong>public</strong> String getOutcome() {
+<a name="39" href="#39">39</a>  		<strong>return</strong> state;
+<a name="40" href="#40">40</a>  	}
+<a name="41" href="#41">41</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/participant/package-frame.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/participant/package-frame.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/participant/package-frame.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/participant/package-frame.html Sat May 13 20:09:04 2006
@@ -0,0 +1,39 @@
+
+
+  <!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.participant</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.participant</a>
+      </h3>
+
+      <h3>Classes</h3>
+
+      <ul>
+        
+          <li>
+            <a href="KandulaResource.html" target="classFrame">KandulaResource</a>
+          </li>
+        
+          <li>
+            <a href="ParticipantTransactionCoordinator.html" target="classFrame">ParticipantTransactionCoordinator</a>
+          </li>
+        
+          <li>
+            <a href="TransactionInHandler.html" target="classFrame">TransactionInHandler</a>
+          </li>
+        
+          <li>
+            <a href="Vote.html" target="classFrame">Vote</a>
+          </li>
+        
+      </ul>
+
+    </body>
+  </html>

Added: webservices/kandula/site/2/xref/org/apache/kandula/participant/package-summary.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/participant/package-summary.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/participant/package-summary.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/participant/package-summary.html Sat May 13 20:09:04 2006
@@ -0,0 +1,120 @@
+
+
+  
+
+  
+    
+
+    
+
+    
+
+  
+      <!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.participant</h2>
+
+      <table class="summary">
+        <thead>
+          <tr>
+            <th>Class Summary</th>
+          </tr>
+        </thead>
+
+        <tbody>
+          
+            <tr>
+              <td>
+                <a href="KandulaResource.html" target="classFrame">KandulaResource</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="ParticipantTransactionCoordinator.html" target="classFrame">ParticipantTransactionCoordinator</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="TransactionInHandler.html" target="classFrame">TransactionInHandler</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="Vote.html" target="classFrame">Vote</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/storage/SimpleStore.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/storage/SimpleStore.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/storage/SimpleStore.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/storage/SimpleStore.html Sat May 13 20:09:04 2006
@@ -0,0 +1,75 @@
+<!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>SimpleStore xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/storage/SimpleStore.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/storage/package-summary.html">org.apache.kandula.storage</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> java.util.HashMap;
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.kandula.context.AbstractContext;
+<a name="22" href="#22">22</a>  
+<a name="23" href="#23">23</a>  <em>/**<em>*</em></em>
+<a name="24" href="#24">24</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="25" href="#25">25</a>  <em> */</em>
+<a name="26" href="#26">26</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/storage/SimpleStore.html">SimpleStore</a> implements <a href="../../../../org/apache/kandula/storage/Store.html">Store</a> {
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  	<strong>private</strong> HashMap contextMap;
+<a name="29" href="#29">29</a>  
+<a name="30" href="#30">30</a>  	<em class="comment">/*</em>
+<a name="31" href="#31">31</a>  <em class="comment">	 * (non-Javadoc)</em>
+<a name="32" href="#32">32</a>  <em class="comment">	 * </em>
+<a name="33" href="#33">33</a>  <em class="comment">	 * @see org.apache.kandula.storage.Store#putContext(java.lang.String,</em>
+<a name="34" href="#34">34</a>  <em class="comment">	 *      org.apache.kandula.context.ActivityContext)</em>
+<a name="35" href="#35">35</a>  <em class="comment">	 */</em>
+<a name="36" href="#36">36</a>  	<strong>public</strong> <a href="../../../../org/apache/kandula/storage/SimpleStore.html">SimpleStore</a>() {
+<a name="37" href="#37">37</a>  		contextMap = <strong>new</strong> HashMap();
+<a name="38" href="#38">38</a>  	}
+<a name="39" href="#39">39</a>  
+<a name="40" href="#40">40</a>  	<strong>public</strong> <strong>void</strong> put(Object id, Object context) {
+<a name="41" href="#41">41</a>  		contextMap.put(id, context);
+<a name="42" href="#42">42</a>  	}
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  	<em class="comment">/*</em>
+<a name="45" href="#45">45</a>  <em class="comment">	 * (non-Javadoc)</em>
+<a name="46" href="#46">46</a>  <em class="comment">	 * </em>
+<a name="47" href="#47">47</a>  <em class="comment">	 * @see org.apache.kandula.storage.Store#getContext(java.lang.String)</em>
+<a name="48" href="#48">48</a>  <em class="comment">	 */</em>
+<a name="49" href="#49">49</a>  	<strong>public</strong> Object get(Object id) {
+<a name="50" href="#50">50</a>  		<strong>return</strong> (AbstractContext) contextMap.get(id);
+<a name="51" href="#51">51</a>  	}
+<a name="52" href="#52">52</a>  
+<a name="53" href="#53">53</a>  	<em class="comment">/*</em>
+<a name="54" href="#54">54</a>  <em class="comment">	 * (non-Javadoc)</em>
+<a name="55" href="#55">55</a>  <em class="comment">	 * </em>
+<a name="56" href="#56">56</a>  <em class="comment">	 * @see org.apache.kandula.storage.Store#forgetContext(java.lang.String)</em>
+<a name="57" href="#57">57</a>  <em class="comment">	 */</em>
+<a name="58" href="#58">58</a>  	<strong>public</strong> <strong>void</strong> forget(Object id) {
+<a name="59" href="#59">59</a>  		contextMap.remove(id);
+<a name="60" href="#60">60</a>  	}
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</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/storage/StorageFactory.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/storage/StorageFactory.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/storage/StorageFactory.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/storage/StorageFactory.html Sat May 13 20:09:04 2006
@@ -0,0 +1,85 @@
+<!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>StorageFactory xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/storage/StorageFactory.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/storage/package-summary.html">org.apache.kandula.storage</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> org.apache.axis2.context.ConfigurationContext;
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.kandula.Constants;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <em>/**<em>*</em></em>
+<a name="23" href="#23">23</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="24" href="#24">24</a>  <em> */</em>
+<a name="25" href="#25">25</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/storage/StorageFactory.html">StorageFactory</a> {
+<a name="26" href="#26">26</a>  	<strong>private</strong> <strong>static</strong> <a href="../../../../org/apache/kandula/storage/StorageFactory.html">StorageFactory</a> instance = <strong>new</strong> <a href="../../../../org/apache/kandula/storage/StorageFactory.html">StorageFactory</a>();
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  	<strong>private</strong> ConfigurationContext configurationContext = <strong>null</strong>;
+<a name="29" href="#29">29</a>  
+<a name="30" href="#30">30</a>  	<strong>private</strong> <a href="../../../../org/apache/kandula/storage/Store.html">Store</a> clientStore = <strong>null</strong>;
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>  	<strong>private</strong> <a href="../../../../org/apache/kandula/storage/StorageFactory.html">StorageFactory</a>() {
+<a name="33" href="#33">33</a>  	}
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  	<strong>public</strong> <strong>static</strong> <a href="../../../../org/apache/kandula/storage/StorageFactory.html">StorageFactory</a> getInstance() {
+<a name="36" href="#36">36</a>  		<strong>return</strong> instance;
+<a name="37" href="#37">37</a>  	}
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  	<strong>public</strong> <a href="../../../../org/apache/kandula/storage/Store.html">Store</a> getStore() {
+<a name="40" href="#40">40</a>  		<strong>if</strong> (configurationContext == <strong>null</strong>)
+<a name="41" href="#41">41</a>  			<strong>return</strong> <strong>null</strong>;
+<a name="42" href="#42">42</a>  		Store store = (Store) configurationContext
+<a name="43" href="#43">43</a>  				.getProperty(Constants.KANDULA_STORE);
+<a name="44" href="#44">44</a>  		<strong>if</strong> (store == <strong>null</strong>) {
+<a name="45" href="#45">45</a>  			store = <strong>new</strong> <a href="../../../../org/apache/kandula/storage/SimpleStore.html">SimpleStore</a>();
+<a name="46" href="#46">46</a>  			configurationContext.setProperty(Constants.KANDULA_STORE, store);
+<a name="47" href="#47">47</a>  		}
+<a name="48" href="#48">48</a>  		<strong>return</strong> store;
+<a name="49" href="#49">49</a>  	}
+<a name="50" href="#50">50</a>  
+<a name="51" href="#51">51</a>  	<em class="comment">/*</em>
+<a name="52" href="#52">52</a>  <em class="comment">	 * TODO: Have to remove this. This is a hack done to get through the interop</em>
+<a name="53" href="#53">53</a>  <em class="comment">	 */</em>
+<a name="54" href="#54">54</a>  	<strong>public</strong> <a href="../../../../org/apache/kandula/storage/Store.html">Store</a> getInitiatorStore() {
+<a name="55" href="#55">55</a>  		<strong>if</strong> (clientStore == <strong>null</strong>) {
+<a name="56" href="#56">56</a>  			clientStore = <strong>new</strong> <a href="../../../../org/apache/kandula/storage/SimpleStore.html">SimpleStore</a>();
+<a name="57" href="#57">57</a>  		}
+<a name="58" href="#58">58</a>  		<strong>return</strong> clientStore;
+<a name="59" href="#59">59</a>  	}
+<a name="60" href="#60">60</a>  
+<a name="61" href="#61">61</a>  	<strong>public</strong> <strong>void</strong> setConfigurationContext(
+<a name="62" href="#62">62</a>  			ConfigurationContext configurationContext) {
+<a name="63" href="#63">63</a>  		<strong>this</strong>.configurationContext = configurationContext;
+<a name="64" href="#64">64</a>  	}
+<a name="65" href="#65">65</a>  
+<a name="66" href="#66">66</a>  	<em class="comment">/*</em>
+<a name="67" href="#67">67</a>  <em class="comment">	 * TODO : Remove this... Parts of the Hack done for Interop</em>
+<a name="68" href="#68">68</a>  <em class="comment">	 */</em>
+<a name="69" href="#69">69</a>  	<strong>public</strong> ConfigurationContext getConfigurationContext() {
+<a name="70" href="#70">70</a>  		<strong>return</strong> configurationContext;
+<a name="71" href="#71">71</a>  	}
+<a name="72" href="#72">72</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/storage/Store.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/storage/Store.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/storage/Store.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/storage/Store.html Sat May 13 20:09:04 2006
@@ -0,0 +1,41 @@
+<!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>Store xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/storage/Store.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/storage/package-summary.html">org.apache.kandula.storage</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <em>/**<em>*</em></em>
+<a name="20" href="#20">20</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="21" href="#21">21</a>  <em> */</em>
+<a name="22" href="#22">22</a>  <strong>public</strong> <strong>interface</strong> <a href="../../../../org/apache/kandula/storage/Store.html">Store</a> {
+<a name="23" href="#23">23</a>  	<strong>void</strong> put(Object id, Object context);
+<a name="24" href="#24">24</a>  
+<a name="25" href="#25">25</a>  	Object get(Object id);
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>  	<strong>void</strong> forget(Object id);
+<a name="28" href="#28">28</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/storage/package-frame.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/storage/package-frame.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/storage/package-frame.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/storage/package-frame.html Sat May 13 20:09:04 2006
@@ -0,0 +1,35 @@
+
+
+  <!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.storage</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.storage</a>
+      </h3>
+
+      <h3>Classes</h3>
+
+      <ul>
+        
+          <li>
+            <a href="SimpleStore.html" target="classFrame">SimpleStore</a>
+          </li>
+        
+          <li>
+            <a href="StorageFactory.html" target="classFrame">StorageFactory</a>
+          </li>
+        
+          <li>
+            <a href="Store.html" target="classFrame">Store</a>
+          </li>
+        
+      </ul>
+
+    </body>
+  </html>



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