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

  • SEARCH
  • Home
  • 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 8893205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:11:17+00:00 2026-06-14T23:11:17+00:00

I just migrated my web app from JSF managed beans to CDI managed beans,

  • 0

I just migrated my web app from JSF managed beans to CDI managed beans, and I specifically wanted Tomcat or TomEE Plus to be the container of choice, because of the great things I heard about ‘OpenWebBeans’. After deploying, configuring, and testing the TomEE 1.5+ / CDI-managed-beans web application, Full Page Refreshes are much much slower than Glassfish 3.1.2.2 / MyFaces 2.1.9 / JSF managed beans.

With Glassfish 3.1.2.2 / MyFaces 2.1.9 / JSF managed beans, full page refreshes only take 2 to 3 seconds.

With TomEE 1.5+ / CDI-managed-beans, full page refreshes take 5 to 10 seconds, and maybe even more than that at times. 🙁

Can you please tell me why is that?

Yesterday, prior to deploying the TomEE 1.5+ / CDI managed beans webapplication to the production server (Windows 2003 32-bit 4GB RAM and 1TB of diskspace), I read the following, which really did not answer my/this question at all:

glassfish v3 vs tomcat 7

I read that PPR is better on performance than FPR, but my session timeout/management implementation involved the following:

  1. LoginFilter (servlet filter)

  2. the following in h:head

meta http-equiv=”refresh” content=”#{session.maxInactiveInterval};url=pf_viewExpired.jsf”

Is CDI more (time) expensive than JSF managed beans, or is TomEE the container of choice for CDI? I know that JBoss (or Weld) is or has the reference implementation for CDI, so it may be best to consider JBoss/Weld.

Prior to completing the task of migrating from JSF-managed bean to CDI-managed bean (as well as migrating from Glassfish to TomEE), I had issues starting CDI-managed-bean web app on Glassfish/Weld.

Please answer the following questions above, and/or advise. 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-06-14T23:11:18+00:00Added an answer on June 14, 2026 at 11:11 pm

    As inidicated in the comments above, I am working with OpenEJB (TomEE) committers to resolve this issue. Personally, I feel the issue is possibly due to the following:

    1. CDI managed beans defined and referenced in the app
    2. Possible CDI cyclic references (which will possibly be resolved in CDI 1.1)
    3. A really large CDI @SessionScoped bean, which references/injects many other CDI beans to accomplish business logic (or tasks) within the app
    4. TomEE/OpenWebBeans (which is still under development)

    So, the answer remains to be determined. I opened the following OpenEJB JIRA for this issue (URL below). Feel free to watch this JIRA, if interested.

    TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

    UPDATE:

    Now, TomEE/CDI-managed-beans is performing just as well as Glassfish/JSF-managed-beans on the production server, because I recently did the following:

    1. replace frequently-used dynamic SQL with @entity named queries
    2. added query hints to JPA createQuery() and createNamedQuery()
    3. replaced frequently-used rendered=”#{EL expression}” with new facelets and ui:include src=”#{EL expression}”, since TomEE committers advised that rendered=”#{EL expression}” gets called 6 times.

    So, my TomEE/CDI-managed-beans is now running on production server and I’m monitoring performance and enduser reports/experience.

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

Sidebar

Related Questions

I just migrated one of my app from iOS to WP7. I found that
Just recently, I migrated from web 2.4 to web 3.0. One of the requirements
i have just migrated from a single web server environment to a multiwebserver environment
Just migrated my PHP web app to another server with a new db and
We just migrated from dbcp to tomcat jdbc connection pooling. We tried the system
I migrated my webapp from Tomcat 5.5 to Tomcat 6(.0.32). In that app there
We just recently migrated our web application from .NET 1.1 to .NET 2.0. The
I've just migrated from Tomcat to JBoss AS 7. So, I configured Mysql datasource
Just migrated ODP.NET 11.2 Release 4 from Devart DotConnect for Oracle http://www.devart.com/dotconnect/oracle/ but I
I just migrated from Windows to Mac OS X and have found theres no

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.