JBoss at Work JAW Motors Application Chapter 1-3 Jeff Schmitt October 9, 2006.

Slides:



Advertisements
Similar presentations
11 Copyright © 2005, Oracle. All rights reserved. Creating the Business Tier: Enterprise JavaBeans.
Advertisements

J2EE Overview.
JSP and web applications
Apache Struts Technology
AppFuse Architecture Directory Structure, Build/Test/Deploy Processes.
Using JavaServer Pages Harry R. Erwin, PhD CIT304/CSE301.
Sapana Mehta (CS 6V81) Instructions for using Jboss User Manual.
An architecture for webb applications, J2EE
Sapana Mehta (CS-6V81) Overview Of J2EE & JBoss Sapana Mehta.
An introduction to Java Servlet Programming
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of The Eclipse Web Tools Platform.
Java 2 – Enterprise Edition Kevin J. LaFata April 21, 2003 UM – St. Louis.
Layers & Tiers Umair Javed Lec - 41.
1 Build a Web Application on J2EE. 2 J2EE Scenario Client – Web Server – EIS Resources Client – Web Server – EIS Resources Client – Application Server.
© 2005, Cornell University. Rapid Application Development using the Kuali Architecture (Struts, Spring and OJB) A Case Study Bryan Hutchinson
J2EE Java2 Enterprise Edition by Damian Borth. Contents Introduction Architectures styles Components Scenarios Roles Processing a HTTP request.
Java Server Pages B.Ramamurthy. Java Server Pages Servlets are pure Java programs. They introduce dynamism into web pages by using programmatic content.
J2EE Java 2 Enterprise Edition. Relevant Topics in The Java Tutorial Topic Web Page JDBC orial/jdbc
Apache Struts Technology A MVC Framework for Java Web Applications.
Web Applications Basics. Introduction to Web Web features Clent/Server HTTP HyperText Markup Language URL addresses Web server - a computer program that.
Emmanuel Cecchet et al.  Performance Scalability of J2EE application servers.  Test effect of: ◦ Application Implementation Methods ◦ Container Design.
Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer.
Distributed System Using Java 2 Enterprise Edition (J2EE)
UNIT-V The MVC architecture and Struts Framework.
Chapter 10 EJB Concepts of EJB Three Components in Creating an EJB Starting/Stopping J2EE Server and Deployment Tool Installation and Configuration of.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
EJB Overview Celsina Bignoli Distributed Business Applications Server DB Client DB Server DB.
Distributed Multitiered Applications The J2EE platform uses a multitiered distributed application model. Application logic is divided into components 1.
Notes of J2EE Tutorial Matt Tsai. 2 Outline Chapter 1: Overview Chapter 1: Overview Chapter 2: Understanding XML Chapter 2: Understanding XML Chapter.
Ing. Ignacio Roqueta ARTech GeneXus and J2EE.
Chemical Toxicity and Safety Information System Shuanghui Luo Ying Li Jin Xu.
Entity Java Beans Jorg Janke Open Source ERP & CRM.
Introduction to J2EE Architecture Portions by Kunal Mehta.
Java Server Pages A JSP page is a text-based document that contains two types of text: static template data, which can be expressed in any text-based format,
|Tecnologie Web L-A Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat
Web Applications - Basics. Introduction to Web Web features Clent/Server HyperText Transfer Protocol HyperText Markup Language URL addresses Web server.
第十四章 J2EE 入门 Introduction What is J2EE ?
J2EE Structure & Definitions Catie Welsh CSE 432
Opus College - overview. OpusCollege - background First project: ICT Capacity Building Mozambican Higher Education Institutions Partners: RUG Groningen,
Lecturer: Prof. Piero Fraternali, Teaching Assistant: Alessandro Bozzon, Advanced Web Technologies: Struts–
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared.
J2EE Overview Web Programming CSCI J2EE multi-tier architecture Servlet: Java class loaded into Web server JSP page: enhanced HTML page that is.
JBoss Overview J2EE Sig Presenter: Steve Davidson Stephen Davidson & Associates, INC.
Ch 2 – Application Assembly and Deployment COSC 617 Jeff Schmitt September 14, 2006.
JBoss at Work Databases and JBoss Chapter 4 Jeff Schmitt October 26, 2006.
Chapter 7 Using Custom Tag Libraries and the JSP Standard Tag Library.
Copyright © 2002 ProsoftTraining. All rights reserved. JavaServer Pages.
Assignment of JAVA id : BSSE-F10-M-10-JAVA1 Overview of J2EE/Session 2/Slide 1 of 38.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
The Power of XDoclet Darren Landoll CIS Database System Design Kansas State University.
Introduction to EJB. What is an EJB ?  An enterprise java bean is a server-side component that encapsulates the business logic of an application. By.
Modern Programming Language. Web Container & Web Applications Web applications are server side applications The most essential requirement.
NJIT 1 Apache Tomcat (Version 6.0) THETOPPERSWAY.COM.
©NIIT Introducing Enterprise JavaBeans (EJB) Lesson 1A / Slide 1 of 43J2EE Server Components Objectives In this lesson, you will learn about: The features.
Introduction – ORM, Helloworld Application
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
Glink for Java: applet, application and an API for integrating access to Bull, IBM, UNIX and Minitel systems with your Java based e-business applications.
Apache Struts Technology A MVC Framework for Java Web Applications.
Apache Geronimo Open Source J2EE Application Server Getting up to speed with Apache Geronimo - Copyright 2005 Tom McQueeney 1 Getting up to speed with.
Java Web Development with NetBeans IDE -- Kai Qian Chapter 9 Case Study.
Enterprise Java Beans. Contents  Understanding EJBs  Practice Section.
J2EE Lecture 6: Spring – IoC and Dependency Injection
Java Servlets By: Tejashri Udavant..
Introduction to J2EE Architecture
Unit 6-Chapter 2 Struts.
J2EE Application Development
Understanding and Designing with EJB
ESIS Consulting LLC (C) ESIS Consulting LLC. All rights reserved
Component Technology Bina Ramamurthy 2/25/2019 B.Ramamurthy.
Enterprise Java Beans.
Presentation transcript:

JBoss at Work JAW Motors Application Chapter 1-3 Jeff Schmitt October 9, 2006

JAW Motors Application Fictitious automobile dealership Each chapter progressively adds a new J2EE technology that solves a specific business problem Viewing cars – JSP Storing cars (persistence) – JDBC or Hibernate Credit check -- JMS message and JavaMail response Purchasing – transactional support using Stateless Session Beans Sharing data between dealerships – Web Services

JBoss – Application server Compiled Java code runs inside JVM Java classes need a container to provide an infrastructure, a framework to handle low-level details An application server is a loosely coupled collection of containers (or "services") that correspond to the various parts of the J2EE API. JBoss is an open-source J2EE 1.4 standards compliant application server

Java Management Extensions JMX JBoss is a thin JMX (Java Management Extensions) microkernel JMX is a framework that allows you to interact with live, running code –Start and stop services –Gather metrics –Change parameters Services that implement the JMX interface are called Managed beans or Mbeans –MBeans that run inside JBoss include: Log4J, Tomcat, Hibernate

Tools needed Java JDK – J2SE 1.4 or higher Ant – to compile, package and deploy Java code XDoclet – to generate deployment descriptors, web.xml and various other J2EE configuration files. XDoclet is a combination of custom Ant tasks and special attributes that you include in your source code.

JAW Motors Application Use Tomcat servlet container JBoss is an application server, but includes Tomcat 3-tier application –Presentation – JSP and servlets –Business logic – EJB and MDB’s –Persistence – relational database Components in each tier –Highly cohesive – components do only one thing –Loosely coupled – components have no dependences across tiers

Model View Controller View – HTML, JSP, CSS and JSTL produce the screen contents Model – POJO (Plain Old Java Objects), Java Beans Controller – mediates communication between the view and the model -- a servlet Framework – many design decisions already made for you – this book is framework-neutral – uses its own controller servlet

View carList.html carList-jstl.jsp – with JSTL tags – JSP scriplet defines data: carList[] carList.jsp – with stylesheet: default.css – data saved in pageContext

Model and Controller Model –CarBean is a POJO, is a JavaBean –carList.jsp uses JSP EL Controller –ControllerServlet –Action parameter indicates page indirectly –To access carList.jsp we use: –Controller translates action=viewCarList to access carList.jsp

JBoss Deployment Applicatioin Assembly –Web Archive file – a collection of presentation tier files (HTML, JSP, Servlets, etc) –EAR – Enterprise Archive (EJB’s) –SAR – Service Archive (Web Services) –Use “jar” command to bundle them into a single file Application Deployment –Hot deployment -- While JBoss is running, copy the WAR, EAR or SAR file to $JBOSS_HOME/server/default/deploy/ –Cold deployment – stop JBoss, copy the file, restart JBoss – this is the recommended deployment

EAR Deployment EAR – Enterprise Archive Similar to WAR – Web Archive bundles together the pieces of a full J2EE application keeps things organized unpacked by server Contains three “modules” –Web Module – a war file for presentation –EJB Module – an EJB jar file –Java Module – Java classes jar file Application.xml – in META-INF directory -- a packing list – tells where you can find each file relative to the root

Data Access Object - DAO A layer of abstraction Hides the actual persistence details behind a common interface For this chapter, a simple ArrayList In subsequest chapters, Hibernate, an Object-Relational Mapper (ORM) for relational DB CarDAO.java –Constructor creates ArrayList of CarDTO objects –findAll() – method to return all cars CarDTO.java – a Car JavaBean ControllerServlet.java – creates CarDAO and forwards to carList.jap

Automated Deployment Ant can –compile and create WAR/EAR (build process) –Create/delete directories –Copy files –Call XDoclet tasks XDoclet – to generate config files (web.xml) and/or java code during the build process Cold deploy uses Ant task: cleandeploy Visit