1 / 16

Enterprise Architecture

Enterprise Architecture. Java / Java EE 101 Training Awareness. M. Reha, Enterprise Architecture 2009-04-10, v0.1. Agenda. Course #1: Introduction to the Java Programming Language “Hello World” Java class Encapsulation, Inheritance, Interfaces Course #2:

sabina
Télécharger la présentation

Enterprise Architecture

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Enterprise Architecture Java / Java EE 101 Training Awareness M. Reha, Enterprise Architecture 2009-04-10, v0.1

  2. Agenda • Course #1: • Introduction to the Java Programming Language • “Hello World” Java class • Encapsulation, Inheritance, Interfaces • Course #2: • Introduction to the Java EE Platform • “Hello World” Java EE web application • Closing • Questions • References 2

  3. Background on Java SE and Java EE

  4. Introduction to the Java Programming Language Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of computer architecture. The original and reference implementation Java compilers, virtual machines, and class libraries were developed by Sun from 1995. As of May 2007, in compliance with the specifications of the Java Community Process, Sun made available most of their Java technologies as free software under the GNU General Public License. 4

  5. History of the J2EE Platform • J2EE Platform: • Java Platform Edition JPE announced in May 1998 • J2EE 1.2 released in December 1999 (peak of the .COM era) • J2EE 1.3 released in September 2001 (end of .COM era) • J2EE 1.4 released in November 2003 • EE 5 released in May 2006 • EE 6 scheduled release for the end of 2008 (approval of JCP specification) • Lots of enterprises are still on J2EE 1.3 from 2002! • The Portlet Specification was not released until October 2003.

  6. Client (mostly browser based) Utilities and Core Services Logging (Wrapper) Tracing (Wrapper) Exception Framework Base Classes/Frameworks Alert (like HP Open View) Cache (Wrapper) Static Data Security/SSO * Governance Standards, Best Practices/Guidelines Architecture Review Boards etc. Web Application UI: HTML, CSS/DHTML, JavaScript, AJAX, Applets, Flash Application Logic, Business Logic, Data Access Logic Enterprise Application Integration (EAI) SDLC and Development Tools XP, Scrum, RUP, Waterfall Eclipse, IBM WSAD/RAD, NetBeans, JBuilder, IntelliJ Code Analyzers (Checkstyle, FindBugs), Unit Test Frameworks (JUnit, TestNG) Application Server Containers and Services for UI, Business, Database Security Administration and Deployment Value Add Services (Proprietary Frameworks etc.) J2EE 1.3 – 1.4 Web JSP Servlet EJB Session Entity MDB Open Source Struts 1.x (MVC) JSTL (Tag Library) MyFaces/Sun JSF RI Apache Commons (Utility) Apache Log4j (Logging) Hibernate(Persistence) iBatis (Persistence) iText (PDF) POE (MS Docs) Quartz (Timer Service) Castor (XML Framework) Apache Xerces/Xalan (XML) Apache Axis (Web Services) SSO OSCache/EHCache (Cache) * JAX-RPC JAX-R JAXB JMX JAAS JMS Mail JTA JCA J2SE 1.3 – 1.4 Design Patterns MVC DAO Command Factory Business Delegate Business Façade Decorator Value Object * * Integration/Middleware Business Rule Engine ETL Messaging/MQ FTP Web Services Proprietary Scripts etc. Screen Scraping * AWT Swing Java 2D Java 3D JavaBean JDBC JNDI RMI JNI J2EE Platform from post .COM era (2002-2004)

  7. J2EE Platform Observations from 2002-2004 Leveraged lots of open source libraries to fill in the J2EE specification gaps (like Web MVC Framework, XML, Web Services). Soon there would be competing and redundant technologies such as XML, Web Services, Logging, etc.. The Enterprise and Application Architect definitely had their work cut out for them. What technologies do we use? Some J2EE specifications were of little value to the enterprise (for example, Entity Beans (CMP or BMP) and Stateful EJB’s…..J2EE 1.2 only supported remote Session Beans!). Enterprise Integration was tightly coupled and reuse of enterprise assets not fully thought out or realized. Application Servers often provided proprietary (and competing) technologies and frameworks (Portlets, Web, Security, etc.). Lots of programming models to learn. Governance was often over looked causing lots of inconsistencies in architecture and duplication of code/frameworks. Most development methodologies were still very “water fall”. XP was just taking off. Development Tools needed improving. Generally there was very high TCO for 1st generation (MVC-1) and 2nd generation (MVC-2) applications. De-facto Standard Application Servers: WebLogic, WebSphere, and some Oracle. Increasing frustration with J2EE standard (some of it was justified and some was not). 7

  8. Client (not just browser based anymore) Web Application Utilities and Core Services Logging/Tracing (Wrapper) Exception Framework Base Classes/Frameworks Alert (like HP Open View) Cache (Wrapper) Static Data Security/SSO * Object Model Application Domain Model Struts2 Framework Presentation HTML, CSS, JavaScript, AJAX JSF, SpringMVC, JSP, Servlets, JSTL Facelets, Seam, Spring WebFlow Business Rule Engine Rails/Grails Framework GWT Framework SOA ESB, BPM WS-* UDDI WSDL XML EAI JCA ETL JMS/MQ Business POJO (via Spring or Session) Message Driven Beans Timer Beans Web Services Open Source Struts2 (MVC) Apache Commons (Utility) iBatis (Persistence) iText (PDF) POE (MS Docs) Quartz (Timer Service) Apache Axis (Web Services) OSCache/EHCache (Cache) * Spring DI AOP SpringMVC WebFlow Security OLTP DB Legacy Systems And Legacy DB Or DW Data Access JDBC, SQL, SP JPA/Hibernate/TopLink/iBatis J2EE Application Server (now some open source) EE 5 Open JDK J2SE 5 Java, Ruby, Groovy, Python, Scala J2EE Web 1.5/2.0 Application Architecture (2005-present)

  9. Observations from 2005-2007 Move away from Struts 1.x or proprietary frameworks to newer web frameworks like JSF (plus Facelets, Seam, and Ajax4Jsf) or Struts2 or SpringMVC (with WebFlow). Move toward annotation based configuration (versus mass of XML configuration files). Less Open Source required (due to maturity of EE specification, Spring, and open source application servers like JBoss, Glassfish, Tomcat 5/6). Apache Foundation, Spring, Craig McClanahan (JSF),Rod Johnson(String/EJB3), Gavin King(Hibernate/JPA) were really influencing and pushing the Java/J2EE platform forward. Spring getting lots of traction in the industry (dependency injection (simple but powerful!), POJO based for simpler programming model, AOP (for security, transactions, tracing, etc), wrappers for integration with EJB, WS, etc.). NetBeans IDE is becoming a viable and powerful IDE (Eclipse finally has some competition). Eclipse Foundation followed suite and also released Eclipse Europa. No need to buy a J2EE IDE now. Rather then reinvent we must reuse in the Enterprise, move from vertical applications to Enterprise wide applications => SOA and leverage full Web Service stack, ESB, BPM. New EE web applications can be built much quicker and with much less code. My last project, using JSF and Spring and iBatis, was built with 50% less code, delivered on time (actually over delivered by adding more features requested from our customer), and was 25% under budget. Google influence => Google Web Toolkit, Google Docs, Google Maps, etc. Sun and Microsoft finally working together (WS-* in 2006) => that is a good thing for everybody! 9

  10. Course #1 – Java SE 101

  11. “Hello World” in the Java Programming Language Object Data / State HelloWorld Behavior / Operations private String message; private Font font; public sayHello(); Name of Object In Java == Object.java or a Class The Objects internal data or state The Objects behavior or operations Encapsulation 11

  12. “Hello World” in the Java Programming Language 12

  13. More “Hello World” in the Java Programming Language Extends the behavior of HelloWorld HelloWorld BaseHello private String message; public sayLoudHellIo(); public sayHello(); Inheritence 13

  14. More “Hello World” in the Java Programming Language 14

  15. Course #2 – Java EE 101

  16. References Anonymous. 2009. Wikipedia. Retrieved April 10, 2009 from http://www.wikipedia.com 16

More Related