Contexts and Dependency Injection (CDI): Java Platform, Enterprise Edition (Java EE) 5 brought dependency injection (DI) with Convention over Configuration to Enterprise JavaBeans (EJB) 3.0. Java EE 6 introduces the flexible and powerful @Inject dependency injection model (JSR-330 and JSR-299) in addition to the already existing @EJB annotation.
Is it safe to do something like this with CDI? @Named @ApplicationScoped public class DAO { @PersistenceContext private EntityManager entityManager; } I …
jakarta-ee jpa java-ee-6 cdiI have a small yet complete Java EE 6 application at hand. The traditional annotations are being used: @Resource, @EJB, @Singleton, @…
dependency-injection jakarta-ee java-ee-6 cdiI am new to Java EE 6 and CDI. I have read a couple of tutorials and the weld documentation. However …
java java-ee-6 glassfish-3 cdi ejb-3.1In my project I use Seam 3 and I am having issues injecting the EntityManager with the @Inject annotation. I am …
java configuration persistence cdi seam3I have an issue with the order and number of executions of an f:event type="preRenderView". During my search …
jsf-2 cdi prerenderviewI would like to develop an application with CDI (I use Spring usually) to discover this technology. I have read …
jakarta-ee cdi ejb-3.1We are in the process of disentangling a classic legacy monolithic EAR-packaged Java EE application. Our (most complex) component wiring …
dependency-injection osgi cdi weld wildflyIf I cannot use the @ManagedProperty annotation with @Named, because @ManagedProperty doesn't work in CDI(?), then how do you pass …
jsf facelets cdi managed-propertyI have a question about the @Inject annotation in java ee 6 : What is the difference between : @Inject private TestBean test; @…
dependency-injection ejb javabeans java-ee-6 cdi