Integrate Weld CDI into a JSF 1.2 EJB Application on jboss 6 AS

Posted by ich-bin-drin on Stack Overflow See other posts from Stack Overflow or by ich-bin-drin
Published on 2011-02-18T17:26:17Z Indexed on 2011/02/19 23:25 UTC
Read the original article Hit count: 164

Filed under:


since two evenings i am trying to integrate weld CDI into an EJB 3.1 Application with JSF 1.2. I simply tried to call a with @Named annotated controller in an JSF page. The problem is, that no exception is thrown, when i deploy the project and also no exception is thrown when i call the page.

The simple example contains only:

The Controller:

import javax.inject.Named;

public class HelloWorldController {

    public HelloWorldController(){
        System.out.println("Hello World!");

    public String getMessage() {
        return "Hello Weld World";


And it's call:

<h1><h:outputText value="#{helloWorldController.message}" /></h1>


© Stack Overflow or respective owner

Related posts about ejb

Related posts about cdi