[seam-issues] [JBoss JIRA] (SEAMCRON-9) Should we expose exceptions during @Asynchronous via Future?

Peter Royle (Reopened) (JIRA) jira-events at lists.jboss.org
Mon Dec 19 00:47:09 EST 2011


     [ https://issues.jboss.org/browse/SEAMCRON-9?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Royle reopened SEAMCRON-9:
--------------------------------



This doesn't actually work as intended. The test SeamCronAsynchronousTCKTest.testErrorThrownReturnsAsPerEJBSpec() is logging but otherwise swallowing the fact that the line "result.get(2, TimeUnit.SECONDS);" of that test is timing out, rather than throwing the expected exception. We should first change the 2 log.error(...) lines to raise runtime exceptions, then investigate and fix the behaviour. 
                
> Should we expose exceptions during @Asynchronous via Future?
> ------------------------------------------------------------
>
>                 Key: SEAMCRON-9
>                 URL: https://issues.jboss.org/browse/SEAMCRON-9
>             Project: Seam Cron
>          Issue Type: Enhancement
>            Reporter: Peter Royle
>            Assignee: Peter Royle
>            Priority: Minor
>              Labels: asynchronous, exception
>             Fix For: 3.0.0.Alpha1
>
>
> When an @Asynchronous method returns a Future, in EJB it allows you to access exceptions thrown by the @Asynchronous method via the returned Future object (EJB 3.1, 3.4.8). If possible we should mimic this behaviour.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list