[jboss-jira] [JBoss JIRA] (WFLY-1423) Provide configurable timeout for ExternalContextObjectFactory.createContext

Rostislav Svoboda (JIRA) jira-events at lists.jboss.org
Thu May 30 10:21:55 EDT 2013


    [ https://issues.jboss.org/browse/WFLY-1423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12778246#comment-12778246 ] 

Rostislav Svoboda commented on WFLY-1423:
-----------------------------------------

So when external context provider does not provide the option then the user can't set anything to avoid long timeouts ... which is not optimal.
Can you give us estimation how hard would it be to implement general timeout check? Thank you.
                
> Provide configurable timeout for ExternalContextObjectFactory.createContext
> ---------------------------------------------------------------------------
>
>                 Key: WFLY-1423
>                 URL: https://issues.jboss.org/browse/WFLY-1423
>             Project: WildFly
>          Issue Type: Feature Request
>          Components: Naming
>    Affects Versions: 8.0.0.Alpha1
>            Reporter: Jan Martiska
>            Assignee: Stuart Douglas
>
> An ExternalContextObjectFactory's createContext method might take a long time to complete, because usually it will communicate over the network. It would be useful to be able to cap the waiting time, and there should be a timeout enabled by default -- it might happen that the remote server will get stuck during the context creation and the external context will never be successfully created (or it will just take too much time). If a timeout occurs, createContext can for example return null, or throw an exception, not sure which is better.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list