[jboss-svn-commits] JBL Code SVN: r20517 - labs/jbosstm/trunk/XTS/WS-T/dev/src11/com/arjuna/wst11/stub.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Jun 16 06:35:54 EDT 2008


Author: adinn
Date: 2008-06-16 06:35:54 -0400 (Mon, 16 Jun 2008)
New Revision: 20517

Modified:
   labs/jbosstm/trunk/XTS/WS-T/dev/src11/com/arjuna/wst11/stub/ParticipantStub.java
Log:
participant stub restore_state was reading etxt where it should be reading an element containing text -- fix for JBTM-346

Modified: labs/jbosstm/trunk/XTS/WS-T/dev/src11/com/arjuna/wst11/stub/ParticipantStub.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/dev/src11/com/arjuna/wst11/stub/ParticipantStub.java	2008-06-16 10:33:41 UTC (rev 20516)
+++ labs/jbosstm/trunk/XTS/WS-T/dev/src11/com/arjuna/wst11/stub/ParticipantStub.java	2008-06-16 10:35:54 UTC (rev 20517)
@@ -4,6 +4,7 @@
 import com.arjuna.wst.stub.SystemCommunicationException;
 import com.arjuna.wst11.messaging.engines.CoordinatorEngine;
 import com.arjuna.webservices11.wsat.State;
+import com.arjuna.webservices11.wsat.processors.CoordinatorProcessor;
 import com.arjuna.webservices11.util.StreamHelper;
 import com.arjuna.webservices.soap.SoapUtils;
 import com.arjuna.webservices.logging.WSTLogger;
@@ -189,10 +190,12 @@
             // this should successfully reverse the save process
             final XMLStreamReader reader = SoapUtils.getXMLStreamReader(new StringReader(eprValue)) ;
             StreamHelper.checkNextStartTag(reader, QNAME_TWO_PC_PARTICIPANT) ;
-            String eprefText = reader.getText();
+            String eprefText = reader.getElementText();
             StreamSource source = new StreamSource(new StringReader(eprefText));
             final W3CEndpointReference endpointReference = new W3CEndpointReference(source);
             coordinator = new CoordinatorEngine(id, durable, endpointReference, State.STATE_PREPARED_SUCCESS) ;
+            // TODO -- think we need to do this
+            CoordinatorProcessor.getProcessor().activateCoordinator(coordinator, id) ;
             return true ;
         }
         catch (final Throwable th)




More information about the jboss-svn-commits mailing list