JwsContext.setMaxAge (String) Method

Sets a conversation's maximum age by specifying a duration as a string.

# Syntax

    public void setMaxAge(String duration)

# Parameters

duration

The period after which the conversation will finish.

# Return Value

None.

# Exceptions

IllegalStateException

Thrown if the method is called from a service instance that is not conversational.

IllegalArgumentException

Thrown to indicate that a method has been passed an illegal or inappropriate argument.

# Remarks

Call the setMaxAge method to sets the maximum conversation age (relative to the current time) for that conversation. The duration parameter marks the time after which the WebLogic Server will be allowed to finish this conversation. Note that setting the maximum age with the setMaxAge method overrides the default setting or the setting given in the service's JWS file. This is an absolute age that isn't affected by network traffic.

If the duration value results in zero seconds, the maximum age timeout will be disabled. If the duration value is in the past, the conversation will finish immediately.

Related Topics

JwsContext.setMaxAge(Date) Method

JwsContext.getMaxAge() Method

JwsContext.getCurrentAge() Method

Managing Conversation Lifetime