Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Javabeans The J2EE Architecture allows the programmers to divide their work into two major categories Business Logic Presentation

 
 

Share on Google+Share on Google+

The J2EE Architecture allows the programmers to divide their work into two major categories Business Logic Presentation

Advertisement
The J2EE Architecture allows the programmers to divide their work into two major categories Business Logic Presentation Logic J2EE Architecture The J2EE Architecture allows the programmers to divide their work into two major categories: Business

J2EE Architecture 

        

More J2EE Tutorials

The J2EE Architecture allows the programmers to divide their work into two major categories:

  • Business Logic

  • Presentation Logic

Presentation Logic:

Presentation Logic consists of all the program (JSP and Servlets), images and html files that are used to interact with the client. These files are archived into .war file. These files are installed on the web server and these interacts with the users.

Business Logic:

These are EJB applications which implements the business logic of the system and are archived into .jar file. Business logic runs on the application server.

These two types of archives are bundled into complete J2EE applications, and delivered as Enterprise Archive (EAR) file.

Let's took an example of form processing. In this example J2EE application could have and HTML form, which prompts the user to input the data, a servlet to receive the data from the form and process it, and also an Enterprise Bean to store the data in a database. In this example the HTML form and servlet are archived in a WAR file, and the Enterprise Java Bean is archived into JAR file. These two archive files (WAR and JAR) both are added to the EAR file, which is finally deployed on the server.
 

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: January 30, 2005

Related Tutorials

Discuss: The J2EE Architecture allows the programmers to divide their work into two major categories Business Logic Presentation  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:2
Anand
October 11, 2011
Ejb Tutorial

These tutorials are very usefull to learn the technology... i think it will be good if you add sample IDE screen shots to look..so that anyone can practices simultaneously... thanx..
venkat
July 1, 2012
ejb

good
DMCA.com