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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:42:48+00:00 2026-06-05T01:42:48+00:00

We have a product in which the UI is packaged as a separate WAR

  • 0

We have a product in which the UI is packaged as a separate WAR and server is packaged as a separate WAR file. Right now both these WARs are deployed in the same app container. Below are the pros and cons of this approach that i have found:

Pros of having different wars:
1. I feel having two different WARs allows me the flexibility of refactoring either UI or server side code without affecting the other.
2. To maximize memory usage, i can deploy it in two different containers. so if earlier i was using 2 GB for the entire jboss (say i am using jboss), now i can potentially use 4 gb if deployed in two
different jboss app servers (ofcourse different port no.)
3. I can scale my application. If tomorrow, i see that server is my bottleneck, then i could create a server farm,(for my server module only), since the server itself is a different WAR, without bothering about UI WAR.
4. Loosely coupled and gives me various integrations points

Cons:
1. For UI, i use primefaces. i do not see a use case where i could see an integration framework like seam adding value. Can someone tell me if having an integration framework would make sense
for my UI war? Basically, the whole fun of seam, is the wonderful integration that its provides with UI, EJB among other stuff. Therefore, i do not see too much value here because my form would ask the rest API to do all the processing.

Can someone tell me if having multiple wars actually help in scalability and maintenance. e.g.,one benefit that i see is that if i have two wars and i need to upgrade server platform, i do not need to bring down my UI. Any other benefit apart from what i have listed above?

Also, i want to understand if everything is packaged as an EAR, how would you scale specific layers of our architecture. As mentioned above, if i feel server layer is the bottleneck, in case of one WAR/EAR, how would i scale my application?

I am still not sure if i need to carry on with my model of different WARs in different application servers, or should i have just one WAR for my entire application? Please guide…

  • 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-05T01:42:49+00:00Added an answer on June 5, 2026 at 1:42 am

    If you backend if independent and you comunicate with client using some REST or SOAP web service – this is good. Try to imagine that tommorow you drop your client with java and create other one with .NET. Does backend need some changes? If not – this is good. If yes – I think it does not coast to have 2 wars.

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

Sidebar

Related Questions

I have a product table which simplifies to this: create table product(id int primary
I have an entity Product which has relationship category, which is optional, and use
I have a field 'Description' which can have product descriptions with any unicode characters.
I have entity e.g. Product which aggregates other entities such as Category . Those
Lets assume I have the following 3 entities: Customer,Order,Product which interact in the View
We have a web portal product from which we customize portals from customers. We
I have a custom block (tabbed product info) which I want to display in
I have a Product Class, Which has three fields:- id name price In my
I have to develop a online product catalog which will eventually developed into a
I have a single product table with multiple fields which contain user evaluations of

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.