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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:30:42+00:00 2026-06-13T05:30:42+00:00

I have a dynamic web project that consumes fairly complex messages (delivered via a

  • 0

I have a dynamic web project that consumes fairly complex messages (delivered via a web service) processing the message data on the basis of message type. The application can process fifteen to twenty different message types. There are approximately forty different entity types that are persisted as part of the message processing.

As an alternative, it occurred to me that architecturally each message type could be processed by a separate EJB with one EJB receiving the messages. I assume that one of the concepts behind EJB’s is that they are targeted at a “single” function. Is this correct? Alternatively, how “complex” can the function of an EJB be? Could my entire application sit in a single all purpose EJB.

I guess, these questions are really just philosophical design questions but any comments / advice may help me to develop my understanding of application architecture.

  • 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-13T05:30:45+00:00Added an answer on June 13, 2026 at 5:30 am

    Your question is a little imprecise. There are certain things that an EJB shouldn’t do, such as creating new threads on its own (it has to use the Java EE framework to do that), but essentially EJBs can do whatever you make them do, and they are not necessarily targeted at a single function. There is also no inherent limit on complexity.

    Usually, an EJB is designed to perform business logic for a specific area in the application domain. You could make one EJB with multiple methods that each process a message type, or a separate EJB for each message type, or separate EJBs for groups of message types … the options are endless.

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

Sidebar

Related Questions

I have a dynamic web project (JSP) on Eclipse that runs on a tomcat
In my web application, I have a dynamic query that returns huge data to
I have a dynamic web project named Report that utilizes the default generation strategy
I have created dynamic web project. In that I have written one Java class
I have a small Dynamic web project in Eclipse gallileo that references another project.
I have a WCF app that consumes an asmx web service. I use the
I am new in flex.I have created dynamic web project. Run it. It accessible
I have created a dynamic web project in Eclipse, but when I set up
I have a basic web application (dynamic web project in eclipse) with an associated
I've created a Dynamic Web Project in Eclipse. I have 2 beans, 1 @Entity

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.