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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:36:59+00:00 2026-05-28T01:36:59+00:00

I have to plan this big client-server app, communicating through EJB(2.1). -The server serving

  • 0

I have to plan this big client-server app, communicating through EJB(2.1).

-The server serving these thousands (potentially tens of thousands) of clients is in one central place, and has 2 working threads.

-The EJB would basically serve back lists of tens-hundreds of not that huge DTO‘s (up to 10 primitive data / String fields ).

-The users’s ID matters (the database queries do take into account the ID of the user)

I want to know what would be the best type of bean to use (even at first sight) in such an environment, meaning Stateless-Session, Stateful-Session, Entity or Message-Driven.

I’m thinking about possibly using a cache of Stateless-Session beans, seems less object creation-destruction and server resources, but i’m no expert.

If anyone has any expertise on this, i’d be really grateful.

Thx,
you guys rule

  • 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-28T01:37:00+00:00Added an answer on May 28, 2026 at 1:37 am

    I believe you should start off with better understanding of the EJB types and EJB’s containers/pooling mechanism in the first place.
    To run your ejb’s you would need a proper j2ee container which manages its own pools of beans (configurable) and you don’t specify in how many threads it should be invoked.

    The specific EJB choice depends on how do you want to serve your data (synchronously or async. – stateless ejb or mdbs). Should the client-server interaction include session state – statefull ejb.

    If its a new project and you are designing it from scratch why ejb 2.1 instead of 3.0+, for the database end consider using NoSql solution.

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

Sidebar

Related Questions

We have a daily maintenance plan in SQL Server 2005 that performs a full
I have a Django app written in Python 2.5 and I plan to upgrade
We have rather Big machine 100GB+ memory and 8+ cores in it. Server wide
I plan to have 2 projects. 1. mbtech.crm.mvc 2. mbtech.crm.tests I will have a
I would like to install Jobberbase in my website. I have a hosting plan
I have a constant value that I only plan to use once in my
If I plan to use data caching do I have to worry about conflicts
Do you plan on using Factor ? Have you looked at it? Checked it
I have an abstract user control(baseModule) that has a property that I plan on
I have ported some LGPL code from Java to C#, which I plan to

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.