removing author tags...
Adding the missing licenses..
diff --git a/maven.xml b/maven.xml
index 5525260..551394a 100644
--- a/maven.xml
+++ b/maven.xml
@@ -11,29 +11,29 @@
</path>
</goal>
- <preGoal name="java:compile">
- <attainGoal name="generate:code"/>
- <path id="generated.src.path">
- <pathelement location="target/src"/>
- </path>
- <maven:addPath id="maven.compile.src.set" refid="generated.src.path"/>
- </preGoal>
-
+ <preGoal name="java:compile">
+ <attainGoal name="generate:code" />
+ <path id="generated.src.path">
+ <pathelement location="target/src" />
+ </path>
+ <maven:addPath id="maven.compile.src.set" refid="generated.src.path" />
+ </preGoal>
+
<goal name="generate:code">
<!-- Code generating for the WS-Coordination WSDL -->
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.dependency.classpath" />
<arg line=" -o target -p org.apache.kandula.wscoor -g -ss -sd -sn RegistrationService -uri schema/wscoor.wsdl" />
</java>
- <delete file="target/src/org/apache/kandula/wscoor/RegistrationServiceSkeleton.java"/>
-
+ <delete file="target/src/org/apache/kandula/wscoor/RegistrationServiceSkeleton.java" />
+
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.dependency.classpath" />
<arg line=" -o target -p org.apache.kandula.wscoor -g -ss -sd -sn ActivationService -uri schema/wscoor.wsdl" />
</java>
- <delete file="target/src/org/apache/kandula/wscoor/ActivationServiceSkeleton.java"/>
-
- <!-- Code generating for the WS-AT WSDL >
+ <delete file="target/src/org/apache/kandula/wscoor/ActivationServiceSkeleton.java" />
+
+ <!-- Code generating for the WS-AT WSDL -->
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.dependency.classpath" />
<arg line=" -o target -p org.apache.kandula.wsat.twopc -g -ss -sd -sn Participant2PCService -uri schema/wsat.wsdl" />
@@ -49,9 +49,9 @@
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.dependency.classpath" />
<arg line=" -o target -p org.apache.kandula.wsat.completion -g -ss -sd -sn CompletionCoordinator -uri schema/wsat.wsdl" />
- </java-->
+ </java>
- <!-- Code generating for the WS-BA WSDL >
+ <!-- Code generating for the WS-BA WSDL -->
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.dependency.classpath" />
<arg line=" -o target -p org.apache.kandula.wsba -g -ss -sd -sn BAParticipantCompletionParticipantService -uri schema/wsba.wsdl" />
@@ -67,7 +67,7 @@
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.dependency.classpath" />
<arg line=" -o target -p org.apache.kandula.wsba -g -ss -sd -sn BAParticipantCompletionCoordinatorService -uri schema/wsba.wsdl" />
- </java-->
+ </java>
</goal>
<postGoal name="test:compile">
diff --git a/src/org/apache/kandula/Constants.java b/src/org/apache/kandula/Constants.java
index 00b4266..50b57ff 100644
--- a/src/org/apache/kandula/Constants.java
+++ b/src/org/apache/kandula/Constants.java
@@ -18,9 +18,6 @@
import javax.xml.namespace.QName;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public interface Constants {
// WS-Coordination URI's
diff --git a/src/org/apache/kandula/Status.java b/src/org/apache/kandula/Status.java
index 9f65e44..eaf7abf 100644
--- a/src/org/apache/kandula/Status.java
+++ b/src/org/apache/kandula/Status.java
@@ -16,9 +16,6 @@
*/
package org.apache.kandula;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public abstract interface Status {
interface CoordinatorStatus {
diff --git a/src/org/apache/kandula/context/AbstractContext.java b/src/org/apache/kandula/context/AbstractContext.java
index 297a697..0c1199f 100644
--- a/src/org/apache/kandula/context/AbstractContext.java
+++ b/src/org/apache/kandula/context/AbstractContext.java
@@ -22,9 +22,6 @@
import org.apache.kandula.Status;
import org.apache.kandula.utility.EndpointReferenceFactory;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public abstract class AbstractContext {
public static String ACTIVATION_EPR = "activationEPR";
diff --git a/src/org/apache/kandula/context/ContextFactory.java b/src/org/apache/kandula/context/ContextFactory.java
index cc23e73..b7f367b 100644
--- a/src/org/apache/kandula/context/ContextFactory.java
+++ b/src/org/apache/kandula/context/ContextFactory.java
@@ -19,9 +19,6 @@
import org.apache.kandula.context.impl.ATActivityContext;
import org.apache.kandula.faults.InvalidProtocolException;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class ContextFactory {
private static ContextFactory instance = new ContextFactory();
diff --git a/src/org/apache/kandula/context/CoordinationContext.java b/src/org/apache/kandula/context/CoordinationContext.java
index 697441a..c5e875c 100644
--- a/src/org/apache/kandula/context/CoordinationContext.java
+++ b/src/org/apache/kandula/context/CoordinationContext.java
@@ -22,9 +22,6 @@
import org.apache.kandula.context.impl.SimpleCoordinationContext;
import org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContext_type3;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public interface CoordinationContext {
public static final class Factory {
public static CoordinationContext newContext(OMElement contextElement) {
diff --git a/src/org/apache/kandula/context/impl/ADBCoordinationContext.java b/src/org/apache/kandula/context/impl/ADBCoordinationContext.java
index 641af4c..08d97dd 100644
--- a/src/org/apache/kandula/context/impl/ADBCoordinationContext.java
+++ b/src/org/apache/kandula/context/impl/ADBCoordinationContext.java
@@ -1,3 +1,20 @@
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
package org.apache.kandula.context.impl;
import java.util.Map;
diff --git a/src/org/apache/kandula/context/impl/ATActivityContext.java b/src/org/apache/kandula/context/impl/ATActivityContext.java
index dd27443..c954b85 100644
--- a/src/org/apache/kandula/context/impl/ATActivityContext.java
+++ b/src/org/apache/kandula/context/impl/ATActivityContext.java
@@ -32,9 +32,6 @@
import org.apache.kandula.faults.InvalidProtocolException;
import org.apache.kandula.utility.EndpointReferenceFactory;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class ATActivityContext extends AbstractContext {
private Method callBackMethod = null;
diff --git a/src/org/apache/kandula/context/impl/ATParticipantContext.java b/src/org/apache/kandula/context/impl/ATParticipantContext.java
index f31a6ae..1d3f50f 100644
--- a/src/org/apache/kandula/context/impl/ATParticipantContext.java
+++ b/src/org/apache/kandula/context/impl/ATParticipantContext.java
@@ -23,9 +23,6 @@
import org.apache.kandula.participant.KandulaResource;
import org.apache.kandula.utility.EndpointReferenceFactory;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class ATParticipantContext extends AbstractContext {
KandulaResource resource;
String ID;
diff --git a/src/org/apache/kandula/context/impl/SimpleCoordinationContext.java b/src/org/apache/kandula/context/impl/SimpleCoordinationContext.java
index a2219a7..77b731a 100644
--- a/src/org/apache/kandula/context/impl/SimpleCoordinationContext.java
+++ b/src/org/apache/kandula/context/impl/SimpleCoordinationContext.java
@@ -27,9 +27,6 @@
import org.apache.kandula.context.CoordinationContext;
import org.apache.kandula.utility.EndpointReferenceFactory;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class SimpleCoordinationContext implements CoordinationContext {
private String activityID;
diff --git a/src/org/apache/kandula/coordinator/Coordinator.java b/src/org/apache/kandula/coordinator/Coordinator.java
index 17089f9..7b4f48d 100644
--- a/src/org/apache/kandula/coordinator/Coordinator.java
+++ b/src/org/apache/kandula/coordinator/Coordinator.java
@@ -22,10 +22,6 @@
import org.apache.kandula.context.CoordinationContext;
import org.apache.kandula.faults.AbstractKandulaException;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
-
public class Coordinator {
public Coordinator() {
diff --git a/src/org/apache/kandula/coordinator/Registerable.java b/src/org/apache/kandula/coordinator/Registerable.java
index d86d660..40c6094 100644
--- a/src/org/apache/kandula/coordinator/Registerable.java
+++ b/src/org/apache/kandula/coordinator/Registerable.java
@@ -24,9 +24,6 @@
import org.apache.kandula.faults.AbstractKandulaException;
import org.apache.kandula.faults.InvalidProtocolException;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public interface Registerable {
public static final class Factory {
public static Registerable newRegisterable(String coordinationType)
diff --git a/src/org/apache/kandula/coordinator/at/ATCoordinator.java b/src/org/apache/kandula/coordinator/at/ATCoordinator.java
index d0ddb08..dcfb8d6 100644
--- a/src/org/apache/kandula/coordinator/at/ATCoordinator.java
+++ b/src/org/apache/kandula/coordinator/at/ATCoordinator.java
@@ -33,10 +33,6 @@
import org.apache.kandula.wsat.completion.CompletionInitiatorPortTypeRawXMLStub;
import org.apache.kandula.wsat.twopc.ParticipantPortTypeRawXMLStub;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
-
public class ATCoordinator implements Registerable {
public ATCoordinator() {
diff --git a/src/org/apache/kandula/coordinator/at/ATParticipantInformation.java b/src/org/apache/kandula/coordinator/at/ATParticipantInformation.java
index 8d74728..f1ca660 100644
--- a/src/org/apache/kandula/coordinator/at/ATParticipantInformation.java
+++ b/src/org/apache/kandula/coordinator/at/ATParticipantInformation.java
@@ -19,15 +19,9 @@
import org.apache.axis2.addressing.EndpointReference;
/**
- * *
- *
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
-/**
* <p/> Used to store the details about the participant & to store the runtime
* status of Participants in the coordinator.
*/
-
public class ATParticipantInformation {
private String enlistmentId;
diff --git a/src/org/apache/kandula/coordinator/at/ATSubCoordinator.java b/src/org/apache/kandula/coordinator/at/ATSubCoordinator.java
index c307d9a..7611c0a 100644
--- a/src/org/apache/kandula/coordinator/at/ATSubCoordinator.java
+++ b/src/org/apache/kandula/coordinator/at/ATSubCoordinator.java
@@ -23,9 +23,6 @@
import org.apache.kandula.faults.AbstractKandulaException;
import org.apache.kandula.faults.InvalidProtocolException;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class ATSubCoordinator extends ATCoordinator {
public EndpointReference addParticipant(AbstractContext context,
diff --git a/src/org/apache/kandula/coordinator/at/ExecutionCallBack.java b/src/org/apache/kandula/coordinator/at/ExecutionCallBack.java
index c79f2cc..d7df4de 100644
--- a/src/org/apache/kandula/coordinator/at/ExecutionCallBack.java
+++ b/src/org/apache/kandula/coordinator/at/ExecutionCallBack.java
@@ -19,10 +19,6 @@
import org.apache.kandula.context.AbstractContext;
import org.apache.kandula.faults.AbstractKandulaException;
-/**
- * @author <a href="mailto:thilina@apache.org"> Thilina Gunarathne </a>
- */
-
public interface ExecutionCallBack {
public void process(AbstractContext context)
diff --git a/src/org/apache/kandula/coordinator/ba/BACoordinator.java b/src/org/apache/kandula/coordinator/ba/BACoordinator.java
index 9799558..178f699 100644
--- a/src/org/apache/kandula/coordinator/ba/BACoordinator.java
+++ b/src/org/apache/kandula/coordinator/ba/BACoordinator.java
@@ -22,9 +22,6 @@
import org.apache.kandula.coordinator.Registerable;
import org.apache.kandula.faults.AbstractKandulaException;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class BACoordinator implements Registerable
{
public BACoordinator()
diff --git a/src/org/apache/kandula/faults/AbstractKandulaException.java b/src/org/apache/kandula/faults/AbstractKandulaException.java
index 3962e45..74e798e 100644
--- a/src/org/apache/kandula/faults/AbstractKandulaException.java
+++ b/src/org/apache/kandula/faults/AbstractKandulaException.java
@@ -16,9 +16,6 @@
*/
package org.apache.kandula.faults;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public abstract class AbstractKandulaException extends Exception {
public AbstractKandulaException() {
diff --git a/src/org/apache/kandula/faults/AlreadyRegisteredException.java b/src/org/apache/kandula/faults/AlreadyRegisteredException.java
index afddd0d..207f0a5 100644
--- a/src/org/apache/kandula/faults/AlreadyRegisteredException.java
+++ b/src/org/apache/kandula/faults/AlreadyRegisteredException.java
@@ -16,9 +16,6 @@
*/
package org.apache.kandula.faults;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class AlreadyRegisteredException extends AbstractKandulaException {
private static final long serialVersionUID = 354170092780305997L;
diff --git a/src/org/apache/kandula/faults/ContextRefusedException.java b/src/org/apache/kandula/faults/ContextRefusedException.java
index 6ed3d47..5b79ce4 100644
--- a/src/org/apache/kandula/faults/ContextRefusedException.java
+++ b/src/org/apache/kandula/faults/ContextRefusedException.java
@@ -16,9 +16,6 @@
*/
package org.apache.kandula.faults;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class ContextRefusedException extends AbstractKandulaException {
/**
diff --git a/src/org/apache/kandula/faults/InvalidParameterException.java b/src/org/apache/kandula/faults/InvalidParameterException.java
index efd835c..f04e399 100644
--- a/src/org/apache/kandula/faults/InvalidParameterException.java
+++ b/src/org/apache/kandula/faults/InvalidParameterException.java
@@ -16,19 +16,10 @@
*/
package org.apache.kandula.faults;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class InvalidParameterException extends AbstractKandulaException {
- /**
- *
- */
private static final long serialVersionUID = -6973003681131477662L;
- /**
- *
- */
public InvalidParameterException() {
super();
}
diff --git a/src/org/apache/kandula/faults/InvalidProtocolException.java b/src/org/apache/kandula/faults/InvalidProtocolException.java
index e6b5320..e4853e7 100644
--- a/src/org/apache/kandula/faults/InvalidProtocolException.java
+++ b/src/org/apache/kandula/faults/InvalidProtocolException.java
@@ -16,19 +16,10 @@
*/
package org.apache.kandula.faults;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class InvalidProtocolException extends AbstractKandulaException {
- /**
- *
- */
private static final long serialVersionUID = -2145946140688935653L;
- /**
- *
- */
public InvalidProtocolException() {
super();
}
diff --git a/src/org/apache/kandula/faults/InvalidStateException.java b/src/org/apache/kandula/faults/InvalidStateException.java
index e4e4388..0d7d277 100644
--- a/src/org/apache/kandula/faults/InvalidStateException.java
+++ b/src/org/apache/kandula/faults/InvalidStateException.java
@@ -16,19 +16,10 @@
*/
package org.apache.kandula.faults;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class InvalidStateException extends AbstractKandulaException {
- /**
- *
- */
private static final long serialVersionUID = 2526517532679685749L;
- /**
- *
- */
public InvalidStateException() {
super();
}
diff --git a/src/org/apache/kandula/faults/KandulaGeneralException.java b/src/org/apache/kandula/faults/KandulaGeneralException.java
index 48cc89c..d234fb3 100644
--- a/src/org/apache/kandula/faults/KandulaGeneralException.java
+++ b/src/org/apache/kandula/faults/KandulaGeneralException.java
@@ -16,19 +16,10 @@
*/
package org.apache.kandula.faults;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class KandulaGeneralException extends AbstractKandulaException {
- /**
- *
- */
private static final long serialVersionUID = 3605851255933308674L;
- /**
- *
- */
public KandulaGeneralException(Exception e) {
super(e);
}
diff --git a/src/org/apache/kandula/faults/NoActivityException.java b/src/org/apache/kandula/faults/NoActivityException.java
index 837aa5e..ebe308a 100644
--- a/src/org/apache/kandula/faults/NoActivityException.java
+++ b/src/org/apache/kandula/faults/NoActivityException.java
@@ -16,19 +16,10 @@
*/
package org.apache.kandula.faults;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class NoActivityException extends AbstractKandulaException {
- /**
- *
- */
private static final long serialVersionUID = -1625567169353147393L;
- /**
- *
- */
public NoActivityException() {
super();
}
diff --git a/src/org/apache/kandula/initiator/CompletionCallback.java b/src/org/apache/kandula/initiator/CompletionCallback.java
index 12dbf33..bf7c7fb 100644
--- a/src/org/apache/kandula/initiator/CompletionCallback.java
+++ b/src/org/apache/kandula/initiator/CompletionCallback.java
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.kandula.initiator;
import org.apache.kandula.Status;
diff --git a/src/org/apache/kandula/initiator/InitiatorContext.java b/src/org/apache/kandula/initiator/InitiatorContext.java
index c225f90..de8389b 100644
--- a/src/org/apache/kandula/initiator/InitiatorContext.java
+++ b/src/org/apache/kandula/initiator/InitiatorContext.java
@@ -21,9 +21,6 @@
import org.apache.kandula.context.AbstractContext;
import org.apache.kandula.context.CoordinationContext;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class InitiatorContext extends AbstractContext {
private String activationEPR;
diff --git a/src/org/apache/kandula/initiator/TransactionManager.java b/src/org/apache/kandula/initiator/TransactionManager.java
index 801c8a8..0ff67d8 100644
--- a/src/org/apache/kandula/initiator/TransactionManager.java
+++ b/src/org/apache/kandula/initiator/TransactionManager.java
@@ -44,13 +44,6 @@
import org.oasis_open.docs.ws_tx.wscoor._2006._06.Register;
import org.oasis_open.docs.ws_tx.wscoor._2006._06.RegisterResponse;
import org.oasis_open.docs.ws_tx.wscoor._2006._06.RegisterType;
-import org.xmlsoap.schemas.ws._2004._08.addressing.AttributedURI;
-import org.xmlsoap.schemas.ws._2004._08.addressing.EndpointReferenceType;
-
-/**
- * @author Dasarath Weeratunge
- * @author <a href="mailto:thilina@apache.org"> Thilina Gunarathne </a>
- */
public class TransactionManager {
diff --git a/src/org/apache/kandula/participant/KandulaResource.java b/src/org/apache/kandula/participant/KandulaResource.java
index 69d3fa8..35e6234 100644
--- a/src/org/apache/kandula/participant/KandulaResource.java
+++ b/src/org/apache/kandula/participant/KandulaResource.java
@@ -16,9 +16,6 @@
*/
package org.apache.kandula.participant;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public interface KandulaResource {
public boolean commit();
diff --git a/src/org/apache/kandula/participant/ParticipantTransactionCoordinator.java b/src/org/apache/kandula/participant/ParticipantTransactionCoordinator.java
index 22d25db..0aed77b 100644
--- a/src/org/apache/kandula/participant/ParticipantTransactionCoordinator.java
+++ b/src/org/apache/kandula/participant/ParticipantTransactionCoordinator.java
@@ -23,9 +23,6 @@
import org.apache.kandula.faults.InvalidStateException;
import org.apache.kandula.wsat.twopc.CoordinatorPortTypeRawXMLStub;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class ParticipantTransactionCoordinator {
public void prepare(AbstractContext context)
diff --git a/src/org/apache/kandula/participant/ParticipantUtility.java b/src/org/apache/kandula/participant/ParticipantUtility.java
index 1e1dc28..a208e06 100644
--- a/src/org/apache/kandula/participant/ParticipantUtility.java
+++ b/src/org/apache/kandula/participant/ParticipantUtility.java
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.kandula.participant;
import java.io.IOException;
diff --git a/src/org/apache/kandula/participant/TransactionInHandler.java b/src/org/apache/kandula/participant/TransactionInHandler.java
index 1b62d5d..fd5a7f7 100644
--- a/src/org/apache/kandula/participant/TransactionInHandler.java
+++ b/src/org/apache/kandula/participant/TransactionInHandler.java
@@ -29,15 +29,12 @@
import org.apache.kandula.context.CoordinationContext;
import org.apache.kandula.context.impl.ATParticipantContext;
import org.apache.kandula.context.impl.SimpleCoordinationContext;
-import org.apache.kandula.storage.Store;
import org.apache.kandula.storage.StorageUtils;
public class TransactionInHandler extends AbstractHandler {
private static final long serialVersionUID = 2098581248112968550L;
- // private ThreadLocal threadInfo = new ThreadLocal();
-
public InvocationResponse invoke(MessageContext msgContext) throws AxisFault {
KandulaResource resource;
String wsaAction = msgContext.getWSAAction();
diff --git a/src/org/apache/kandula/participant/Vote.java b/src/org/apache/kandula/participant/Vote.java
index eed28f8..f4b182e 100644
--- a/src/org/apache/kandula/participant/Vote.java
+++ b/src/org/apache/kandula/participant/Vote.java
@@ -16,9 +16,6 @@
*/
package org.apache.kandula.participant;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class Vote {
public static Vote READ_ONLY = new Vote("VoteReadOnly");
diff --git a/src/org/apache/kandula/storage/SimpleStore.java b/src/org/apache/kandula/storage/SimpleStore.java
index a82337e..2bc1679 100644
--- a/src/org/apache/kandula/storage/SimpleStore.java
+++ b/src/org/apache/kandula/storage/SimpleStore.java
@@ -1,18 +1,16 @@
/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
+ *
*/
package org.apache.kandula.storage;
@@ -23,11 +21,9 @@
import org.apache.kandula.context.impl.ATActivityContext;
import org.apache.kandula.coordinator.at.ATCoordinator;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class SimpleStore implements Store {
Timer timer = new Timer();
+
private HashMap contextMap;
/*
@@ -43,8 +39,8 @@
public void put(Object id, Object context) {
contextMap.put(id, context);
}
-
- public void put(final Object id, final ATActivityContext context,long expires) {
+
+ public void put(final Object id, final ATActivityContext context, long expires) {
contextMap.put(id, context);
timer.schedule(new TimerTask() {
public void run() {
diff --git a/src/org/apache/kandula/storage/StorageUtils.java b/src/org/apache/kandula/storage/StorageUtils.java
index 3f83419..2c16f5c 100644
--- a/src/org/apache/kandula/storage/StorageUtils.java
+++ b/src/org/apache/kandula/storage/StorageUtils.java
@@ -1,18 +1,16 @@
/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
+ *
*/
package org.apache.kandula.storage;
@@ -22,35 +20,33 @@
import org.apache.kandula.context.AbstractContext;
public class StorageUtils {
- public static AbstractContext getContext(String id)
- {
- Store store = getStore(MessageContext.getCurrentMessageContext().getServiceContext().getConfigurationContext());
- return (AbstractContext)store.get(id);
+ public static AbstractContext getContext(String id) {
+ Store store = getStore(MessageContext.getCurrentMessageContext().getServiceContext()
+ .getConfigurationContext());
+ return (AbstractContext) store.get(id);
}
-
- public static void putContext(AbstractContext context)
- {
- Store store = getStore(MessageContext.getCurrentMessageContext().getServiceContext().getConfigurationContext());
- store.put(context.getCoordinationContext().getActivityID(),context);
+
+ public static void putContext(AbstractContext context) {
+ Store store = getStore(MessageContext.getCurrentMessageContext().getServiceContext()
+ .getConfigurationContext());
+ store.put(context.getCoordinationContext().getActivityID(), context);
}
-
- public static void putContext(AbstractContext context, String id, MessageContext messageContext)
- {
+
+ public static void putContext(AbstractContext context, String id, MessageContext messageContext) {
Store store = getStore(messageContext.getServiceContext().getConfigurationContext());
- store.put(id,context);
+ store.put(id, context);
}
-
+
public static Store getStore(ConfigurationContext configurationContext) {
if (configurationContext == null)
return null;
Store store;
- Object storeObect = configurationContext
- .getProperty(Constants.KANDULA_STORE);
+ Object storeObect = configurationContext.getProperty(Constants.KANDULA_STORE);
if (storeObect == null) {
store = new SimpleStore();
configurationContext.setProperty(Constants.KANDULA_STORE, store);
- }else{
- store = (Store)storeObect;
+ } else {
+ store = (Store) storeObect;
}
return store;
}
diff --git a/src/org/apache/kandula/storage/Store.java b/src/org/apache/kandula/storage/Store.java
index 2da14f1..0ca14fc 100644
--- a/src/org/apache/kandula/storage/Store.java
+++ b/src/org/apache/kandula/storage/Store.java
@@ -16,9 +16,6 @@
*/
package org.apache.kandula.storage;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public interface Store {
void put(Object id, Object context);
diff --git a/src/org/apache/kandula/utility/EndpointReferenceFactory.java b/src/org/apache/kandula/utility/EndpointReferenceFactory.java
index 8bf2df8..2b503f9 100644
--- a/src/org/apache/kandula/utility/EndpointReferenceFactory.java
+++ b/src/org/apache/kandula/utility/EndpointReferenceFactory.java
@@ -41,10 +41,6 @@
import org.xmlsoap.schemas.ws._2004._08.addressing.EndpointReferenceType;
import org.xmlsoap.schemas.ws._2004._08.addressing.ReferenceParametersType;
-/**
- * @author <a href="mailto:thilina@apache.org"> Thilina Gunarathne </a>
- */
-
public class EndpointReferenceFactory {
private static EndpointReferenceFactory instance = null;
diff --git a/src/org/apache/kandula/utility/KandulaConfiguration.java b/src/org/apache/kandula/utility/KandulaConfiguration.java
index 357ef0c..6b55245 100644
--- a/src/org/apache/kandula/utility/KandulaConfiguration.java
+++ b/src/org/apache/kandula/utility/KandulaConfiguration.java
@@ -27,13 +27,6 @@
import org.apache.kandula.faults.AbstractKandulaException;
import org.apache.kandula.faults.KandulaGeneralException;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
-/**
- * @author thilina
- *
- */
public class KandulaConfiguration {
static final String PROPERTY_FILE = "endpoints.conf";
diff --git a/src/org/apache/kandula/utility/KandulaListener.java b/src/org/apache/kandula/utility/KandulaListener.java
index 8e934fe..d26b2dd 100644
--- a/src/org/apache/kandula/utility/KandulaListener.java
+++ b/src/org/apache/kandula/utility/KandulaListener.java
@@ -28,9 +28,6 @@
import org.apache.axis2.description.AxisService;
import org.apache.axis2.transport.http.SimpleHTTPServer;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class KandulaListener {
private static KandulaListener instance = null;
diff --git a/src/org/apache/kandula/wsat/AbstractATNotifierStub.java b/src/org/apache/kandula/wsat/AbstractATNotifierStub.java
index 18d16b7..40f5d9d 100644
--- a/src/org/apache/kandula/wsat/AbstractATNotifierStub.java
+++ b/src/org/apache/kandula/wsat/AbstractATNotifierStub.java
@@ -50,18 +50,6 @@
protected EndpointReference toEPR;
- // public AbstractATNotifierStub(ConfigurationContext configurationContext,
- // AxisService service) throws AbstractKandulaException {
- // this.service = service;
- // try {
- // configurationContext.getAxisConfiguration().addService(service);
- // } catch (AxisFault e1) {
- // throw new KandulaGeneralException(e1);
- // }
- // ServiceGroupContext sgc = new ServiceGroupContext(configurationContext,
- // (AxisServiceGroup) this.service.getParent());
- // this.serviceContext = new ServiceContext(service, sgc);
- // }
public AbstractATNotifierStub(ConfigurationContext configurationContext)
throws AbstractKandulaException {
this.service = new AxisService("annonService" + this.hashCode());
diff --git a/test/org/apache/kandula/context/ActivityContextTest.java b/test/org/apache/kandula/context/ActivityContextTest.java
index ab8b6e2..fa7b805 100644
--- a/test/org/apache/kandula/context/ActivityContextTest.java
+++ b/test/org/apache/kandula/context/ActivityContextTest.java
@@ -18,9 +18,6 @@
import junit.framework.TestCase;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class ActivityContextTest extends TestCase {
public void testGetActivityID() {
diff --git a/test/org/apache/kandula/coordinator/CoordinatorImplTest.java b/test/org/apache/kandula/coordinator/CoordinatorImplTest.java
index 39951c8..96112ff 100644
--- a/test/org/apache/kandula/coordinator/CoordinatorImplTest.java
+++ b/test/org/apache/kandula/coordinator/CoordinatorImplTest.java
@@ -26,9 +26,6 @@
import org.apache.kandula.context.impl.ATActivityContext;
import org.apache.kandula.faults.AbstractKandulaException;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class CoordinatorImplTest extends TestCase {
/*
diff --git a/test/org/apache/kandula/coordinator/at/ATCoordinatorTest.java b/test/org/apache/kandula/coordinator/at/ATCoordinatorTest.java
index 8de2f46..4c66805 100644
--- a/test/org/apache/kandula/coordinator/at/ATCoordinatorTest.java
+++ b/test/org/apache/kandula/coordinator/at/ATCoordinatorTest.java
@@ -18,9 +18,6 @@
import junit.framework.TestCase;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class ATCoordinatorTest extends TestCase {
/*
diff --git a/test/org/apache/kandula/integration/CompletionCommitTest.java b/test/org/apache/kandula/integration/CompletionCommitTest.java
index a34f09f..67dd55a 100644
--- a/test/org/apache/kandula/integration/CompletionCommitTest.java
+++ b/test/org/apache/kandula/integration/CompletionCommitTest.java
@@ -40,30 +40,26 @@
public CompletionCommitTest() throws Exception {
super(CompletionCommitTest.class.getName());
- stub = new KandulaDemoServiceStub(
- "target/initiator-repository",
- new EndpointReference(
- "http://localhost:8081/axis2/services/KandulaDemoService"));
+ stub = new KandulaDemoServiceStub("target/initiator-repository", new EndpointReference(
+ "http://localhost:8081/axis2/services/KandulaDemoService"));
}
public CompletionCommitTest(String testName) throws Exception {
super(testName);
- stub = new KandulaDemoServiceStub(
- "target/initiator-repository",
- new EndpointReference(
- "http://localhost:8081/axis2/services/KandulaDemoService"));
+ stub = new KandulaDemoServiceStub("target/initiator-repository", new EndpointReference(
+ "http://localhost:8081/axis2/services/KandulaDemoService"));
}
protected void setUp() throws Exception {
File file = new File(repository);
File configFile = new File(repository + "/axis2.xml");
if (!file.exists()) {
- throw new Exception("repository directory "
- + file.getAbsolutePath() + " does not exists");
+ throw new Exception("repository directory " + file.getAbsolutePath()
+ + " does not exists");
}
ConfigurationContext er = ConfigurationContextFactory
- .createConfigurationContextFromFileSystem(file
- .getAbsolutePath(), configFile.getAbsolutePath());
+ .createConfigurationContextFromFileSystem(file.getAbsolutePath(), configFile
+ .getAbsolutePath());
server = new SimpleHTTPServer(er, 8081);
@@ -83,24 +79,24 @@
TransactionManager tm = new TransactionManager("target/initiator-repository",
"target/initiator-repository/axis2.xml");
tm.begin("http://localhost:8081/axis2/services/ActivationCoordinator");
- stub.creditOperation();
- tm.commit();
+ stub.creditOperation();
+ tm.commit();
Thread.sleep(5000);
-
+
}
-// public void testEchoXMLSync() throws Exception {
-// // TransactionManager tm = new TransactionManager(
-// // Constants.WS_AT,
-// // new EndpointReference(
-// // "http://localhost:8081/axis2/services/ActivationCoordinator"));
-// // tm.begin("target/initiator-repository",
-// // "target/initiator-repository/axis2.xml", false);
-// // try {
-// // stub.creditOperation();
-// // } catch (Exception e) {
-// // tm.rollback();
-// // }
-// // tm.commit();
-// }
+ // public void testEchoXMLSync() throws Exception {
+ // // TransactionManager tm = new TransactionManager(
+ // // Constants.WS_AT,
+ // // new EndpointReference(
+ // // "http://localhost:8081/axis2/services/ActivationCoordinator"));
+ // // tm.begin("target/initiator-repository",
+ // // "target/initiator-repository/axis2.xml", false);
+ // // try {
+ // // stub.creditOperation();
+ // // } catch (Exception e) {
+ // // tm.rollback();
+ // // }
+ // // tm.commit();
+ // }
}
\ No newline at end of file
diff --git a/test/org/apache/kandula/integration/DummyResource.java b/test/org/apache/kandula/integration/DummyResource.java
index 6936e6d..7890f7c 100644
--- a/test/org/apache/kandula/integration/DummyResource.java
+++ b/test/org/apache/kandula/integration/DummyResource.java
@@ -20,9 +20,6 @@
import org.apache.kandula.participant.KandulaResource;
import org.apache.kandula.participant.Vote;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class DummyResource implements KandulaResource {
/**
diff --git a/test/org/apache/kandula/integration/KandulaDemoService.java b/test/org/apache/kandula/integration/KandulaDemoService.java
index ca88fa2..b0c4060 100644
--- a/test/org/apache/kandula/integration/KandulaDemoService.java
+++ b/test/org/apache/kandula/integration/KandulaDemoService.java
@@ -18,9 +18,6 @@
import org.apache.axiom.om.OMElement;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
public class KandulaDemoService {
/**
diff --git a/test/org/apache/kandula/integration/KandulaDemoServiceStub.java b/test/org/apache/kandula/integration/KandulaDemoServiceStub.java
index cd76137..728131d 100644
--- a/test/org/apache/kandula/integration/KandulaDemoServiceStub.java
+++ b/test/org/apache/kandula/integration/KandulaDemoServiceStub.java
@@ -37,10 +37,6 @@
import org.apache.axis2.description.AxisServiceGroup;
import org.apache.axis2.description.OutOnlyAxisOperation;
-/**
- * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
- */
-
public class KandulaDemoServiceStub extends org.apache.axis2.client.Stub {
public static final String AXIS2_HOME = ".";