JwsContext.setMaxAge (String) Method
Sets a conversation's maximum age by specifying a duration as a string.
public void setMaxAge(String duration)
duration
The period after which the conversation will finish.
None.
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.
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.
JwsContext.setMaxAge(Date) Method