[
https://issues.apache.org/jira/browse/TOMEE-4548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lars Decker updated TOMEE-4548:
-------------------------------
Summary: Getting SessionScoped bean from BeanManager not working (was:
Getting SessionScoped bean from BeanManage not working)
> Getting SessionScoped bean from BeanManager not working
> -------------------------------------------------------
>
> Key: TOMEE-4548
> URL: https://issues.apache.org/jira/browse/TOMEE-4548
> Project: TomEE
> Issue Type: Bug
> Components: TomEE Core Server
> Affects Versions: 10.1.2
> Reporter: Lars Decker
> Priority: Major
> Attachments: hello-servlet.zip
>
>
> This code works fine in wildfly:
> SessionScoped bean:
>
> @SessionScoped
> public class SessionStore implements Serializable {
>
> Servlet code:
> @Inject SessionStore store;
>
> when i inject it in a Servlet it is found just fine and works. When I want to
> access it via BeanManager in the same servlet it is not being found:
> bm = (BeanManager) (new InitialContext()).lookup("java:comp/BeanManager");
> Set<Bean<?>> beans = bm.getBeans(SessionStore.class);
>
> beans is null
>
>
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)