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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:57:35+00:00 2026-06-05T12:57:35+00:00

I have inherited an app which is packaged as ear file that has inside

  • 0

I have inherited an app which is packaged as ear file that has inside

 - ear :
        -APP-INF/lib (persitence.jar - hibernate+spring ... etc)
        -war (web-services)
        -jar (mdb)
        -jar (mdb)

As I studied the app noticed that each module has inside the jar creates it’s own Spring application context that is loaded on runtime.

It works ok but it would not be better to have only one application context ?
I wonder what are the benefits and drawback which this structure compared to the one where it is only an single application context used ?

To be more clear on runtime there are 3 application context roots loaded.It is not only that there are more application context files

Thanks

  • 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-05T12:57:36+00:00Added an answer on June 5, 2026 at 12:57 pm

    first of all: are you sure it isn’t the same application context everywhere ? have you tested this ?

    if they are all seperate:
    the advantage is that those application contexts are shielded from eachother, which you could call loose coupling, which is a good thing; one can’t influence the other, it keeps things clearer for the programmer.
    the disadvantage is, it might be harder to access one application context from the other, but you can always find a way around this.

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

Sidebar

Related Questions

I have inherited a Grails app, which uses the Acegi 0.5.3 plugin. The application
I have inherited some code that isn't quite working ... I have jsp which
I have inherited a WCF service which acts as a file cache (each file
I have inherited an app that generates a large array for every user that
The legacy web app I have inherited, which was custom-written for Oxfam New Zealand
I have my own inherited App.Controller from Mvc.Controller which then all of my controllers
I have inherited a C# web app (and web services) which is being compiled
I have inherited a half-finished mobile app built using Backbone.js (which I have never
I'm brand new to rails, and have inherited an app I'm trying to make
In my iPad App, I have one custom class inherited from UIButton. I am

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.