Why do we need Application Server in Java
Asked Answered
C

6

23

Why do we need Application Server in Java like JBoss or WebSphere. Is it possible that we develop large scale website only with Java (Apache Tomcat). Where thousand of user connect on site at a moment. An example is a website like b2b.

What is the cost of a Application Server? I will be thankful if you compare price among different application server and if there is any free version kindly highlight it.

Clock answered 11/11, 2010 at 9:50 Comment(6)
Apache Tomcat is a Servlet Container which is only one part of JEE and a Java Application Server. If you only need the servlet part of an Application Server, Apache Tomcat might be sufficient.Subside
@ZeissS: I think he asked why he need a full JEE server and if I could go with just an Servlet Container when building a web site with much traffic.Ochs
... if there is any free version kindly highlight it. You've mentioned one already, JBoss. GlassFish is another.Britney
@Clock please spend some time on search engines, just don't put a question for the sake of putting a question :)Kwangju
@Puspendu At this point a lot of the Google results actually point to this question.Kaela
@Kaela then try this: Why do we need Application Server in Java -stackoverflowKwangju
O
7

Application Servers are mostly used if you want to use advanced features like transaction management, hot code swapping and advanced persistence.

There are application servers that are open source. E.g. GlassFish and JBoss.

I don't think you need an application server for building a popular web site, you'll also be fine with a servlet container like Tomcat or Jetty.

Ochs answered 11/11, 2010 at 9:55 Comment(1)
we can third part libraries like spring for transaction management and persistence why do we need JBoss ?Uraeus
A
5

In short Application Servers provide you with few services like

  • Transaction Management
  • Load Balancing
  • Security
  • Threading

etc.

You have to take care of these things yourself in a Web Server.

There are few Open Source Application servers which are free of cost.

I have used Glassfish.

Ax answered 11/11, 2010 at 10:20 Comment(0)
C
5

Apart from answers given above, App Servers are required for EJBs.

Chassis answered 11/11, 2010 at 10:35 Comment(0)
T
3

You need Application Server as follow:

  1. It provides you useful services like automatic transaction,Authentication,Authorization,Lifecycle management.
  2. To remember large user data across pages using ejb's pertaining to a client.
  3. Load balance the user request and buisness logic.
  4. To interact with different Client UI like Java Swing,Browsers.
Turbot answered 11/11, 2010 at 9:57 Comment(0)
V
2

It is possible to handle the httpheaders yourself. We have done socket servers in java for 20 years. You do not need a container for java swing. Persistence can be done through databases or server side files unless you need real high speed stuff. I have yet to find a real requirement for an ejb except that some systems simply require them

Valentino answered 13/7, 2018 at 17:59 Comment(0)
R
1

This may be because jboss can provide better after-sales service, and jboss, etc. can provide operation and maintenance support, etc. This may be the reason why many large companies choose commercial versions of servers. But you must know that tomcat and netty are not bad. For example, many large B2B or C2C or B2C companies still use tomcat, such as Internet companies such as Alibaba. Choose a server

  • Operation and maintenance costs
  • Scalable costs
  • Server cost
Refit answered 22/2, 2020 at 15:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.