650 likes | 894 Views
J2EE Architecture for Web Application & Enterprise Programming. www.ukit-sd.com. ผู้บรรยาย Suriyen Deangtongdee Ueahanong Ponchana. www.ukit-sd.com. Topic. J2EE Architecture JDBC JNDI JSP & Servlet EJB Web Service Apache Tomcat JBoss. www.ukit-sd.com. J2EE.
E N D
J2EE Architecture for Web Application & Enterprise Programming www.ukit-sd.com ผู้บรรยาย SuriyenDeangtongdee UeahanongPonchana
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 benefits
www.ukit-sd.com N-Tier
www.ukit-sd.com J2EE Architecture
www.ukit-sd.com J2EE Architecture • Client Tier • Application Client/Server • Web Client
www.ukit-sd.com J2EE Architecture • Web Tier
www.ukit-sd.com J2EE Architecture • Business Tier • EIS Tier
www.ukit-sd.com JDBC • (Java Database Connectivity) • การทำงานที่สำคัญของ JDBC • ลักษณะที่สำคัญของ JDBC
www.ukit-sd.com JDBC
www.ukit-sd.com JDBC • ประเภทของ JDBC Driver • JDBC - ODBC Bridge • Native API partly-Java Driver • JDBC-Net Java Driver • Native-protocal pure Java Driver
www.ukit-sd.com JDBC
www.ukit-sd.com JNDI • Java Naming and Directory Interface
www.ukit-sd.com JNDI
www.ukit-sd.com • JSP(Java Server Page) • Servlet JSP & Servlet
www.ukit-sd.com JSP & Servlet Example • Step 1 - Create a new project
www.ukit-sd.com JSP & Servlet Example • Step 2 - Create the JSP file
www.ukit-sd.com JSP & Servlet Example • Step 3 - Create the Servlet
www.ukit-sd.com JSP & Servlet Example • Step 4 - Define your servlet in "web.xml“
www.ukit-sd.com JSP & Servlet Example • Step 5 - Add your project to Tomcat
www.ukit-sd.com JSP & Servlet Example • Step 6 - Start "Tomcat“ • Step 7 - Test your project
www.ukit-sd.com JSP & Servlet Example • Step 7 - Test your project
www.ukit-sd.com JSP & Servlet Example • Step 8 - Set your project's welcome file • Step 9 - Restart the server
www.ukit-sd.com EJB • Enterprise JavaBeans • EJB Container • EJB Component
www.ukit-sd.com EJB Container • 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
www.ukit-sd.com EJB Container
www.ukit-sd.com EJB Component • Session Beans • Entity Beans • Message Driven Beans • Web Service Beans
www.ukit-sd.com • Session Beans • Stateless • Stateful EJB Component
www.ukit-sd.com • Entity Beans • Bean-Managed Persistence (BMP) • Container-Managed Persistence (CMP) EJB Component
www.ukit-sd.com • Message Beans EJB Component
www.ukit-sd.com EJB Component
www.ukit-sd.com EJB Component • Session and Entity Beans • Client and Interfaces • Home and Remote Interfaces • Local Home and Local Interfaces
www.ukit-sd.com EJB Component
www.ukit-sd.com EJB Component
www.ukit-sd.com EJB Component
www.ukit-sd.com EJB Component
www.ukit-sd.com EJB Component
www.ukit-sd.com EJB Component
www.ukit-sd.com EJB Component
www.ukit-sd.com Web Service • What is web service? • Meaning of Technology • Meaning of Software
www.ukit-sd.com Web Service • พื้นฐานของ Web Service • คุณลักษณะพื้นฐานของ Web Service • เหตุผลและข้อดีของการใช้ Web Service • Model ของการทำงาน Web Service
www.ukit-sd.com Web Service • 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)
www.ukit-sd.com Web Service • Standard of Web Service Development • -Other Standard
www.ukit-sd.com Web Service • SOA(Service Oriented Architecture )
www.ukit-sd.com Web Service • 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)