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 5985009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:27:55+00:00 2026-05-22T22:27:55+00:00

We are using Glassfish3.1, MySQL 5.5, JSF2, Servlet3. About the application – It’s a

  • 0

We are using Glassfish3.1, MySQL 5.5, JSF2, Servlet3.

About the application –
It’s a dashboard application, where users are not going to enter or modify any data.
It’s going to have a lot of charts, some static and some dynamic (live).

In this case, what will be the best way to get the data from the database?

Specially for the live charts, is it good enough to use Servlet and EntityManager only?
Are the transactions, and EJBs required in this case?

  • 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-22T22:27:56+00:00Added an answer on May 22, 2026 at 10:27 pm

    In JSF 2.0, there should be no need for servlets anymore. It are the managed beans which counts. You should definitely use JPA 2.0 for the database access stuff (the EntityManager as you say it yourself). Whether to use EJB or not depends on the size of the application. If it’s small with no or very few shared business components, then EJB is maybe overkill. But other than that, you should definitely use EJB. The EJB should then in turn exclusively utilize the EntityManager and the managed beans should exclusively use the EJB.

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

Sidebar

Related Questions

I'm developing a JSF2 application using Glassfish which contains some EJB's; is there a
I have a hello-world style java ee application using maven3 glassfish3 and javaee6. I
We deploy web services implemented by using the CXF framework on the Glassfish application
I am using Glassfish 3.1.1 and hibernate 3.6.5 with MySQL 5.1 + mysql-connector-java-5.1.6 Intermittently
I have created a login page using a nice guide that I found about
We are using Glassfish v2 (9.1_02) at work. Our servers are not set up
I'm doing my first Java EE web application using glassfish and netbeans. When I
I'm using JPA (Hibernate as provider), Glassfish and MySQL. Everything works great in development,
I am using Netbeans 6.9.1, glassfish 3.1, and MySQL as my DB. I have
I m using glassfish v2 and persistence in a web application. I m calling

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.