You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Anthony Elder <an...@uk.ibm.com> on 2002/10/03 08:53:16 UTC

[WSIF] Overriding the default timeout values on a wsif operation request

A number of people have asked if its possible to override the default
timeout values used for the excuteRequestResponse and
executeRequestResponseAsync calls of the JMS providers. Currently you
can't, WSIF has global default values in the wsif.properties for
wsif.sync.timeout and wsif.async.timeout and there's no way of changing
these for individual requests.

I'd like to propose a change to allow overriding the timeouts by using the
context message or JMS property extensions in WSDL.

There's already WSFConstants defined for the property names -
WSIFConstants.WSIF_PROP_SYNC_TIMEOUT and
WSIFConstants.WSIF_PROP_ASYNC_TIMEOUT, so I'd like to change the providers
to set the timeout as follows:

if the context message has a part with the name of the WSIFConstants
timeout string then use that value for the timeout,
otherwise if the WSDL has a jms:propertyValue or jms:property tag defined
with the name of the WSIFConstants timeout string then use that value for
the timeout,
otherwise get the default timeout from wsif.properties as it does now.

       ...ant

Anthony Elder
ant.elder@uk.ibm.com
Web Services Development
IBM UK Laboratories,  Hursley Park
(+44) 01962 818320, x248320, MP208.