INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

20
INTRODUCTION TO J2EE / JEE www.java9s.com

Transcript of INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

Page 1: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

INTRODUCTION TO J2EE / JEE

www.java9s.com

Page 2: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

JAVA IS EVERYWHERE

Mobiles Bullet trains

Banks

www.java9s.com

Page 3: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

JAVA IS EVERYWHERE Mars Rover

www.java9s.com

Page 4: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

Standalone/PC based applications

www.java9s.com

Page 5: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

Standalone/PC based applications

Application

DB

www.java9s.com

Page 6: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

Enterprise applications spread across the globe

The need for CLIENT and SERVER Applications

started evolving

www.java9s.com

Page 7: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

CLIENT AND SERVER RELATIONSHIP

CLIENT

SERVER

Request

Response

www.java9s.com

Page 8: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

Our Dear DEVELOPERS Responsibilities

Networking code to communicate from client toserver

Security code to ensure the confidentiality of data

Programming the server to give high performance

Pooling capabilities

…and at last is the business logic what client has asked www.java9s.com

Page 9: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

Identification of the common requirements….

Sun has released the JSR specification in 1999 for the container development

Some of the vendors:

• BEA Systems• IBM • Apache• JBOSS

And many more…

www.java9s.com

Page 10: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

Component and Container

Container gives some of the services like networking,clustering, High availability, connection pooling etc., for the components

www.java9s.com

Component is the code by the developer which lives in the Container

Page 11: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

Component

Networking

Security

Clustering

High performanceHigh availability

Connection pooling

Efficient Multithreading

Container

Container services for the Component

www.java9s.com

Page 12: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

Container and component relationship goes like a fish and an aquarium

www.java9s.com

Page 13: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

Two-Tier architecture

www.java9s.com

Page 14: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

THREE –TIER ARCHITECTURE

www.java9s.com

Page 15: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

MVC Architecture

CLIENT CONTROLLER(servlet)

HTML/JSPMODEL(JAVA

BEANS/ EJB)DB

MODEL VIEW CONTROLLERwww.java9s.com

Page 16: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

CLIENT

SERVER

Web server

Index.html

Container

DB

Web based Server and client service

www.java9s.com

Page 17: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

List of API in J2EE

1.SERVLETS 10. JMS2.JSP 11. JCA3. JSTL 12. JAX-RPC4. JNDI 13. JAXP5. JDBC 14. STAX6. JMX 15. JSF7. RMI-IIOP 16. JAAS8. EJB39.JAVA-IDL

www.java9s.com

Page 18: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

DEVELOPMENT of makeMyTrip.com

CLIENTSERVLET

JSPEJB/MODEL

JDBC DB

SPICE JET EJB CONTAINER

RMI-IIOP

Ari Deccan s .NET application

SOAP SOAP

JAX-RPC

INDIAN AIRLINES

CORBA

JAVA-IDL

JMS

BANK

AIR INDIA ON MAINFRAMES

JCA

Page 19: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

Two kinds of Containers

SERVLET CONTAINERSFOR JSP,

SERVLETAPPLICATION CONTAINERS

FOR Servlets, EJB, JNDI etc

www.java9s.com

Page 20: INTRODUCTION TO J2EE / JEE . JAVA IS EVERYWHERE Mobiles Bullet trains Banks .

www.java9s.com