j2ee architecture for web application & enterprise programming
Post on 23-Feb-2016
48 Views
Preview:
DESCRIPTION
TRANSCRIPT
J2EE Architecture for Web Application & Enterprise Programming
ผบรรยายSuriyen DeangtongdeeUeahanong Ponchana
www.ukit-sd.com
Topic•J2EE Architecture•JDBC•JNDI•JSP & Servlet•EJB•Web Service•Apache Tomcat •JBoss
www.ukit-sd.com
J2EE•Java 2 Enterprise Edition•Java Level
▫J2SE ( Java 2 Standard Edition )▫J2EE( Java2EnterpriseEdition )▫J2ME ( Java 2 Micro Edition )
•Evolution of Enterprise Application and Web Application Framework
www.ukit-sd.com
J2EE•Two Tier(Client-Server Architecture)
•Fat Client•Three Tier
•Thin Client•N-Tier Architecture
•J2EE Architecture
www.ukit-sd.com
Two Tier
www.ukit-sd.com
Two Tier: The Drawbacks
www.ukit-sd.com
Three Tier
www.ukit-sd.com
Three-Tier : the benefitswww.ukit-sd.com
N-Tier
www.ukit-sd.com
J2EE Architecture
www.ukit-sd.com
J2EE Architecturewww.ukit-sd.com
•Client Tier •Application Client/Server•Web Client
J2EE Architecturewww.ukit-sd.com
•Web Tier
J2EE Architecturewww.ukit-sd.com
•Business Tier•EIS Tier
JDBCwww.ukit-sd.com
•(Java Database Connectivity)• การทำางานทสำาคญของ JDBC • ลกษณะทสำาคญของ JDBC
DriverManager Connection Statement ResultSet
Driver
Database
Established link to DB
creates createscreates
SQL data
JDBCwww.ukit-sd.com
JDBCwww.ukit-sd.com
• ประเภทของ JDBC Driver •JDBC - ODBC Bridge•Native API partly-Java Driver•JDBC-Net Java Driver•Native-protocal pure Java Driver
JDBCwww.ukit-sd.com
Java Program
JDBCNet
driver
Vendor-supplied
JDBC driverODBCdriver
JDBC/ODBCBridge
JDBC Driver Manager
Databaseserver
Databaseserver
JDBCMiddleware
protocol
JDBC API
JDBC Driver API
JNDIwww.ukit-sd.com
•Java Naming and Directory Interface
JNDIwww.ukit-sd.com
JSP & Servletwww.ukit-sd.com
•JSP(Java Server Page)•Servlet
JSP & Servlet Examplewww.ukit-sd.com
•Step 1 - Create a new project
JSP & Servlet Examplewww.ukit-sd.com
•Step 2 - Create the JSP file
JSP & Servlet Examplewww.ukit-sd.com
•Step 3 - Create the Servlet
JSP & Servlet Examplewww.ukit-sd.com
•Step 4 - Define your servlet in "web.xml“
JSP & Servlet Examplewww.ukit-sd.com
•Step 5 - Add your project to Tomcat
JSP & Servlet Examplewww.ukit-sd.com
•Step 6 - Start "Tomcat“•Step 7 - Test your project
JSP & Servlet Examplewww.ukit-sd.com
•Step 7 - Test your project
JSP & Servlet Examplewww.ukit-sd.com
•Step 8 - Set your project's welcome file•Step 9 - Restart the server
EJBwww.ukit-sd.com
•Enterprise JavaBeans•EJB Container•EJB Component
EJB Containerwww.ukit-sd.com
•EJB Container•Transaction Controls• Management of Multiple Instances
•Instance Passivation •Instance Pooling•Database Connection Pooline
•Catching•Method Invocation Optimization•Support for Persistence•Support for Access Control List
EJB Containerwww.ukit-sd.com
EJB Componentwww.ukit-sd.com
•Session Beans•Entity Beans•Message Driven Beans
•Web Service Beans
EJB Componentwww.ukit-sd.com
Session Beans•Stateless•Stateful
EJB Componentwww.ukit-sd.com
Entity Beans•Bean-Managed Persistence (BMP)•Container-Managed Persistence
(CMP)
EJB Componentwww.ukit-sd.com
Message Beans
EJB Componentwww.ukit-sd.com
EJB Componentwww.ukit-sd.com
Session and Entity Beans•Client and Interfaces
•Home and Remote Interfaces•Local Home and Local
Interfaces
EJB Componentwww.ukit-sd.com
EJB Componentwww.ukit-sd.com
EJB Componentwww.ukit-sd.com
EJB Componentwww.ukit-sd.com
EJB Componentwww.ukit-sd.com
EJB Componentwww.ukit-sd.com
EJB Componentwww.ukit-sd.com
Web Servicewww.ukit-sd.com
•What is web service?•Meaning of Technology•Meaning of Software
Web Servicewww.ukit-sd.com
• พนฐานของ Web Service• คณลกษณะพนฐานของ Web Service• เหตผลและขอดของการใช Web Service•Model ของการทำางาน Web Service
Web Servicewww.ukit-sd.com
Standard of Web Service Development-XML(Extensible Markup Language)-SOAP(Simple Object Access Protocol)-WSDL(Web Services Description Language)-UDDI(Universal Description, Discovery and
Integration)
Web Servicewww.ukit-sd.com
Standard of Web Service Development-Other Standard
Web Servicewww.ukit-sd.com
SOA(Service Oriented Architecture )
Web Servicewww.ukit-sd.com
Develop Web Service with Java Technology
-JAX-WS (Java API for XML-Based Web Services)
-JAXB (Java Architecture for XML Binding) -JAXP (Java API for XML Processing) -SAAJ (SOAP with Attachments API for
Java) -JAX-RPC (Java API for XML-Based RPC) -WSIT (Web Services Interoperability
Technology)
Web Servicewww.ukit-sd.com
TOMCAT, JBOSS, and J2EEwww.ukit-sd.com
Tomcatwww.ukit-sd.com
Tomcatwww.ukit-sd.com
Tomcatwww.ukit-sd.com
JBOSSwww.ukit-sd.com
•www.jboss.org
JBOSSwww.ukit-sd.com
JBOSSwww.ukit-sd.com
JBOSSwww.ukit-sd.com
Conclusionwww.ukit-sd.com
•J2EE Architecture for Web Application and Enterprise Programming
*Java Level -> J2SE, J2EE, J2ME*Application and Web Framework -> 2-Tier,
3-Tier, N-Tier, Multi-Tier(J2EE) •JDBC*การทำางานและลษณะทสำาคญ* ประเภทของ Driver -> JDBC - ODBC
Bridge,Native API partly-Java Driver,JDBC-Net Java Driver, Native-protocal
pure Java Driver
Conclusionwww.ukit-sd.com
•JNDI•JSP & Servlet•EJB*EJB Container -> Transaction Controls,
Management of Multiple Instances,Catching, Method Invocation Optimization,
Support for Persistence,Support for Access Control List*EJB Component -> Session Beans, Entity
Beans, Message Driven Beans, Web Service Beans
Conclusionwww.ukit-sd.com
•Web Service*Standard -> XML, SOAP, WSDL, UDDI*Java Technology -> JAX-WS, JAXB, JAXP เปนตน
•Apache Tomcat •JBoss
Profile
www.ukit-sd.com
เอออนงค พลชนะProgrammerCertifications- AJAX- Springการศกษา- วทยาศาตรมหาบณฑตคณะเทคโนโลย
สารสนเทศ สถาบนเทคโนโลยเจาคณทหารลาดกระบง
- ศลปศาตรบณฑต คณะ มนษศาสตร
มหาวทยาลยรามคำาแหง
สรเยนทร แดงทองดProgrammer Certifications - Mini Master of Java
Technology - Spring การศกษา - บรหารธรกจบณฑต เอกคอมพวเตอรมหาวทยาลยกรงเทพธนบร
top related