Lars Decker created TOMEE-4548:
----------------------------------

             Summary: Getting SessionScoped bean from BeanManage 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


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)

Reply via email to