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.

How to inject a Session Bean into a Message Driven Bean?

I'm reasonably new to Java EE, so this might be stupid.. bear with me pls :D I would like to …

glassfish cdi java-ee-6 ejb-3.1 glassfish-3
How to create a modular JSF 2.0 application?

I have an application with a well defined interface. It uses CDI for resolution of the modules, (Specifically it uses …

java jsf-2 cdi jboss-weld modular
WFLYJPA0060: Transaction is required to perform this operation (either use a transaction or extended persistence context)

I losted many time try solve this issuer, but I am in the same place. I suspect that I mixed …

java jpa ejb cdi wildfly-9
How to inject a non-serializable class (like java.util.ResourceBundle) with Weld

I want to create a Producer that makes it possible to inject a java.util.ResourceBundle into any class in …

jakarta-ee java-ee-6 cdi jboss-weld
Pass Parameter to Instance of @Inject Bean

I am using CDI as injection framework, but I have found some limitations in its usage, and this is one …

java cdi
CDI: Using Interceptors across different modules / bean archives

My Java EE 6 application consists of a war and an ejb module packaged in ear file. I'm using CDI for …

jakarta-ee interceptor cdi ejb-3.1
Changing faces-config.xml from 2.2 to 2.3 causes javax.el.PropertyNotFoundException: Target Unreachable, identifier 'bean' resolved to null

Have the following code snippets: Bean: import javax.faces.view.ViewScoped; import javax.inject.Named; @Named(value = "directoryBean") @ViewScoped public …

jsf cdi faces-config propertynotfoundexception jsf-2.3
Package javax.enterprise.context missing in glassfish 4.1

In the new Glassfish 4.1 the package javax.enterprise.context containing annotation SessionScoped for instance is missing.

cdi glassfish-4
What is Weld, JSR-299?

I've found lots of tutorials showing Weld code samples, but not an introductory overview. Could you please suggest an introductory …

jakarta-ee java-ee-6 cdi jboss-weld
JEE6 @ApplicationScoped bean and concurrency

I need to write a bean that would act as a counter of how many times it was accessed. I'm …

java jakarta-ee concurrency cdi