6 Replies Latest reply on Jun 2, 2008 5:31 AM by Stefan Lecho

    Problems Resuming BA Transaction in SOA-P Business Process

    Jeff DeLong Master

      I took this off the JBoss Transactions forum http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154467#4154467 for a moment since there is not much the transactions team can help me with this at this point.

      I have the transaction context in the ESB message body (only place to really put it, there don't seem to be any methods to put it in the context) or header). See <wscoor:CoordinationContextType ... below. I believe that I need to put it in the SOAPMessage header. I also see that SOAPClient allows a smooks transformation to be specified. I don't see how to have a smooks transformation do what I need to do. The txContext will not be copied to the SOAPMessage; it is not a part of the web service operation, and it appears from the code that the smooks transformation is applied to the SOAPMessage. Does anyone have any thoughts on how I might do this (short of creating the SOAP messages in my own custom actions)?

      Also, I added a parameter dumpSOAP to the params map, but still don't see the SOAP message in the console output>

      Thanks,

      Jeff


      15:36:29,759 INFO [STDOUT] Message before transformation:
      15:36:29,760 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:nig="http://www.jboss.com/jbosstm/xts/demo/NightOut">
      <soapenv:Header/>
      <soapenv:Body>
      <nig:bookReservations>
      1
      1
      1
      false
      </nig:bookReservations>
      </soapenv:Body>
      </soapenv:Envelope>].
      15:36:29,768 INFO [WSBATxAction] Trying to obtain WS-Transaction from coordinator.
      15:36:29,778 INFO [WSBATxAction] WS-Transaction 'BusinessActivityIdentifier: urn:7f000001:cfcd:483f0ffb:2e20' has begun.
      15:36:29,861 WARN [ServiceEndpointInvoker] Cannot provide WebServiceContext, since the current MessageContext does not provide a ServletRequest
      15:36:29,862 INFO [STDOUT] **** SOAPRequest mediated by ESB:
      <soapenv:Envelope xmlns:nig="http://www.jboss.com/jbosstm/xts/demo/NightOut" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header></soapenv:Header>
      <soapenv:Body>
      <nig:bookReservations>
      1
      1
      1
      false
      </nig:bookReservations>
      </soapenv:Body>
      </soapenv:Envelope>
      15:36:29,863 INFO [STDOUT] Return Message:
      15:36:29,863 INFO [STDOUT] [<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><nig:bookReservationsResponse xmlns:nig='http://www.jboss.com/jbosstm/xts/demo/NightOut'>received policy app</nig:bookReservationsResponse></env:Body></env:Envelope>].
      15:36:29,977 INFO [WSBATxAction] Associating WS-Transaction 'BusinessActivityIdentifier: urn:7f000001:cfcd:483f0ffb:2e20' with current thread
      15:36:29,977 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
      15:36:29,983 INFO [WSBATxAction] Associating WS-Transaction 'BusinessActivityIdentifier: urn:7f000001:cfcd:483f0ffb:2e20' with current thread
      15:36:29,984 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
      15:36:29,984 INFO [STDOUT] requestMap is: {dumpSOAP=, bookSeats.how_many=1, bookSeats.which_area=1}
      15:36:29,984 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
      15:36:29,984 INFO [STDOUT] Message structure:
      15:36:29,985 INFO [STDOUT] [ message: [ JBOSS_XML ]
      header: [ To: JMSEpr [ PortReference < <wsa:Address jms://127.0.0.1:1099/queue/Restaurant/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] ReplyTo: EPR: PortReference < <wsa:Address logical:JBossESB-Internal#JBpmCallbackService/>, <wsa:ReferenceProperties jbossesb:esbToBpmVars : />, <wsa:ReferenceProperties jbossesb:jbpmTokenId : 108/>, <wsa:ReferenceProperties jbossesb:jbpmNodeId : 135/>, <wsa:ReferenceProperties jbossesb:jbpmProcessInstId : 31/>, <wsa:ReferenceProperties jbossesb:jbpmProcessNodeVersionCounter135_108 : 0/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/logical/> > MessageID: ID:JBM-53323 RelatesTo: jms:correlationID#4e6a950f-f2b4-4946-b684-4c41cb9102cb ]
      context: [ ]
      body: [ objects: {org.jboss.soa.esb.message.defaultEntry={dumpSOAP=, bookSeats.how_many=1, bookSeats.which_area=1}, Reservation=org.jboss.nightout.Reservation@1654826, txContext=<?xml version="1.0" encoding="UTF-8"?><wscoor:CoordinationContextType xmlns:wscoor="http://schemas.xmlsoap.org/ws/2004/10/wscoor"><wscoor:Identifier>urn:7f000001:cfcd:483f0ffb:2e20</wscoor:Identifier><wscoor:CoordinationType>http://schemas.xmlsoap.org/ws/2004/10/wsba/AtomicOutcome</wscoor:CoordinationType><wscoor:RegistrationService><wsa:Address xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://localhost:8080/xts/soap/RegistrationCoordinator</wsa:Address><wsa:ReferenceParameters xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"><wsarj:InstanceIdentifier xmlns:wsarj="http://schemas.arjuna.com/ws/2005/10/wsarj">7f000001:cfcd:483f0ffb:2e20</wsarj:InstanceIdentifier></wsa:ReferenceParameters></wscoor:RegistrationService></wscoor:CoordinationContextType>} ]
      fault: [ ]
      attachments: [ Named:{}, Unnamed:[] ]
      properties: [ {org.jboss.soa.esb.message.time.dod=Thu May 29 15:36:29 MDT 2008, org.jboss.soa.esb.message.time.dob=Deferred serialized value: 63f0f3, org.jboss.soa.esb.message.source=Deferred serialized value: 15ffa56, org.jboss.soa.esb.message.transport.type=Deferred serialized value: 2c5e40, javax.jms.message.redelivered=false} ] ]
      15:36:29,992 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
      java.lang.NullPointerException
      at com.jboss.jbosstm.xts.demo.services.theatre.TheatreServiceBA.bookSeats(TheatreServiceBA.java:83)