|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.wsee.reliability.WsrmUtils
public class WsrmUtils
This class is a utility class for using Web Services Reliable Messaging (WSRM) given a service stub (WLStub) instance. It allows you to do common things such as setting configuration options, getting the sequence id, and terminating a reliable sequence.
Constructor Summary | |
---|---|
WsrmUtils()
|
Method Summary | |
---|---|
static void |
closeSequence(Stub stub)
This method is used to close a reliable sequence on the given stub. |
static Duration |
getExpires(Stub stub)
This method gets the expiration time that was previously set on the reliable sequence. |
static Duration |
getOfferExpires(Stub stub)
This method gets the expiration time that was previously set on the offered reliable sequence. |
static String |
getSequenceId(Stub stub)
This method is to obtain the sequence id on a stub. |
static boolean |
isAnonymousAck(Stub stub)
This method determines whether anonymous acknowledgement is used. |
static boolean |
isFinalMessage(Stub stub)
This method determines whether the final message has been sent on the sequence for this stub. |
static boolean |
isLastMessage(Stub stub)
This method determines whether the last message property has been previously set. |
static boolean |
isSequenceInitialized(Stub stub)
Convenience method to check if a given stub has had its sequence created and fully initialized. |
static void |
printSoapMsg(SOAPMessage msg)
Dumps the contents of a SOAPMessage to the WSEE Verbose.getOut() output stream. |
static void |
reset(Stub stub)
This method is used to clear any reliable sequence on the given stub, thus allowing a new sequence to be started using this stub. |
static void |
sendEmptyLastMessage(Stub stub)
This method is used to send an empty last message according to the WSRM spec. |
static void |
setAnonymousAck(Stub stub)
This method allows to use anonymous acknowledgement according to the WSRM specification. |
static void |
setExpires(Stub stub,
Duration duration)
This method sets the expiration time of the reliable sequence on the client side. |
static void |
setFinalMessage(Stub stub)
Sets a flag on this service handle indicating that the next message sent using the handle will be the 'final' request to be sent. |
static void |
setLastMessage(Stub stub)
This method sets the next message sent to be the last message. |
static void |
setOfferExpires(Stub stub,
Duration duration)
This method sets the expiration time of the offered reliable sequence. |
static void |
terminateSequence(Stub stub)
This method is used to terminate a reliable sequence on the given stub. |
static String |
waitForSequenceInitialization(Stub stub,
long waitIntervalInMillis,
long maxWaitIntervals)
Convenience method to wait until a given stub has had its sequence created and fully initialized. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WsrmUtils()
Method Detail |
---|
public static boolean isSequenceInitialized(Stub stub)
stub
- The stub that carries the reliable sequence.
public static String waitForSequenceInitialization(Stub stub, long waitIntervalInMillis, long maxWaitIntervals)
stub
- The stub that carries the reliable sequence.waitIntervalInMillis
- The number of milliseconds to wait at each
interval (before checking the sequence again).maxWaitIntervals
- The maximum number of times to recheck the
sequence.WsrmUtils.isSequenceInitialized(Stub)
public static void sendEmptyLastMessage(Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.
JAXRPCException
- This exception is thrown when there are errors in sending the
mesage.WsrmUtils.waitForSequenceInitialization(Stub, long, long)
public static void closeSequence(Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.
JAXRPCException
- This exception is thrown when there are errors in
closing the sequence.public static void terminateSequence(Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.
JAXRPCException
- This exception is thrown when there are errors in terminating
the sequence.WsrmUtils.waitForSequenceInitialization(Stub, long, long)
public static void reset(Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.
JAXRPCException
- This exception is thrown when there are errors in
resetting the stub.public static String getSequenceId(Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.
JAXRPCException
- This exception is thrown when there are errors in getting the
reliable sequence id.public static void setExpires(Stub stub, Duration duration)
stub
- The jaxrpc stub that's used to carry the reliable sequence.duration
- The duration of the reliable sequence.public static Duration getExpires(Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.
public static void setOfferExpires(Stub stub, Duration duration)
stub
- The jaxrpc stub that's used to carry the reliable sequence.duration
- The duration of the reliable sequence.public static Duration getOfferExpires(Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.
public static void setAnonymousAck(Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.public static boolean isAnonymousAck(Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.
public static void setLastMessage(Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.public static boolean isLastMessage(Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.
public static void setFinalMessage(Stub stub)
Setting this flag (and after sending the final message) will trigger the reliable messaging subsystem to start looking for acknowledgements for all messages up to and including the final message. When RM receives acknowledgements for all messages up to the final message, it will auto-terminate the sequence being maintained for this service handle. Note that auto-terminate will also auto-terminate any offer sequence (being used to send reliable responses to the requests sent by this service handle) once acknowlegements for all responses have been received.
stub
- The stub for a service that's used to carry the reliable
sequence.public static boolean isFinalMessage(Stub stub)
stub
- The stub for a service that's used to carry the reliable
sequence.
WsrmUtils.setFinalMessage(Stub)
public static void printSoapMsg(SOAPMessage msg)
|
Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |