SlideShare a Scribd company logo
1 of 17
ADVANCED JAVA
Presented by
Shashi Kumar Singh
Roll no-1150986
Submitted to:
Department of CSE
RIMT-IET ,Mandi
Gobindgarh punjab
JEE(java enterprise edition)
• It is not a installable software.
• It is a set of software specifications to develop
web server/application server.
• Working with JEE module is nothing but working
with web server or application server.
• In Advanced java software training we study one
JSE technology(JDBC) and two JEE
technology(SERVLET, JSP).
Java Web Servers in IT market
• Tomcat- From Apache.
• Resin- From Resin soft.
• JWS(java web server)-From Sun MS.
• Jetty-From Adobe.
Java Application Servers
• Weblogic-From BEA(Oracle).
• Websphere-From IBM
• Glassfish-From Oracle Corp.
• Oracle 10g AS-From Oracle Corp.
• Jboss- Initially from Apache but now under Red
Hat.
• Jrun-From Adobe.
• PAS- It is developed by Indian vendor company
called Pramathi software solution,Hyderabad.
JDBC
• It is a JSE persistence technology can be used to
write persistence logic performing persistence
operation on persistence data of persistence
store. Its latest version is
4.x.
• Jdbc 4.x important api package are:
 java.sql
 javax.sql
 javax.sql.rowset
Sun microsystems
Jdbc technology contains rules and guidelines
to develop JDBC drivers
JDBC driver for
Oracle
JDBC driver for
mysql
JDBC driver for
postgresql
Servlet
• Servlet is a java web technology that
allows to develop single instance multiple
thread based server side web components
in java web application.
• Servlet is JEE technology given by sun
microsystems having set of rules and
guidelines to develop container.
• Servlet is used to develop enterprise
application that means web application and
distributed application.
Servlet API 3.0 important packages
• java.servlet
• javax.servlet.http
• javax.servlet.annotation
• javax.servlet.jsp
Web deployment directory
Example
TestApp(web application)
WEB-INF
test.html classes
Test.jsp TestSrv.java
web.xml com.rimt
TestSrv.class
• To send “hyper text” from browser to
server and server to browser we use
protocol http.
• The text that allows non-sequential access
is called hyper text.
• The latest version of protocol http is 1.1.
Protocol Http
The Data carries along with
request(taken as hhpp)
h-http request method(GET,POST etc).
h-http request header(user- agent, accept etc).
p-path of resource(/TestApp/test.html).
p-request params (sno=101&sname=raja).
The Data carries along with
response(taken as SCH)
S-http response status code(100-599).
C-response content(the message of
pw.println(-)method)
H-response hesders(refresh, contextType etc).
Http request with detailed data
• Post
• /TestApp/test.html Misc Info
• Accept: text/html, text/xml
Host: www.rimt.ac.in
user-agent: mozila
Accept-language: un-us
Accept-encoding: gzip Request Headers
Keep-alive:300
Connection: keep-alive
<<<<<<<<<<<<<<<blank line <<<<<<<<<<<<<<<<<<<<<<<<<<
user=raja & pwd= hyd request body/payload/form data
JSP
• It is a Sun microsystems supplied
java based web technology that allows
to develop tag based web resource in
java web application having capability
to generate dynamic web pages.
• Now days in real time project JSP is
used to write view layer presentation
logic
• Internally for every jsp an equivalent JES(jsp
equivalent servlet) class will be generated by jsp
page compiler and the container JASPER uses the
support of servlet container CATALINA to execute
the JES class.
Jsp Life Cycle Convenience
• jspInit(): for instantiation event
• _jspService(-,-): for request arrival event
• jspDestroy(): fro destruction event
JSP Internals
Conclusion
In Real time MVC 2 Based enterprise
application
• JSP is used as presentation logic(view
layer)
• Servlet is used for controller
logic(controller layer)
• JDBC is used for persistence logic
using the help of java class.(model
layer)
Thank you!

More Related Content

What's hot

Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
Tech_MX
 

What's hot (20)

This keyword in java
This keyword in javaThis keyword in java
This keyword in java
 
JDBC – Java Database Connectivity
JDBC – Java Database ConnectivityJDBC – Java Database Connectivity
JDBC – Java Database Connectivity
 
Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
 
Servlets
ServletsServlets
Servlets
 
Java
JavaJava
Java
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 
WEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web DevelopmentWEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web Development
 
Servlet life cycle
Servlet life cycleServlet life cycle
Servlet life cycle
 
Strings in Java
Strings in JavaStrings in Java
Strings in Java
 
Json
JsonJson
Json
 
Client & server side scripting
Client & server side scriptingClient & server side scripting
Client & server side scripting
 
ASP.NET Lecture 1
ASP.NET Lecture 1ASP.NET Lecture 1
ASP.NET Lecture 1
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
 
Arrays in Java
Arrays in JavaArrays in Java
Arrays in Java
 
Html form tag
Html form tagHtml form tag
Html form tag
 
php
phpphp
php
 
screen output and keyboard input in js
screen output and keyboard input in jsscreen output and keyboard input in js
screen output and keyboard input in js
 
Basics of JavaScript
Basics of JavaScriptBasics of JavaScript
Basics of JavaScript
 

Similar to Advanced java

nodejs_at_a_glance.ppt
nodejs_at_a_glance.pptnodejs_at_a_glance.ppt
nodejs_at_a_glance.ppt
WalaSidhom1
 
Станислав Сидоренко «DeviceHive Java Server – миграция на Spring Boot»
Станислав Сидоренко «DeviceHive Java Server – миграция на Spring Boot»Станислав Сидоренко «DeviceHive Java Server – миграция на Spring Boot»
Станислав Сидоренко «DeviceHive Java Server – миграция на Spring Boot»
DataArt
 
Java EE 7 (Hamed Hatami)
Java EE 7 (Hamed Hatami)Java EE 7 (Hamed Hatami)
Java EE 7 (Hamed Hatami)
Hamed Hatami
 

Similar to Advanced java (20)

AJppt.pptx
AJppt.pptxAJppt.pptx
AJppt.pptx
 
An Introduction to Websphere sMash for PHP Programmers
An Introduction to Websphere sMash for PHP ProgrammersAn Introduction to Websphere sMash for PHP Programmers
An Introduction to Websphere sMash for PHP Programmers
 
JAX-RS.next
JAX-RS.nextJAX-RS.next
JAX-RS.next
 
slides (PPT)
slides (PPT)slides (PPT)
slides (PPT)
 
Servlet and JSP
Servlet and JSPServlet and JSP
Servlet and JSP
 
Load testing and performance tracing
Load testing and performance tracingLoad testing and performance tracing
Load testing and performance tracing
 
Java part 3
Java part  3Java part  3
Java part 3
 
Introduction to AJAX
Introduction to AJAXIntroduction to AJAX
Introduction to AJAX
 
nodejs_at_a_glance.ppt
nodejs_at_a_glance.pptnodejs_at_a_glance.ppt
nodejs_at_a_glance.ppt
 
Станислав Сидоренко «DeviceHive Java Server – миграция на Spring Boot»
Станислав Сидоренко «DeviceHive Java Server – миграция на Spring Boot»Станислав Сидоренко «DeviceHive Java Server – миграция на Spring Boot»
Станислав Сидоренко «DeviceHive Java Server – миграция на Spring Boot»
 
Java EE 7 (Hamed Hatami)
Java EE 7 (Hamed Hatami)Java EE 7 (Hamed Hatami)
Java EE 7 (Hamed Hatami)
 
JavaEE and RESTful development - WSO2 Colombo Meetup
JavaEE and RESTful development - WSO2 Colombo Meetup JavaEE and RESTful development - WSO2 Colombo Meetup
JavaEE and RESTful development - WSO2 Colombo Meetup
 
Spatial approximate string search Doc
Spatial approximate string search DocSpatial approximate string search Doc
Spatial approximate string search Doc
 
Java servlet technology
Java servlet technologyJava servlet technology
Java servlet technology
 
Servlet.ppt
Servlet.pptServlet.ppt
Servlet.ppt
 
Servlet.ppt
Servlet.pptServlet.ppt
Servlet.ppt
 
Servlet1.ppt
Servlet1.pptServlet1.ppt
Servlet1.ppt
 
Servlets
ServletsServlets
Servlets
 
Java Servlets.pdf
Java Servlets.pdfJava Servlets.pdf
Java Servlets.pdf
 
Performance testing in scope of migration to cloud by Serghei Radov
Performance testing in scope of migration to cloud by Serghei RadovPerformance testing in scope of migration to cloud by Serghei Radov
Performance testing in scope of migration to cloud by Serghei Radov
 

More from NA (7)

Transportation portal
Transportation portalTransportation portal
Transportation portal
 
Indian wildlife
Indian wildlifeIndian wildlife
Indian wildlife
 
Medical Stock Management System
Medical Stock Management SystemMedical Stock Management System
Medical Stock Management System
 
E resource technology
E resource technologyE resource technology
E resource technology
 
Core Java
Core JavaCore Java
Core Java
 
Job Portal
Job PortalJob Portal
Job Portal
 
Encryption And Decryption
Encryption And DecryptionEncryption And Decryption
Encryption And Decryption
 

Advanced java

  • 1. ADVANCED JAVA Presented by Shashi Kumar Singh Roll no-1150986 Submitted to: Department of CSE RIMT-IET ,Mandi Gobindgarh punjab
  • 2. JEE(java enterprise edition) • It is not a installable software. • It is a set of software specifications to develop web server/application server. • Working with JEE module is nothing but working with web server or application server. • In Advanced java software training we study one JSE technology(JDBC) and two JEE technology(SERVLET, JSP).
  • 3. Java Web Servers in IT market • Tomcat- From Apache. • Resin- From Resin soft. • JWS(java web server)-From Sun MS. • Jetty-From Adobe.
  • 4. Java Application Servers • Weblogic-From BEA(Oracle). • Websphere-From IBM • Glassfish-From Oracle Corp. • Oracle 10g AS-From Oracle Corp. • Jboss- Initially from Apache but now under Red Hat. • Jrun-From Adobe. • PAS- It is developed by Indian vendor company called Pramathi software solution,Hyderabad.
  • 5. JDBC • It is a JSE persistence technology can be used to write persistence logic performing persistence operation on persistence data of persistence store. Its latest version is 4.x. • Jdbc 4.x important api package are:  java.sql  javax.sql  javax.sql.rowset
  • 6. Sun microsystems Jdbc technology contains rules and guidelines to develop JDBC drivers JDBC driver for Oracle JDBC driver for mysql JDBC driver for postgresql
  • 7. Servlet • Servlet is a java web technology that allows to develop single instance multiple thread based server side web components in java web application. • Servlet is JEE technology given by sun microsystems having set of rules and guidelines to develop container. • Servlet is used to develop enterprise application that means web application and distributed application.
  • 8. Servlet API 3.0 important packages • java.servlet • javax.servlet.http • javax.servlet.annotation • javax.servlet.jsp
  • 9. Web deployment directory Example TestApp(web application) WEB-INF test.html classes Test.jsp TestSrv.java web.xml com.rimt TestSrv.class
  • 10. • To send “hyper text” from browser to server and server to browser we use protocol http. • The text that allows non-sequential access is called hyper text. • The latest version of protocol http is 1.1. Protocol Http
  • 11. The Data carries along with request(taken as hhpp) h-http request method(GET,POST etc). h-http request header(user- agent, accept etc). p-path of resource(/TestApp/test.html). p-request params (sno=101&sname=raja).
  • 12. The Data carries along with response(taken as SCH) S-http response status code(100-599). C-response content(the message of pw.println(-)method) H-response hesders(refresh, contextType etc).
  • 13. Http request with detailed data • Post • /TestApp/test.html Misc Info • Accept: text/html, text/xml Host: www.rimt.ac.in user-agent: mozila Accept-language: un-us Accept-encoding: gzip Request Headers Keep-alive:300 Connection: keep-alive <<<<<<<<<<<<<<<blank line <<<<<<<<<<<<<<<<<<<<<<<<<< user=raja & pwd= hyd request body/payload/form data
  • 14. JSP • It is a Sun microsystems supplied java based web technology that allows to develop tag based web resource in java web application having capability to generate dynamic web pages. • Now days in real time project JSP is used to write view layer presentation logic
  • 15. • Internally for every jsp an equivalent JES(jsp equivalent servlet) class will be generated by jsp page compiler and the container JASPER uses the support of servlet container CATALINA to execute the JES class. Jsp Life Cycle Convenience • jspInit(): for instantiation event • _jspService(-,-): for request arrival event • jspDestroy(): fro destruction event JSP Internals
  • 16. Conclusion In Real time MVC 2 Based enterprise application • JSP is used as presentation logic(view layer) • Servlet is used for controller logic(controller layer) • JDBC is used for persistence logic using the help of java class.(model layer)