GeeCON Prague 2014*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Difference between Enterprise and simple Web app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Difference between Enterprise and simple Web app" Watch "Difference between Enterprise and simple Web app" New topic
Author

Difference between Enterprise and simple Web app

Vishwanath Balaji
Greenhorn

Joined: Jul 16, 2005
Posts: 19
I am trying to understand the exact difference between an "Enterprise applicaton" and a "Simple Web application". I could not get enough info on the net.
As per my understanding:
  • J2EE Enterprise application involves several web applications which are inter-dependent and work as a whole.

  • (In short it is a J2EE application which has multiple WARs).
  • Simple J2EE Web application contains the deployment of a single independent WAR.



  • Please put some comments on this.


    SCJP 1.4
    Kuppusamy Venkatasubramanian
    Ranch Hand

    Joined: Dec 30, 2004
    Posts: 91
    Hi,

    An enterprise application will contain enterprise beans(session/entity beans) and will run in a J2EE Container which provides transaction and security services to the beans and it will be named as .ear file. Whereas a web appliaction executes in a web-container like tomcat, contains servlets/jsps alone and named with an extension of .war.

    SAM..


    SCJP1.4, SCBCD 1.3, SCWCD 1.4, SCEA 5, JLPT-N3
    My Blog
    Satish Chandra
    Greenhorn

    Joined: Jan 06, 2005
    Posts: 1
    Hi,

    An Enterprise application runs in a Special container called enterprise container which have special features like JMS,Transaction etc. This containers can also handles web application.
    Eg : Bea Weblogic, IBM WebSphere, Oracle IAS, JBOSS etc.

    Web application runs in web container. This containers won't have special fetaures like transaction, JMS etc..
    Eg : Tomcat,JavaWebserver


    Satish
    Vishwanath Balaji
    Greenhorn

    Joined: Jul 16, 2005
    Posts: 19
    This is helpful.
    Umesh Adtani
    Greenhorn

    Joined: Nov 09, 2005
    Posts: 5
    Also from high level standpoint, enterprise application is usually divided into more than one tiers, not just 'one container' and 'browser'. The business services etc stuff lives in it's own container across more than one physical boxes potientially. The services that look up these business services could be deployed and running on seperate boxes. The whole infrastructure that keeps various tiers running is usually distributed all over the physical boxes.

    A simple web application mainly has a server side container and thats pretty much it. JSP's HTMLs, Servlets, css everything packaged on a box is a typical small web-application. You could run this simple app on multiple boxes but still it can't be called enterprize app because logical architecture of the app still remains same - a server side container responding to browser requests. You could call backend database a 'tier' but still it doesn't have that largely distributed nature of services running under different tiers of the infrastructure.
    Vishwanath Balaji
    Greenhorn

    Joined: Jul 16, 2005
    Posts: 19
    Hi Umesh,

    You mean EJB container may be a distributed one ?
    Could you please elaborate this ?
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
     
    subject: Difference between Enterprise and simple Web app