MODULE EVALUATION CRITERIA
Assessment Type Marks
RPL 5
Assessment 01 (In Class) 15
Assessment 02 (Exam) 30
Assessment 03 (Project) 50
Total 100
1. Eclipse IDE
2. Introduction to Enterprise Application
Development
3. JSP Servlets & EJB
4. Spring framework
5. RESTful API
6. Microservices
❑ An enterprise application is a big business application.
❑ Properties of enterprise application are,
✓ large-scale, multi-tiered
✓ scalable, reliable,
✓ secure network applications
❑ Enterprise applications are designed to solve the problems encountered by large enterprises.
❑ Java EE platform is designed to help developers create enterprise applications.
A. Enterprise Resource Planning (ERP)
B. Customer Relationships Management (CRM)
C. Supply Chain Management (SCM)
D. Human Resources Management (HRM)
E. All are enterprise applications
✓ large-scale, multi-tiered
✓ scalable, reliable,
✓ secure network applications
Answer is E
❑ A basic web app with input forms, data grid
❑ Database functions – create, read, update and delete
❑ An app of you own design
❑ Java Platform, Standard Edition (Java SE)
❑ Java Platform, Enterprise Edition (Java EE)
❑ Java Platform, Micro Edition (Java ME)
❑ JavaFX
❑ Java is both a programing language and a platform (Java SE)
❑ Java is an OOP language used to make varies kind of apps.
❑ Java EE / JEE / J2EE Stand for Java Enterprise Edition
❑ Build on top of Java SE platform
❑ Provide API and Environment to Develop Large, Scalable, Secure network applications (web
apps)
❑ Just a specification https://javaee.github.io/javaee-spec/
❑ As a developer, should use JEE products to build JEE applications.
❑ Enterprise java is a specification that is
implemented by different companies.
❑ We will be using TomEE by Apache
Software Foundation.
1. Java SE
❑ Loops, data types, conditions, object-oriented design, classes, inheritance, interfaces, generics,
Jasper reports
2. HTML CSS and Java Scripts
❑ <body>, <ul>, <a href=“#”>, <div>, <span>, <td>, <tr>
❑ border-radius, padding, margin, #FFFFFF, float:left
❑ <script></script>
❑ You are required to develop a java console application to manage water bills of customers
in a particular city. The application is consisting of the following classes. Each class has
attributes and you are requested to use suitable method as required. The Employees of the
water board performs following operations. Keep main method class separate and use it to
call the following functionalities.
Class: Customer Attributes: customer id, number of units used in the month
Class: Water Bill Attributes: unit price, discount rate, final bill amount
Class: Employee Attributes: employee id
i. Set the unit price of the water bill.
ii. Set the discount rate (%) of the water bill.
iii. Set the employee ID.
iv. Set the customer ID.
v. Calculate the final bill amount of a given month.
vi. Output the final bill amount of the customer for a given month.
❑ Java Virtual Machine (JVM) interprets the byte code into the machine code depending
upon the underlying operating system and hardware combination.
❑ JVM does not know anything about Java program rather it reads the bytecode, interprets
the code and executes the code.
❑ JVM is platform dependent that means there are different implementation of JVM on
different OS. https://www.oracle.com/java/technologies/javase-jre8-downloads.html
❑ Java code / Bytecode is always the same on different Operating systems. That makes java
program as platform independent. “Write once, run anywhere”.
❑ Components of JVM,
▪ Class Loader
▪ Memory Management – Method Area, Heap, Stack, PC registers, JNI area
▪ Execution Engine – Interpreter, JIT compiler, JNI ( java native methods interface ), Garbage Collector
❑ Reads the class files or Bytecode and execute it line by line.
❑ The problem with the interpreter is that, when a method is called multiple times, it
interprets those lines of Bytecode again and again.
❑ Just in time (JIT) is a part of Java Virtual Machine (JVM) architecture.
❑ JIT compiler helps in overcoming the problem of the interpreter.
❑ When repeated method calls occur, JIT compiler compiles the Bytecode to native code.
❑ This native code will be used directly for repeated method calls.
❑ https://www.youtube.com/watch?v=G1ubVOl9IBw
❑ https://www.youtube.com/watch?v=QHIWkwxs0AI
❑ Java Runtime Environment (JRE) is a software which we can download and install on the
any operating system like Windows, Mac or Linux.
❑ JRE is combination of JVM and Java Application Programming Interface (Java API).
❑ https://www.oracle.com/java/technologies/javase-jre8-downloads.html
❑ Java Development Kit (JDK) is a set of development tools installed on the local machine to
write and compile Java programs.
❑ JDK = JRE + Java Development Tools + Libraries
❑ https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
❑ Short for Java Enterprise Edition.
❑ J2EE is a platform-independent, Java-centric environment for developing, building and
deploying Web-based enterprise applications online.
❑ The J2EE platform consists of a set of services, APIs, and protocols that provide the
functionality for developing multi-tiered, Web-based applications.
❑ The Java EE platform is built on top of the Java SE platform.
Java EE 8
New:
❑ JSON-B
❑EE Security API
Updates: Jakarta® EE
❑ CDI 2.0
❑ JAX-RS 2.1
❑ Servlet 4.0
❑ Bean Validation
2.0
❑ JSON-P and JSF
August 2017 February 2018
❑ The Java EE platform uses a
distributed multi tiered
application model for
enterprise applications.
❑ Application logic is divided
into components according
to function
❑ The application
components that make up
a Java EE application are
installed on various
machines depending on
the tier in the Multi-tiered
Java EE environment to
which the application
component belongs.
❑ A computer that runs a Server Software can said to be a
SERVER.
❑ In simple terms we can say that
A Server is a high performance computer that runs a Server
Software
that accepts & respond to requests generated by another
program/machine(i.e. client)
Examples to Server Software are,
❑ Windows Server
❑ Ubuntu
❑ CentOS
❑ etc…
❑ According to their function, we can type them as,
▪ FTP servers
▪ Application Server
▪ Web Server
▪ Online Game Sever
▪ Mail Server
▪ Chat Server
❑ Web Server is a IT (Information Technology) component that processes user requests via
HTTP( Hypertext Transfer Protocol).
❑ A Web Server
▪ Stores, process And deliver Web page to client.
▪ Web Server works as
Receive request from client → generate response → send response to client
HTTP Request
HTTP Response
C lient Web Server
1) A user agent initiates the communication by sending a HTTP request for the specific
resource,
2) Server processes the user request ,Search the requested content in its database(in
documents and files)
3) And responds with the content of that resource or an error message if unable to do so.
Most popular web Servers are: Apache Http Server (tomcat),Microsoft IIS (Internet
Information Server) , Jigsaw Server
❑ Application Server is
▪ a server program in a computer in distributed network system
▪ that provides business logic for an application program
▪ Business logics are business rules that determine,
how data can be created, displayed, stored, and changed.
▪ Java EE use Enterprise Java Beans to handle business logic
HTTP Request Servlet Request
SQL Query
HTTP Response Servlet Response
Database
Database Server
Client Web Server Application Server
❑ Application server is the Superior server because it is capable to handle the Web Server
functions too.
i.e. Every Application Server has a inbuilt Web Server in it.
HTML
JSP
SERVLETS
HTML
+
JSP
EJB
SERVLETS etc.
JMS
etc.
Web Server Application Server
❑ A Java EE server is a server application that implements the
Java EE platform APIs and provides standard Java EE
services.
❑ Java EE servers are sometimes called application servers,
because they allow you to serve application data to clients,
much as web servers serve web pages to web browsers.
❑ Java EE servers host several application component types
like Servlet, JSP,EJB.
❑ The Java EE server provides services to these components
in the form of a container.
❑ Java EE containers are the interface between the
component and the lower-level functionality provided by
the platform to support that component.
❑ Nonetheless, the server allows the different component
types to work together to provide functionality in an
enterprise application.
❑ Java EE server: The runtime portion of a Java EE product.
▪ A Java EE server provides EJB and web containers.
❑ EJB container: Manages the execution of enterprise beans for Java EE applications.
Enterprise beans and their container run on the Java EE server.
❑ Web container: Manages the execution of web pages, servlets, and some EJB components
for Java EE applications. Web components and their container run on the Java EE server.
❑ Application client container: Manages the execution of application client components.
Application clients and their container run on the client.
❑ Applet container: Manages the execution of applets. Consists of a web browser and a Java
Plug-in running on the client together.
Develop components for
Develop • Persistence (Entities)
• Business Logic (EJBs)
• Presentation (JSF, XHTML)
• Configure/Prepare deployment descriptors
Build Build Components in packages (JARs, WARs, EARs)
Deploy Deploy packages on Container (J2EE Server)
❑ Java Persistence API (JPA)
❑ Enterprise Java Beans (EJB)
❑ eXtended Markup Language (XML)
❑ Java Server Faces (JSF)
❑ eXtensible HyperText Markup Language(XHTML)