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 da...@apache.org on 2005/12/24 03:03:27 UTC
svn commit: r358897 -
/webservices/kandula/branches/Kandula_1/src/java/org/apache/ws/transaction/coordinator/MsgCoordinatorImpl.java
Author: dasarath
Date: Fri Dec 23 18:03:26 2005
New Revision: 358897
URL: http://svn.apache.org/viewcvs?rev=358897&view=rev
Log: (empty)
Added:
webservices/kandula/branches/Kandula_1/src/java/org/apache/ws/transaction/coordinator/MsgCoordinatorImpl.java
Added: webservices/kandula/branches/Kandula_1/src/java/org/apache/ws/transaction/coordinator/MsgCoordinatorImpl.java
URL: http://svn.apache.org/viewcvs/webservices/kandula/branches/Kandula_1/src/java/org/apache/ws/transaction/coordinator/MsgCoordinatorImpl.java?rev=358897&view=auto
==============================================================================
--- webservices/kandula/branches/Kandula_1/src/java/org/apache/ws/transaction/coordinator/MsgCoordinatorImpl.java (added)
+++ webservices/kandula/branches/Kandula_1/src/java/org/apache/ws/transaction/coordinator/MsgCoordinatorImpl.java Fri Dec 23 18:03:26 2005
@@ -0,0 +1,42 @@
+/*
+ * Created on Dec 23, 2005
+ *
+ */
+package org.apache.ws.transaction.coordinator;
+
+import org.apache.axis.components.uuid.UUIDGen;
+import org.apache.axis.components.uuid.UUIDGenFactory;
+import org.apache.axis.message.addressing.EndpointReference;
+import org.apache.ws.transaction.wscoor._CoordinationContext;
+
+/**
+ * @author Dasarath Weeratunge
+ *
+ */
+public abstract class MsgCoordinatorImpl implements MsgCoordinator {
+ private String id;
+
+ private _CoordinationContext ctx;
+
+ private CoordinationService cs;
+
+ public MsgCoordinatorImpl(CoordinationService cs) {
+ UUIDGen gen = UUIDGenFactory.getUUIDGen();
+ id = "uuid:" + gen.nextUUID();
+ EndpointReference epr = cs.getRegistrationService();
+ epr.setProperties(cs.getReferenceProperties(this, null));
+ ctx = new _CoordinationContext(id, getCoordinationType(), epr);
+ }
+
+ public String getID() {
+ return id;
+ }
+
+ public _CoordinationContext getCoordinationContext() {
+ return ctx;
+ }
+
+ public CoordinationService getCoordinationService() {
+ return cs;
+ }
+}
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org