Skip navigation links

Java API Reference for Oracle Infrastructure Web Services
11
Release 1 (11.1.1)

E10654-03


oracle.webservices.rm
Interface ReliableSession


public interface ReliableSession

This interface provides the ability to work with a WS-RM sequence.


Method Summary
 void addReliableMessageListener(ReliableMessageListener listener)
          Register a ReliableMessageListener for ReliableEvent notifications from the session instance.
 void close()
          Terminate the WS-RM sequence and release any associated resources.
 long getInactivityTimeout()
           
 String getInboundSequenceId()
          Gets the sequence identifier from the current inbound sequence.
 String getMessageStoreName()
           
 String getOutboundSequenceId()
          Get the sequence identifier from the current outbound sequence.
 String getSoapVersion()
           
 boolean isAddressableAcksTo()
          Determine whether the acknowledgement destination is a address to which a connection can be established.
 void open()
          Initiate the WS-RM sequence for the session.
 void setMakeOffer(boolean makeOffer)
          Indicate that the WS-RM Source should offer a sequence identifier rather than ask the WS-RM Destination to provide one.
 void setSoapVersion(String soapVersion)
           

 

Method Detail

open

void open()
Initiate the WS-RM sequence for the session. <p/> If this method is used, then the session must be explicitly closed in order to terminate the WS-RM sequence.
See Also:
close()

close

void close()
Terminate the WS-RM sequence and release any associated resources.
See Also:
open()

isAddressableAcksTo

boolean isAddressableAcksTo()
Determine whether the acknowledgement destination is a address to which a connection can be established.
Returns:
true if the AcksTo destination is addressable; false, if it's any address for which a connection cannot be established.

getSoapVersion

String getSoapVersion()

setSoapVersion

void setSoapVersion(String soapVersion)

setMakeOffer

void setMakeOffer(boolean makeOffer)
Indicate that the WS-RM Source should offer a sequence identifier rather than ask the WS-RM Destination to provide one.
Parameters:
makeOffer - true, if the WS-RM Source should offer a sequence identifier; false, if the WS-RM Destination is expected to provide the sequence identifier.

addReliableMessageListener

void addReliableMessageListener(ReliableMessageListener listener)
Register a ReliableMessageListener for ReliableEvent notifications from the session instance.
Parameters:
listener - A ReliableMessageListener instance.

getOutboundSequenceId

String getOutboundSequenceId()
Get the sequence identifier from the current outbound sequence. <p/> The session ID is only accessible when the explicit programming model is used. <p/>
Returns:
The Sequence identifier of the WS-RM Source associated with the current context.
Throws:
IllegalStateException - for one-way WS-RM sessions, if called from the WS-RM Destination side of the interaction, or if there is no outbound sequence for some other reason.
See Also:
open()

getInboundSequenceId

String getInboundSequenceId()
                            throws IllegalStateException
Gets the sequence identifier from the current inbound sequence. <p/>
Returns:
The sequence identifier.
Throws:
IllegalStateException - if there is no inbound sequence.

getInactivityTimeout

long getInactivityTimeout()

getMessageStoreName

String getMessageStoreName()

Skip navigation links

Java API Reference for Oracle Infrastructure Web Services
11
Release 1 (11.1.1)

E10654-03


Copyright © 2006, 2010, Oracle and/or its affiliates. All rights reserved..