1 of 18

JEE BASICS

Faculty Name: RAVULA KARTHEEK M.TECH, (PH. D)

For: III-B.TECH - AIML

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/

2 of 18

Index

  • Architecture of the Java EE Platform
  • The Many Variations of Java EE Applications - Real-Time Example
  • Packaging and Deploying the Java EE Application
  • Application Server - Real-Time Example
  • Application Server Architecture
  • Application Server Services
  • Popular Application Servers
  • Web Server
  • Web Application
  • Web Services

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/

3 of 18

Faculty Name: RAVULA KARTHEEK M.TECH, (PH. D)

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/

4 of 18

The Many Variations of Java EE Applications

  • Java EE (now Jakarta EE) applications can vary a lot:
    • Web Interface: The front-end can be JSP, Servlets, HTML, or modern frameworks.
    • Application Logic: Can be written using Servlets, EJBs, or frameworks like Spring.
    • Data Storage: Data may be in MySQL, Oracle, MongoDB, etc.
    • Interfacing: Apps can talk with external systems (APIs, legacy apps).
    • Modularity: Applications are broken into reusable modules.
    • Security: Java EE provides authentication, authorization, and encryption.

Faculty Name: RAVULA KARTHEEK M.TECH, (PH. D)

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/

5 of 18

  • Real-Time Example:�Consider IRCTC railway booking system.
    • Web interface = website/mobile app.
    • Logic = ticket booking, seat allocation.
    • Data storage = train schedules, passenger data in database.
    • External interface = Payment gateway, SMS service.
    • Modularity = different modules for booking, cancellation, refund.
    • Security = login, OTP verification, encrypted payments.

Faculty Name: RAVULA KARTHEEK M.TECH, (PH. D)

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/

6 of 18

Packaging and Deploying the Java EE Application

Web ARchive file (WAR

Faculty Name: RAVULA KARTHEEK M.TECH, (PH. D)

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/

7 of 18

Packaging and Deploying the Java EE Application

Enterprise Bean JAR

Faculty Name: RAVULA KARTHEEK M.TECH, (PH. D)

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/

8 of 18

Packaging and Deploying�the Java EE Application

Enterprise ARchive or EAR file

Faculty Name: RAVULA KARTHEEK M.TECH, (PH. D)

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/

9 of 18

Packaging and Deploying the Java EE Application

  • WAR File (Web ARchive):
    • Contains Servlets, JSPs, HTML, and images for web apps.
    • Example: An online shopping website’s front-end is packaged into a WAR file and deployed on Tomcat.
  • Enterprise Bean JAR:
    • Stores business logic (Enterprise Java Beans).
    • Example: A bank loan processing logic packaged as a JAR.
  • EAR File (Enterprise ARchive):
    • Combines WAR + JAR into one deployable file.
    • Example: A complete banking application with web (customer portal) + EJB (loan approval) + DB interaction packaged into EAR.

Faculty Name: RAVULA KARTHEEK M.TECH, (PH. D)

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/

10 of 18

Application Server

An application server is like the engine room of enterprise apps.

    • Runs web apps and enterprise apps.
    • Provides middleware (security, transaction management, clustering).
    • Connects to databases, manages sessions.

Faculty Name: RAVULA KARTHEEK M.TECH, (PH. D)

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/

11 of 18

  • Real-Time Example:�Suppose you use HDFC NetBanking:
    • Web server (Apache) handles HTTP requests.
    • Application server (WebLogic / JBoss) processes login, fund transfer logic.
    • Database server (Oracle DB) stores account data.

Faculty Name: RAVULA KARTHEEK M.TECH, (PH. D)

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/

12 of 18

Application Server Architecture

  • Client Tier: Browser/mobile app used by customers.
  • Middle Tier: J2EE Platform (Web Server + EJB Server). Handles business logic.
  • EIS Tier (Enterprise Information System): Database, files, existing enterprise apps.
  • Real-Time Example:�For Amazon:
    • Client tier = Amazon mobile app.
    • Middle tier = Business logic for orders, payments, recommendations.
    • EIS tier = Databases storing products, users, transactions.

Faculty Name: RAVULA KARTHEEK M.TECH, (PH. D)

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/

13 of 18

Faculty Name: RAVULA KARTHEEK M.TECH, (PH. D)

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/

14 of 18

Application Server Services

  • Application servers provide:
    • Dynamic Page Creation (Servlets/JSPs).
    • Clustering & Load Balancing (handling heavy traffic).
    • Failover Support (backup when a server crashes).
  • Real-Time Example:�On Flipkart Big Billion Day Sale, traffic is huge.
    • Application server clusters ensure load balancing.
    • If one server fails, another takes over.
    • Business logic (discount calculation, order tracking) still runs smoothly.

Faculty Name: RAVULA KARTHEEK M.TECH, (PH. D)

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/

15 of 18

Popular Application Servers

  • Open Source: JOnAS, WildFly (JBoss), Apache TomEE, Geronimo.
  • Commercial: Oracle WebLogic, IBM WebSphere.
  • Real-Time Example:
    • Many startups use WildFly (open-source) to cut costs.
    • Banks and government portals often use WebLogic/WebSphere for high security and reliability.

Faculty Name: RAVULA KARTHEEK M.TECH, (PH. D)

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/

16 of 18

Web Server

  • A web server:
    • Handles HTTP requests.
    • Delivers static content (HTML, CSS, JS, images).
    • Works with an application server for dynamic requests.
  • Real-Time Example:
    • Nginx or Apache web server delivers the static homepage of a university website.
    • If a student logs in, the request goes to the application server to fetch grades from DB.

Faculty Name: RAVULA KARTHEEK M.TECH, (PH. D)

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/

17 of 18

Web Application

  • Web application = program delivered via browser.
  • Stored on a server, accessed through Internet.
  • Real-Time Example:
    • Gmail is a web application. Runs in browser, but logic and data are stored in Google servers.

Faculty Name: RAVULA KARTHEEK M.TECH, (PH. D)

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/

18 of 18

Web Services

  • Web services allow different applications to communicate.
  • Uses XML, SOAP, WSDL, UDDI.
  • Platform independent.
  • Real-Time Example:
    • A .NET billing application can call a Java Web Service to fetch product prices.
    • Similarly, a Python app can consume a Java EE web service for authentication.

Faculty Name: RAVULA KARTHEEK M.TECH, (PH. D)

RAVULA KARTHEEK

https://ravulakartheek.blogspot.com/