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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:45:53+00:00 2026-06-10T07:45:53+00:00

The project I am working with uses JSF + Spring + Hibernate. This is

  • 0

The project I am working with uses JSF + Spring + Hibernate.

This is a design question that I have often been confused about.

I currently inherited a project that contains a dao -> service -> view -> controller “layered” approach.

The “Controller” layer / tier? currently has all logic and objects that interact with the front end. I have been told that it is good practice to separate this into two layers/tiers, where the “Controller” layer/tier only contains methods/objects that interact with the front end and a second layer (bm?) that contains all business logic used by the controller.

1st.) What would the purpose be of dividing up the controller in such a way?

2nd.) Is there anything wrong with leaving it the way it currently is?

  • 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-10T07:45:54+00:00Added an answer on June 10, 2026 at 7:45 am

    1st.) What would the purpose be of dividing up the controller in such a way?

    You must handle the business logic in Service Layer. Benefits of separating the business entities from Controller/UI Layer :

    1. You can reuse the business entities with another client sections. Example : if you are developing a web based application as UI, later you also developed a Desktop UI. In this case you can reuse your Business Layer operations with multiple UIs. You can also use business layer to work as a web service.
    2. Decoupled business operations are easier to manage. If someone from development team has no idea how UI code works and only wants to correct some business logic, he can does.

    2nd.) Is there anything wrong with leaving it the way it currently is?

    If you are new to Layered Architecture it will take some time to understand and implement the desired layers. It depends on time frame and application requirements. If you are planning to use the above points in your application go with layered architecture otherwise go with current implementation.

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

Sidebar

Related Questions

A project I am working on uses Spring 2.5 & JPA with Hibernate as
I have a large-ish project that I'm working on which uses git as the
I have some PHP code in a project I'm working on that uses PHP's
I am working on project that uses this pattern var businessEntity = new DAL().GetObject(id);
I have a project that I'm working that uses XSLT to display data from
I have an existing project that i'm working on that uses .net membership. We
I am working on a project in C++ that uses self created maps to
I am working with a C# project that uses the dll, Microsoft.Dynamics.AX.ManagedInterop to work
I'm working on an embedded project that currently uses C in Linux and uClibc.
I am working on a Silverlight project that uses Django on the server using

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.