Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6685453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:03:34+00:00 2026-05-26T05:03:34+00:00

I have a Tomcat 6 JSF web application that I’d like to set up

  • 0

I have a Tomcat 6 JSF web application that I’d like to set up with CDI beans. I will have to convert the project to CDI gradually though.

My question is: can CDI beans and traditional JSF managed beans be injected into each other?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:03:34+00:00Added an answer on May 26, 2026 at 5:03 am

    All JSF managed beans (JMB) either are CDI managed beans (CMB) automatically, or can be recognized as such using the beans.xml marker file. (The requirements of a CMB are set very low and basically just dictate the existence of a non-parameter constructor.)

    This means that you should be able to use (read: inject) all JMBs with almost no extra effort.

    However, problems will arise because JMBs use different scopes than CMBs (javax.faces.* vs. javax.enterprise.*)

    These are best solved by registering a relative simple CDI-extension: When the CDI server (Tomcat for you) starts, it will raise a couple of events that you can observe – this is be the place where you can detect JMBs and convert them into correctly scoped CMBs.

    But before you start hacking: All this has already been done by the Seam 3 Faces module. Simply put it in your classpath, and all JSF-scopes are bridged to CDI-scopes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have a Tomcat and a web application on it with index.html
i have developed an application using jsf 1.2. it worked fine with apache tomcat
I have developed a JSF 2.0 application and tested it on Apache Tomcat 6.0.
i have a jsf application running on tomcat 6.0 and somewhere in the app
I have tomcat 6.0.32 installed and running my web application on it. Usual stop/start
I have an issue that keeps arising with JSF 2 and Tomcat 7.0.0. When
I have a JSF Mojarra 2.0.3 app that was developed entirely on Tomcat 7
I have got a web application which is speparated in a GUI (JSF 2.0,
I have a JSF 2.0 application on Tomcat with many <h:inputText> fields to input
I have written an application that connects to a SSL web service (including client

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.