Top "Jboss-weld" questions

Weld is the reference implementation (RI) for JSR-299: Java Contexts and Dependency Injection for the Java EE platform (CDI)

JSF 2.0: use Enum values for selectOneMenu

I'm using JSF 2.0 and want to fill a selectOneMenu with the values of my Enum. A simple example: // Sample Enum …

jsf jakarta-ee jsf-2 jboss-weld
Maven Eclipse Debug "JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)"

I'm trying to debug Maven tests in Eclipse. When I launch tests with the maven option maven.surefire.debug, I …

java eclipse debugging maven jboss-weld
WELD-000072 Managed bean declaring a passivating scope must be passivation capable

I wrote a simple program in java web forms but i am receiving the following error: WELD-000072 Managed bean declaring …

java cdi jboss-weld
CDI: beans.xml, where do I put you?

I am using Weld as CDI implementation. My integration test, that tries to assemble object graph instantiating Weld container works …

java jakarta-ee maven cdi jboss-weld
CDI Ambiguous dependencies

I have a @SessionScoped @Named bean with a @Producer method for a user object: @Named @SessionScoped public class UserBean implements …

java cdi jboss-weld
CDI injection is not working in Servlets

I really need your help. I'm working on this problem for weeks or months now. I apologize for the long …

jakarta-ee servlets jetty cdi jboss-weld
How to use CDI for method parameter injection?

Is it possible to use CDI to inject parameters into method calls? The expected behaviour would be similar to field …

java dependency-injection cdi jboss-weld
How to programmatically inject a Java CDI managed bean into a local variable in a (static) method

How can I programmatically inject a Java CDI 1.1+ managed bean into a local variable in a static method?

java dependency-injection cdi jboss-weld weld
Are @ManagedBeans obsolete in JavaEE6 because of @Named in CDI/Weld?

Because of CDI (and its implementation Weld), every POJO in JEE6 can be annotated with @Named, which makes the POJO …

jsf jakarta-ee jsf-2 jboss-weld
Google Guice vs. JSR-299 CDI / Weld

Weld, the JSR-299 Contexts and Dependency Injection reference implementation, considers itself as a kind of successor of Spring and Guice. …

java dependency-injection aop cdi jboss-weld