Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@javax.ejb.Singleton annotated Beans are not injected as EJBs #18

Closed
andywuest opened this issue Feb 24, 2015 · 2 comments
Closed

@javax.ejb.Singleton annotated Beans are not injected as EJBs #18

andywuest opened this issue Feb 24, 2015 · 2 comments
Assignees

Comments

@andywuest
Copy link

Hi,

i am testing BeanTest with my project and the project fails to inject an EJB that is annotated. with @singleton

e.g.

@startup @singleton
public class CacheManagerBean {
}

I guess the BeanTestExtension class needs to be extended to check for the @singleton annotation as well (not only for Stateless and MessageDriven).

@carlosbarragan
Copy link
Member

Yes, that should do it. Care to create a pull request? The corresponding scope would be @ApplicationScoped

@carlosbarragan
Copy link
Member

The implementation of this feature won't support multi-threading access because the TransactionalInterceptor is not thread-safe. That should be done in a another issue / feature request.

The implementation will just provide access to the Singleton (with @ApplicationScoped) via the getBean() method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants