Kayser
Kayser

Reputation: 6704

Which type of beans are injectible?

With the concept of CDI in EJB3.X, you can inject the beans or entities. What i want to know is: which types of beans you can inject.

Session Bean in Entity? Entity in MDB, etc???

How can I find a table that show the possiblities what i can do/inject in CDI concept.

Upvotes: 2

Views: 117

Answers (1)

mprabhat
mprabhat

Reputation: 20323

Take a look at DZone Ref Card can be found here.

Quick Look:

Session Beans can be injected into Session Beans, MDBs can be injected in SessionBean, Entities can be injected in SessionBean.

Stateful beans shouldn't be injected in stateless beans.

Upvotes: 3

Related Questions