200 likes | 312 Vues
This introduction to J2EE explores the extensive use of Java in various sectors, including mobile applications, banking, and even space exploration. We delve into the client-server relationship, highlighting the responsibilities of developers in networking, security, and business logic implementation. The document provides insights into the container and component architecture, explaining services like connection pooling and security measures essential for high-performance enterprise applications. Key concepts such as two-tier and three-tier architectures are also discussed, alongside relevant APIs in J2EE.
E N D
INTRODUCTION TO J2EE / JEE www.java9s.com
JAVA IS EVERYWHERE Mobiles Bullet trains Banks www.java9s.com
JAVA IS EVERYWHERE Mars Rover www.java9s.com
Standalone/PC based applications www.java9s.com
Standalone/PC based applications Application DB www.java9s.com
Enterprise applications spread across the globe The need for CLIENT and SERVER Applications started evolving www.java9s.com
CLIENT AND SERVER RELATIONSHIP Request SERVER Response CLIENT www.java9s.com
Our Dear DEVELOPERS Responsibilities • Networking code to communicate from client to • server 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
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
Component and Container Component is the code by the developer which lives in the Container Container gives some of the services like networking, clustering, High availability, connection pooling etc., for the components www.java9s.com
Container services for the Component Component Networking Efficient Multithreading Connection pooling Clustering Security High availability High performance Container www.java9s.com
Container and component relationship goes like a fish and an aquarium www.java9s.com
Two-Tier architecture www.java9s.com
THREE –TIER ARCHITECTURE www.java9s.com
MVC Architecture CLIENT CONTROLLER (servlet) HTML/JSP MODEL (JAVA BEANS/ EJB) DB MODEL VIEW CONTROLLER www.java9s.com
Web based Server and client service SERVER CLIENT Web server Container DB Index.html www.java9s.com
List of API in J2EE SERVLETS 10. JMS JSP 11. JCA 3. JSTL 12. JAX-RPC 4. JNDI 13. JAXP 5. JDBC 14. STAX 6. JMX 15. JSF 7. RMI-IIOP 16. JAAS 8. EJB3 9.JAVA-IDL www.java9s.com
BANK DEVELOPMENT of makeMyTrip.com CLIENT JMS SERVLET JDBC JSP EJB/MODEL DB JAX-RPC RMI-IIOP JAVA-IDL SPICE JET EJB CONTAINER SOAP SOAP JCA CORBA Ari Deccan s .NET application INDIAN AIRLINES AIR INDIA ON MAINFRAMES
Two kinds of Containers APPLICATION CONTAINERS FOR Servlets, EJB, JNDI etc SERVLET CONTAINERS FOR JSP, SERVLET www.java9s.com