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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:51:12+00:00 2026-06-03T02:51:12+00:00

As shown in the above pic, I have a EJB-3 Enterprise application (EAR file),

  • 0

enter image description here

As shown in the above pic, I have a EJB-3 Enterprise application (EAR file), which acts as a portal and holds 3 web applications (WAR files) that communicate and transact with the same datastore. These 3 webapps are not portlet implementations, but normal webapps which interact with the datastore through the Enterprise App’s Persistence Layer. These webapps are developed independently and so, some of ’em use Webservices from the Enterprise App and some of ’em use EJB-Clients.

Also, there is an other option of replacing these webapps (Web App1, Web App2 and Web App3) and using independent Enterprise Apps to communicate and transact with the database, as shown below:

enter image description here

Now, my questions are:

1) What is the best Option among the listed 2 options (above)?

2) How does it affect when we replace those webapps acting as clients to the Enterprise App, as independent Enterprise Apps (EAR files)?

3) What is a better model for Transaction handling, SSO functionality, Scalability and other factors?

4) Are there are any other better models?

EDIT:

1) In the first model, which method is a preferred way to interact with the EAR file – webservices or ejb-client jar file/library (interfaces and utility classes)?

2) How do both models differ in memory usage (server RAM) and performance. Is there any considerable difference?

  • 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-03T02:51:13+00:00Added an answer on June 3, 2026 at 2:51 am

    Since you are being so abstract I will do it as well. If we remove all buzzy words as “Portal”, “Enterprise Apps” and so on… What we have at the end is three web apps and a common library or framework (The enterprise App).

    Seeing its app as simple as posible. You have three developers that need develop three web apps. You will provide some common code useful to build their apps. The model you will use will depends of what kind of code you will provide them.

    1.- You will only provide some utils, and common business code. May be the clasical library fit your needs. (In Java EE environments you must take in account how can you take the advantages of persistence cache level 2 sharing a Session Factory for a single datastore)

    2.- You will provide shared services as persistence, cache, security, audit, and so on… You will need a service layer as the first option. You will have a shared state so you need only one instance.

    3.- The more common case is both you provide some business API and a service layer to common services.

    You aren’t indicating any requirement that force you to use a more complex solution for your scenario.

    EDIT:

    About if it is prefered rmi (the ejb-client) or webservices. I always use rmi to communicate applications geographically close. It use is simple and the protocol is much more faster that webservices (you can read a lot of comparison over this topic searching for rmi webservices performance on google).
    On the other hand rmi is more sensible to network latence, require special firewall configurations and it is more coupled that webservices. So if I pretend to offer services to a third party or connect geographically sparse servers I will prefer webservices or even REST.

    About the last question initially there is no any difference about deploy one or ten applications in the same server. The deploy fee will be insignificant over the overhead for the use of the application. Of course, you must take this as a generical assumption. Obviously the size and how you deploy your applications will have an impact about the memory consumption and others.

    You must take in account that this decisions can be easily changed as you will needed. So as I said you could start with the simple solution and if you encounter a problem deploying your applications your could restructure your ears easily.

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

Sidebar

Related Questions

Suppose multiple Modal Windows shown above each other. All of those have ShowInTaskbar =
I want to achieve was is shown on the picture above. I have a
I have 2 divs above each others, at a given moment one is shown
context in the application Lokalize http://www3.pic-upload.de/24.06.10/ycpxjk6ikvxz.png All I see is just the file name
above is part of code from myclass. I have class GetPhoto and as shown
I am working on an application that displays the Stack View as shown above
Hi, I have Table1 as shown above with some records on it and the
I have an .xml file which contains this: <a:xfrm> <a:off x=381000 y=152400/> <a:ext cx=2124075
I have a Array of Values as shown above . myarray2.push(10-FEB-11); myarray2.push(11-FEB-11); myarray2.push(12-FEB-11); myarray2.push(13-FEB-11);
Hello, I have an image as shown above. Is it possible for me 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.