[cdi-dev] [JBoss JIRA] (CDI-634) Clarify contextual reference validity to a bean with a normal scope in Java SE

Martin Kouba (JIRA) issues at jboss.org
Tue Sep 27 07:34:00 EDT 2016


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

Martin Kouba commented on CDI-634:
----------------------------------

[~meetoblivion] Because I think it's undefined. And by the way it seems you've also agreed this would deserve some clarification - https://issues.jboss.org/browse/WELD-2190?focusedCommentId=13263160&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13263160. The exception is just an implementation detail.

> Clarify contextual reference validity to a bean with a normal scope in Java SE
> ------------------------------------------------------------------------------
>
>                 Key: CDI-634
>                 URL: https://issues.jboss.org/browse/CDI-634
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>            Reporter: Martin Kouba
>
> In Java SE, a user might be tempted to share a contextual reference for a normal scoped bean (client proxy) between multiple "deployments" of a single application, e.g.:
> # start CDI container
> # get a reference
> # stop CDI container
> # start CDI container again and try to use the stored reference.
> I believe such a reference should not be valid after an application stopped (contexts are destroyed, etc.). Right now, it seems to be undefined.
> See also WELD-2190.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the cdi-dev mailing list