Top "Cdi" questions

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.

WELD-001408 Unsatisfied dependencies when injecting EntityManager

I have @Stateless bean which implements two interfaces (remote and local). I have also added @LocalBean anotation for accessing bean …

dependency-injection java-ee-6 cdi entitymanager stateless-session-bean
Can I (and how) lookup CDI managed beans using javax.naming.Context#lookup in EJB module?

Can I (and if so, how?) lookup CDI managed beans using javax.naming.Context#lookup in EJB module? I'm using …

java glassfish ejb cdi ejb-3.1
Why are there different bean management annotations

What is the difference between import javax.annotation.ManagedBean; import javax.enterprise.context.SessionScoped; and import javax.faces.bean.ManagedBean; …

jsf cdi managed-bean
How to integrate JAX-RS with CDI in a Servlet 3.0 container

I have a web application running on a Servlet 3.0 container (Jetty 9.0.4) using JSF 2.2 (Mojorra 2.1.3) & CDI 1.1 (Weld 2.0.3). No full-fledged application …

rest jakarta-ee jax-rs cdi servlet-3.0
How to inject EntityManager in CDI (weld)?

In my project , I use JSF+JPA+CDI+WildFly 8.2 in the persistence layer. I have a BasicDao , like this: public …

jpa cdi wildfly entitymanager weld
CDI Extension for Flyway

I tried to run flyway in my application before hibernate is hooking in on my JBoss AS 7.1. I tried with …

cdi ejb-3.1 flyway
NullPointerException while trying to access @Inject bean in constructor

I've a session scoped bean: @Named @SessionScoped public class SessionBean implements Serializable { private String someProperty; public String getSomeProperty() { return someProperty; } } …

jsf constructor nullpointerexception cdi managed-bean
Using CDI (Weld) in Tomcat with simple POJO classes

After 2 days of debugging and trying I have no other idea than asking you for a solution. I want to …

tomcat jakarta-ee cdi jboss-weld
CDI - what is the correct bean.xml format?

I have a question about the correct format and usage of the bean.xml file. In my projects I typically …

java glassfish cdi jboss-weld
javax.el.PropertyNotFoundException: Target Unreachable, identifier 'registerBean' resolved to null

I am trying to implement a sign up page on Tomcat server, but the backing bean isn't created, when I …

jsf tomcat cdi propertynotfoundexception