com.ibm.wsspi.wsrm

Interface WSRMSequenceManager



  • public interface WSRMSequenceManager
    The WSRMSequenceManager is used for controlling the reliable messaging sequence been a Web service requester and Web service provider. Most methods take an Object as one of the parameters. This object is either an instance of a JAX-WS Dispatch object, or an instance of the Dynamic Proxy client. The Dispatch instance is created using the jax.xml.ws.Dispatch classes and can be created in a similar way to the following: Service svc = Service.create((QName)serviceQName); svc.addPort((QName)portQName, null, endPointUri); Dispatch dispatch = svc.createDispatch( portQName, String.class, null); All methods will throw a WSRMNotEnabledException if Web services - reliable messaging has not been enabled for the application invoking the method
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void closeSequence(java.lang.Object clientObject, javax.xml.namespace.QName portQName, java.lang.String endPointUri)
      Closes the Web services reliable messaging session from this application to the end point url specified.
      void createNewWSRMSequence(java.lang.Object clientObject, javax.xml.namespace.QName portQName, WSRMSequenceProperties sequencePropeties)
      Initiates a new sequence handshake between this client and the target EPR specified in the WSRMSequenceProperties instance.
      WSRMSequenceProperties createNewWSRMSequenceProperties()
      Creates a new WSRMSequenceProperties object which can be used to set the properties for a new web services reliable messaging sequence.
      java.lang.Exception getLastWSRMError(java.lang.Object clientObject, javax.xml.namespace.QName portQName, java.lang.String endPointUri)
      Due to the asynchronous behaviour of web services reliable messaging errors may occur, such as endpoint unreachable that are not exposed to the client.
      long getLastWSRMErrorTimestamp(java.lang.Object clientObject, javax.xml.namespace.QName portQName, java.lang.String endPointUri)
      Due to the asynchronous behaviour of web services reliable messaging errors may occur, such as endpoint unreachable that are not exposed to the client.
      void sendAcknowledgementRequest(java.lang.Object clientObject, javax.xml.namespace.QName portQName, java.lang.String endPointUri)
      Sending an acknowledgement request sends the ACK requested message to the specified target endPointUri.
      void terminateSequence(java.lang.Object clientObject, javax.xml.namespace.QName portQName, java.lang.String endPointUri)
      Terminates Web services reliable messaging session from this application to the end point url specified.
      boolean waitForAllMessagesToBeAcked(java.lang.Object clientInstance, javax.xml.namespace.QName portQName, java.lang.String endPointUri) 
      boolean waitForAllMessagesToBeAcked(java.lang.Object clientInstance, javax.xml.namespace.QName portQName, java.lang.String endPointUri, long waitTime) 
      boolean waitUntilSequenceCompleted(java.lang.Object clientObject, javax.xml.namespace.QName portQName, java.lang.String endPointUri)
      Waits until all messages between this application and target endpoint url are completed before returning control to the application.
      boolean waitUntilSequenceCompleted(java.lang.Object clientObject, javax.xml.namespace.QName portQName, java.lang.String endPointUri, long waitTime)
      Waits until all messages between this application and target endpoint url are completed before returning control to the application.
IBM WebSphere Application ServerTM
Release 9.0