Hi,

I am just new with Kandula. I want to write a Banking Service, that can be part of a Atomic Transaction. My Interface looks like this:

  • public boolean debit(String accountNo, String amount);
  • public boolean debit(String accountNo, String amount);
  • public String getBalance(String accountNo);
  • public void commit();
  • public void rollback() ;
  • public void prepare();

I deployed all transactional services that are needed and put the client-config.wsdd to the WEB-INF/classes of my Tomcat.

The service is deployed like this:

<service name="DeutscheBankWS" provider="java:RPC">
  <requestFlow>
   <handler type="soapmonitor"/>
   <handler type="java:org.apache.axis.message.addressing.handler.AddressingHandler" />
   <handler type="java:org.apache.kandula.coordinator.at.TxHandler" />
  </requestFlow>
  <responseFlow>
          <handler type="java:org.apache.axis.message.addressing.handler.AddressingHandler" />
          <handler type="soapmonitor"/>
    </responseFlow>
  <parameter name="allowedMethods" value="*"/>
  <parameter name="className" value="de.tud.ao4bpel.samples.banking.Bank"/>
  <parameter name="scope" value="application"/>
</service>

My client code is like this:

tm.begin();
sendDebit("20", "1","DeutscheBankWS");
tm.commit();


The SOAP Monitor shows the following Message Scenario:

  • activationCoordinator is called and it returns a response
  • registrationCoordinator is called and it returns a response
  • DeutscheBankWS is called (with the coordination context) and it returns a response
  • registrationCoordinator is called and it returns a response
  • completionCoordinator is called and it returns no response (containing <Commit xsi:nil="true" xmlns="http://schemas.xmlsoap.org/ws/2004/10/wsat"/>)
  • participant is called and it returns no response
  • coordinator is called and it returns no response
  • completionInitiator is called and it returns no response

Can anyone help me to make this working? Do you need additional details of the messages or my configuration?

Thanks,

Benjamin

Reply via email to