j ava se, ee, and me compiled (with permission) from sang shin’s introduction to java ee online...

Download J AVA SE, EE, AND ME Compiled (with permission) from Sang Shin’s Introduction to Java EE Online Course Introduction to Java EE Online Course

If you can't read please download the document

Upload: stuart-cook

Post on 24-Dec-2015

216 views

Category:

Documents


3 download

TRANSCRIPT

  • Slide 1
  • J AVA SE, EE, AND ME Compiled (with permission) from Sang Shins Introduction to Java EE Online Course Introduction to Java EE Online Course
  • Slide 2
  • E NTERPRISE C OMPUTING
  • Slide 3
  • T HE J AVA P LATFORM
  • Slide 4
  • Slide 5
  • A BOUT E NTERPRISE A PPLICATIONS Things that make up an enterprise application Presentation logic Business logic Data access logic (and data model) System services
  • Slide 6
  • T HREE -T IER (W EB S ERVER ) Browser handles presentation logic Browser talks to Web server via HTTP protocol Business logic and data model are handled by dynamic contents generation technologies (CGI, Servlet/JSP, ASP)
  • Slide 7
  • T HREE - TIER (W EB S ERVER BASED ): P ROS & C ONS Pro: Ubiquitous client types Zero client management Support various client devices J2ME-enabled cell-phones Cons: Complexity in the middle-tier still need to be addressed
  • Slide 8
  • T RENDS Moving from single-tier or two-tier to multitier architecture Moving from monolithic model to object based application model Moving from application-based client to HTML- based client
  • Slide 9
  • S INGLE - TIER VS. M ULTI - TIER
  • Slide 10
  • M ONOLITHIC VS. O BJECT - BASED
  • Slide 11
  • O UTSTANDING I SSUES & S OLUTION Complexity at the middle tier server still remains Duplicate system services still need to be provided for the majority of enterprise applications Concurrency control, Transactions Load-balancing, Security Resource management, Connection pooling How to solve this problem? Commonly shared container that handles the above system services Proprietary versus Open-standard based
  • Slide 12
  • J2EE 1.4 API S AND T ECHNOLOGIES J2SE 1.4 (improved) JAX-RPC Web Service for J2EE J2EE Management J2EE Deployment JMX 1.1 JMS 1.1 JTA 1.0 Servlet 2.4 JSP 2.0 EJB 2.1 JAXR Connector 1.5 JACC JAXP 1.2 JavaMail 1.3 JAF 1.0
  • Slide 13
  • J AVA EE 5 JAX-WS 2.0 & JSR 181 Java Persistence EJB 3.0 JAXB 2.0 JavaServer Faces 1.2 new to Platform JSP 2.1 Unification w/ JSF 1.2 StAX Pull Parser new to Platform
  • Slide 14
  • W HAT IS A S ERVLET ? Java objects which extend the functionality of a HTTP server Dynamic contents generation Better alternative to CGI, NSAPI, ISAPI, etc. Efficient Platform and server independent Session management Java-based
  • Slide 15
  • S ERVLET VS. CGI
  • Slide 16
  • W HAT IS JSP T ECHNOLOGY ? Enables separation of business logic from presentation Presentation is in the form of HTML or XML/XSLT Business logic is implemented as Java Beans or custom tags Better maintainability, reusability Extensible via custom tags Builds on Servlet technology
  • Slide 17
  • EJB (E NTERPRISE J AVA B EANS ) A server-side component technology Easy development and deployment of Java technology-based application that are: Transactional Distributed Multi-tier Portable Scalable Secure
  • Slide 18
  • W HY EJB T ECHNOLOGY ? Leverages the benefits of component-model on the server side Separates business logic from system code Container provides system services Provides framework for portable components Over different J2EE-compliant servers Over different operational environments Enables deployment-time configuration Deployment descriptor
  • Slide 19
  • EJB A RCHITECTURE
  • Slide 20
  • E NTERPRISE J AVA B EANS
  • Slide 21
  • T HE J2EE P LATFORM A RCHITECTURE
  • Slide 22
  • J2EE IS E ND - TO -E ND S OLUTION
  • Slide 23
  • N- TIER J2EE A RCHITECTURE
  • Slide 24
  • H OW TO G ET S TARTED Step1: For Beginners and Intermediate J2EE Programmers Start using J2EE IDE of your choice Try open source IDE's NetBeans IDE 6.x (netbeans.org) Excellent out of the box J2EE support Lots of tutorials Eclipse
  • Slide 25
  • H OW TO G ET S TARTED Step2: Next Step (For Advanced J2EE Programmers) Learn practical open-source solutions Spring framework (for light-weight framework) Hibernate (for O/R mapping) JDO (for transparent persistence) Struts, JSF, WebWork, Tapestry (for Web-tier frameworks) JUnit (for unit testing) Log4j (for logging) Many more