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

cookbook or box on doc about injecting @EJB #755

Closed
Turini opened this issue Aug 23, 2014 · 2 comments · Fixed by #765
Closed

cookbook or box on doc about injecting @EJB #755

Turini opened this issue Aug 23, 2014 · 2 comments · Fixed by #765

Comments

@Turini
Copy link
Member

Turini commented Aug 23, 2014

explaining that its possible and a simple example

@garcia-jj
Copy link
Member

I don't know if this is really need a cookbook. May be a box on docs about components (as you suggested). Let me explain the scenarios:

  • EJB are CDI components too, so will inject using @Inject via field, getter/setter or constructor.
  • @Resource annotations are not managed by CDI, so resources like Datasource, UserTransaction and SessionContext needs a producer.

What you think @Turini?

@Turini
Copy link
Member Author

Turini commented Aug 28, 2014

Totally agree! I like your explanation ;)

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

Successfully merging a pull request may close this issue.

2 participants