[jboss-jira] [JBoss JIRA] Commented: (JBSEAM-279) Component lifetimes not guaranteed for SFSB backed components.
German de la Cruz (JIRA)
jira-events at jboss.com
Mon Aug 21 22:03:38 EDT 2006
[ http://jira.jboss.com/jira/browse/JBSEAM-279?page=comments#action_12341563 ]
German de la Cruz commented on JBSEAM-279:
------------------------------------------
A detail I forgot but I think it's important. When it fails, seam is trying to execute de factory method for my DataBinder who is in the SFSB what we're talking about...
That's why the first time it works and fail only in the destroy phase: It actually didn't exit and the seam create it. When fails, it had existed before, seam destroy it, but in the request there is already a reference (which is invalid)
> Component lifetimes not guaranteed for SFSB backed components.
> --------------------------------------------------------------
>
> Key: JBSEAM-279
> URL: http://jira.jboss.com/jira/browse/JBSEAM-279
> Project: JBoss Seam
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.1
> Reporter: ryan dewell
>
> Seam does not guarantee component lifecycles for SFSB backed components.
> The container controls when SFSB's are removed / timed out. When Seam accesses an SFSB that has been removed by the container, it results in an EJBNoSuchObjectException.
> The JBoss specific workaround for Session scoped components is to use the @CacheConfig annotation, setting the idle timeout to match the HttpSession timeout. Similar changes would have to be made to any Conversation scoped component that uses a timeout greater than the default SFSB timeout of 5 minutes (which just happens to be the default timeout for Seam conversations).
> There is no workaround for Application scoped components. Once removed by the container, EJBNoSuchObjectException's will continue to be thrown as Seam tries to access them.
> Seam's context model needs to somehow guarantee that its SFSB instances aren't removed by the container before Seam is finished with them. And/or, it needs to recover from EJBNoSuchObjectException's more gracefully, especially with regards to Application scoped components for which there is no workaround.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list