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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:39:13+00:00 2026-06-13T17:39:13+00:00

When creating an enterprise Java EE application, part of the business logic like messaging

  • 0

When creating an enterprise Java EE application, part of the business logic like messaging (MDBs) has to be put inside the EJB module. However, there are some EJBs which can be placed inside either the EJB module or the web module. I know that separating modules allows the web tier and the business tier to be deployed in different machines. Thus, I would place my @Stateful shopping cart EJB in the web module. However, I cannot think of a standard criteria which can be applied to every piece of business logic, deciding where to put the EJBs enclosing them. Is there a guideline, standard or recommended practice for this?

  • 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-13T17:39:14+00:00Added an answer on June 13, 2026 at 5:39 pm

    This is what I’ve found out so far.

    The EJB module is supposed to enclose the core of the business logic for a large enterprise application. Web module, on the other hand, encloses a full-fledged web application which is supposed to take advantage of the business engine provided by the EJB module. Usually these modules are distributed among different servers for larger applications, and there are client applications (a Swing/JFX desktop application for instance) other than the web application which need to consume services provided by the core business logic which resides in EJB modules.

    In other words, one would put the business logic in a separate EJB module if:

    1. It is meant to be used by multiple web or desktop applications, or
    2. Scaling considerations may force the core business logic to be handled by separate servers

    In other cases, one may put his EJBs inside the web module and package the whole thing as a WAR file.

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

Sidebar

Related Questions

I work as part of a team creating an enterprise application that will be
I am creating a console application using Enterprise Library my code is something like
I am developing a Java EE enterprise application using NetBeans IDE. I can develop
The goal is creating a simple Java EE 6 application with EJBs deployed on
I am creating an enterprise level application, where there are different types of users.
creating a small web application to be deployed on Heroku, where we would like
What are the recommended steps for creating scalable web/enterprise applications in Java and .NET?
Team, I'm new to titanium. I'm working on creating enterprise application for iPhone. I
This is my first Java application I am creating (using Eclipse IDE) and the
I am creating an application for an huge enterprise , I came to know

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.