[cdi-dev] [JBoss JIRA] (CDI-554) Additional built-in beans do not have a scope defined
John Ament (JIRA)
issues at jboss.org
Mon Feb 22 07:33:00 EST 2016
[ https://issues.jboss.org/browse/CDI-554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13166277#comment-13166277 ]
John Ament commented on CDI-554:
--------------------------------
Just one comment. ServletContext should probably be app scoped, no?
https://docs.oracle.com/javaee/6/api/javax/servlet/ServletContext.html
It provides access to the runtime, not any specific request.
> Additional built-in beans do not have a scope defined
> -----------------------------------------------------
>
> Key: CDI-554
> URL: https://issues.jboss.org/browse/CDI-554
> Project: CDI Specification Issues
> Issue Type: Clarification
> Affects Versions: 1.2.Final, 2.0-EDR1
> Reporter: Martin Kouba
>
> See section 17.8. Additional built-in beans - a scope is not defined for UserTransaction, Principal, HttpServletRequest, etc. Maybe it's defined somewhere else but I cannot find anything.
> In Weld, Java EE beans are {{@Dependent}}, HttpServletRequest and ServletContext are {{@RequestScoped}} and HttpSession is {{@SessionScoped}}.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the cdi-dev
mailing list