ws-kandula-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dasarath Weeratunge <dweer...@purdue.edu>
Subject Re: Help for Kandula 1
Date Fri, 12 Oct 2007 15:25:48 GMT
Quoting Dominik Heller <Dominik.Heller@gmx.net>:

Could you please modify the class util.TCPSnifferHelper so that it does no
redirection of URI s and then check whether the ATCoordinator calls the
committedOperation on CompletionInitiatorStub on the coordinator side.

Though the messages seem OK, I still think this is a problem with messed up URI
s than having anything to do with the coordinator.

One case where the coordinator might not inform the CompletionInitiator of
transaction terminator is if it was unable to successfully terminate, i.e.
receive aborted/committed messages from all participants. So please check with
TCP monitor that all participants respond to the coordinator appropriately.

Thanks,
-- Dasarath


public class TCPSnifferHelper {
public static String redirect(String url) {
return url;
//		return url.replaceAll("wsi\\.alphaworks\\.ibm\\.com:8080",
	//			"localhost:8082");
	}	
}



> Sure, there they are:
> 
> the endpoint of the initiator is:
> http://localhost:11865/BankingClient/services/
> 
> the endpoint of the participant is:
> http://localhost:8080/HelloWorld/services/
> 
> <soapenv:Body>
> <Register xmlns="http://schemas.xmlsoap.org/ws/2004/10/wscoor">
>
<ProtocolIdentifier>http://schemas.xmlsoap.org/ws/2004/10/wsat/Durable2PC</ProtocolIdentifier>
> <ParticipantProtocolService>
> <wsa:Address xmlns:ns1="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> absoluteURI="true" genericURI="true" host="localhost"
> path="/HelloWorld/services/participant" port="8080" scheme="http"
> schemeSpecificPart="//localhost:8080/HelloWorld/services/participant"
>
xsi:type="ns1:Address">http://localhost:8080/HelloWorld/services/participant</wsa:Address>
> <wsa:ReferenceProperties>
> <ns2:CallbackRef
>
xmlns:ns2="http://ws.apache.org/kandula">uuid:c6b358e0-78d2-11dc-a0e0-eaa2e3c337b3</ns2:CallbackRef>
> </wsa:ReferenceProperties>
> <wsa:ReferenceParameters/>
> </ParticipantProtocolService>
> </Register>
> </soapenv:Body>
> 
> <soapenv:Body>
> <RegisterResponse xmlns="http://schemas.xmlsoap.org/ws/2004/10/wscoor">
> <CoordinatorProtocolService>
> <ns1:Address absoluteURI="true" genericURI="true" host="localhost"
> path="/BankingClient/services/coordinator" port="11865" scheme="http"
> schemeSpecificPart="//localhost:11865/BankingClient/services/coordinator"
> xsi:type="ns2:Address"
> xmlns:ns1="http://schemas.xmlsoap.org/ws/2004/08/addressing"
>
xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/03/addressing">http://localhost:11865/BankingClient/services/coordinator</ns1:Address>
>  <ns3:ReferenceProperties
> xmlns:ns3="http://schemas.xmlsoap.org/ws/2004/08/addressing">
>  <ns4:CallbackRef
>
xmlns:ns4="http://ws.apache.org/kandula">uuid:c6731b90-78d2-11dc-b880-94a4211b941c</ns4:CallbackRef>
>  <ns5:ParticipantRef
>
xmlns:ns5="http://ws.apache.org/kandula">uuid:c6ea4760-78d2-11dc-b880-94a4211b941c</ns5:ParticipantRef>
>  </ns3:ReferenceProperties>
>  <ns6:ReferenceParameters
> xmlns:ns6="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
>  </CoordinatorProtocolService>
>  </RegisterResponse>
>  </soapenv:Body>
>  </soapenv:Envelope>
> 
> *************************************************
> 
> <soapenv:Body>
> <Register xmlns="http://schemas.xmlsoap.org/ws/2004/10/wscoor">
>
<ProtocolIdentifier>http://schemas.xmlsoap.org/ws/2004/10/wsat/Completion</ProtocolIdentifier>
> <ParticipantProtocolService>
> <wsa:Address xmlns:ns1="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> absoluteURI="true" genericURI="true" host="localhost"
> path="/BankingClient/services/completionInitiator" port="11865" scheme="http"
> schemeSpecificPart="//localhost:11865/BankingClient/services/completionInitiator"
>
xsi:type="ns1:Address">http://localhost:11865/BankingClient/services/completionInitiator</wsa:Address>
> <wsa:ReferenceProperties>
> <ns2:CallbackRef
>
xmlns:ns2="http://ws.apache.org/kandula">uuid:c6ffa420-78d2-11dc-ab97-8dd9da4cd744</ns2:CallbackRef>
> </wsa:ReferenceProperties>
> <wsa:ReferenceParameters/>
> </ParticipantProtocolService>
> </Register>
> </soapenv:Body>
> 
> <soapenv:Body>
> <RegisterResponse xmlns="http://schemas.xmlsoap.org/ws/2004/10/wscoor">
> <CoordinatorProtocolService>
> <ns1:Address absoluteURI="true" genericURI="true" host="localhost"
> path="/BankingClient/services/completionCoordinator" port="11865"
> scheme="http"
>
schemeSpecificPart="//localhost:11865/BankingClient/services/completionCoordinator"
> xsi:type="ns2:Address"
> xmlns:ns1="http://schemas.xmlsoap.org/ws/2004/08/addressing"
>
xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/03/addressing">http://localhost:11865/BankingClient/services/completionCoordinator</ns1:Address>
> <ns3:ReferenceProperties
> xmlns:ns3="http://schemas.xmlsoap.org/ws/2004/08/addressing"><ns4:CallbackRef
>
xmlns:ns4="http://ws.apache.org/kandula">uuid:c6731b90-78d2-11dc-b880-94a4211b941c</ns4:CallbackRef></ns3:ReferenceProperties>
> <ns5:ReferenceParameters
> xmlns:ns5="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
> </CoordinatorProtocolService></RegisterResponse>
> </soapenv:Body>
> 
> So I hope i understood u right...
> 
> THX
> 
> -Dominik
> 
> -------- Original-Nachricht --------
> > Datum: Fri, 12 Oct 2007 10:26:29 -0400
> > Von: Dasarath Weeratunge <dweeratu@purdue.edu>
> > An: kandula-dev@ws.apache.org
> > Betreff: Re: Help for Kandula 1
> 
> > Quoting Dominik Heller <Dominik.Heller@gmx.net>:
> > 
> > Could you please post your coordinator/participant endpoints and the
> > contents
> > (SOAPBody) of the register message.
> > 
> > -- Dasarath
> > 
> > > Hi All,
> > > well I have another question regarding Kandula1. What I am trying to do
> > right
> > > now is to invoke a web service based transaction using a non web service
> > java
> > > object. So I do have 2 web services up and running A & B. the java
> > object JO
> > > which is embedded with web service A gets an instance tm of the
> > > transactionManagerImpl. The JO also uses the web service A to activate,
> > > registrate and use the coordinator. I then use tm.begin(), invoke a
> > method
> > > from web service B, and then use tm.commit().
> > > 
> > > the problem now is that by committing the CompletionInitiatorImpl never
> > gets
> > > the notify that everything is committed correctly.
> > > 
> > > By monitoring the soapMessages I found nothing unusual and I tracked
> > down the
> > > problem to the point when the ATCoordinatorImpl calls the notifyAll()
> > > method.
> > > 
> > > In the end the initiator gets a timeout Exception
> > > 
> > > So I hope I wrote everthing understandable and not so confusing.
> > > 
> > > THX so much in advance
> > > -Dominik
> > > -- 
> > > Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
> > > Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
> > > 
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: kandula-dev-help@ws.apache.org
> > > 
> > > 
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: kandula-dev-help@ws.apache.org
> 
> -- 
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> 



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


Mime
View raw message