Ch 2 – Application Assembly and Deployment COSC 617 Jeff Schmitt September 14, 2006.

Slides:



Advertisements
Similar presentations
J0 1 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento.
Advertisements

J2EE Overview.
J2EE Architecture Overview
JNDI Java Naming Directory Interface JNDI is an API specified in Java that provides naming and directory functionality to applications written in Java.
An architecture for webb applications, J2EE
Introduction to Java 2 Enterprise Edition About myself –Neutrinos, Cancer Research, IT Applications Today’s topic: J2EE –Context –Advantages –Components.
The J2EE Framework 1 Introduction to Java 2 Enterprise Edition Presented by Communication & Collaboration Technologies Division of the Chief Information.
Sapana Mehta (CS-6V81) Overview Of J2EE & JBoss Sapana Mehta.
1 CS 483 Enterprise and Web Application Programming Week 4 Deploying Enterprise JavaBeans.
Application Server Lecture Paulo Barroso Kris Carver Todd Kitterman Eric Silva.
Java 2 – Enterprise Edition Kevin J. LaFata April 21, 2003 UM – St. Louis.
1 Build a Web Application on J2EE. 2 J2EE Scenario Client – Web Server – EIS Resources Client – Web Server – EIS Resources Client – Application Server.
JSLEE. What is JSLEE ? is an event oriented application middleware. Its main job is to receive events from external resources and deliver these events.
J2EE Java 2 Enterprise Edition. Relevant Topics in The Java Tutorial Topic Web Page JDBC orial/jdbc
Enterprise Programming By J Pearce. Enterprise Software Sales HR Inventory Customer Support Shipping.
1 Java Server Pages Can web pages be created specially for each user? What part does Java play?
Introduction to EJB INFORMATICS ENGINEERING – UNIVERSITY OF BRAWIJAYA Eriq Muhammad Adams J
Session-01. What is a Servlet? Servlet can be described in many ways, depending on the context: 1.Servlet is a technology i.e. used to create web application.
Distributed System Using Java 2 Enterprise Edition (J2EE)
JavaServer Faces: The Fundamentals Compiled from Sun TechDays workshops (JSF Basics, Web-Tier Codecamp: JavaServer Faces, Java Studio Creator; IBM RAD)
Chapter 10 EJB Concepts of EJB Three Components in Creating an EJB Starting/Stopping J2EE Server and Deployment Tool Installation and Configuration of.
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.
Enterprise Java Beans CS-422. Application Servers In the late 1980s and though the mid 1990s a number of corporations (Broadvision, Netscape…) marketed.
1 Session Bean Chuyên đề Lập trình Java & J2EE Chương 14 Biên soạn: Th.S Nguyễn văn Lành.
HTTP client wide area network (Internet) HTTP proxy HTTP server HTTP gateway firewall HTTP tunnel Copyright Springer Verlag Berlin Heidelberg 2004.
Notes of J2EE Tutorial Matt Tsai. 2 Outline Chapter 1: Overview Chapter 1: Overview Chapter 2: Understanding XML Chapter 2: Understanding XML Chapter.
Glink: GCOS e-business in an application server architecture Summit 2000, Jim Gallagher.
Ing. Ignacio Roqueta ARTech GeneXus and J2EE.
DICOM / HL7 Verfication / Java Basis Random user with no account justs wants to validate an HL7 message or DICOM object The next diagram shows a number.
Enterprise Computing COSC 617 Jeff Schmitt September 7,2006.
CS 493/693: Distributed Systems Programming V. “Juggy” Jagannathan CSEE, West Virginia University March 21, 2005.
Chemical Toxicity and Safety Information System Shuanghui Luo Ying Li Jin Xu.
95-843: Service Oriented Architecture 1 Master of Information System Management Service Oriented Architecture Lecture 10: Service Component Architecture.
Entity Java Beans Jorg Janke Open Source ERP & CRM.
Enterprise JavaBeans. What is EJB? l An EJB is a specialized, non-visual JavaBean that runs on a server. l EJB technology supports application development.
Introduction to J2EE Architecture Portions by Kunal Mehta.
EJB Framework.  As we know, EJB is the center of the J2EE architecture that provides a sturdy framework for building enterprise applications. The major.
TDDD05 EJB Lab (Part of slides reused from Mikhail’s) Lu Li
JBoss at Work JAW Motors Application Chapter 1-3 Jeff Schmitt October 9, 2006.
|Tecnologie Web L-A Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat
第十四章 J2EE 入门 Introduction What is J2EE ?
J2EE Structure & Definitions Catie Welsh CSE 432
Enterprise Java v120131Intro to JavaEE1 Java EE 5 TM Introduction.
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.
1 Java EE Programming Enterprise JavaBeans. 2 Topics J2EE Overview Enterprise JavaBeans Overview Enterprise Entity Beans Case Study How to build them.
Enterprise Java Beans. Model 1 J2EE – Web View Model/View/Controller Model View Control Data base Web Server Model One Architecture HTTP Request HTTP.
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.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
1 Copyright © 2004, Oracle. All rights reserved. Oracle Application Development Framework.
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.
1 Distributed System using J2EE. 2 What is J2EE?  J2EE (Java2 Enterprise Edition) offers a suite of software specification to design, develop, assemble.
Modern Programming Language. Web Container & Web Applications Web applications are server side applications The most essential requirement.
Java Programming: Advanced Topics 1 Enterprise JavaBeans Chapter 14.
©NIIT Introducing Enterprise JavaBeans (EJB) Lesson 1A / Slide 1 of 43J2EE Server Components Objectives In this lesson, you will learn about: The features.
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.
Enterprise Java Beans. Contents  Understanding EJBs  Practice Section.
Introduction to J2EE Architecture
J2EE Application Development
Distributed System Using Java 2 Enterprise Edition (J2EE)
Understanding and Designing with EJB
ESIS Consulting LLC (C) ESIS Consulting LLC. All rights reserved
JavaServer Faces: The Fundamentals
Component-based Applications
Component Technology Bina Ramamurthy 2/25/2019 B.Ramamurthy.
Presentation transcript:

Ch 2 – Application Assembly and Deployment COSC 617 Jeff Schmitt September 14, 2006

Assembly Assembly of an application or component is the process of collecting all of the elements required (source code, datafiles, configuration files) into a structured format that can be deployed to the server environment.

Deployment Deployment of a component or application is the process of actually installing the runnable codethe runtime environment, which involves making the code available to the server and resolving resource references in the assembly with the resources actually on the server

Application Components J2EE supports various types of application components Java Servlet API JavaServer Pages API JavaServer Faces API Enterprise Java Beans API Configuration Files – configure components and external resources needed Deployment Descriptors – a configuration file for the application itself

J2EE Terminology Component – a functional element of an application that runs within a container and makes use of runtime resources provided by the container (such as security mgmt, transation mgmt, etc) One or more Java classes plus component- specific resources (properties, files, images) 5 flavors: application clients, applets, web, EJB resource adapters

J2EE Terminology - 2 Module Collections of components of the same type, to be run inside the corresponding container type Contains component-specific classes plus any class libraries needed, and other cross- component resources such as datafiles, HTML documents and image files Contains a standard XML deployment descriptor for external resource references and configuration details

Enterprise Application Archive.ear file A set of one or more modules, collectively containing all components of the app. These modules contain –all of the components of the application –a deployment descriptor Packaged into.jar files (java archive) A particular layout

Assembling Applications Getting all the application modules together in the right package structure Deployment descriptor: application.xml – references all the modules which make up an application Modules can be –EJB in an ejb-jar file –Web modules in a war file

JNDI Configuration Services Assets are located at runtime using JNDI lookups in the namespace of the application server Examples: –JMS message queues –JCA resource adapters –DataSource for MySql or Oracle database –Other J2EE components

JNDI Naming Conventions Runtime assets are given names within the java:comp/env namespace in the JNDI service java:comp – J2EE components /env – component runtime environment Coordination required among component code, deployment descriptors, application server Example: java:comp/dev/jdbc/myDS –Referenced in source code –Configured in deployment descriptor –Actual asset is available in Container

Two-level Name Resolution Assign an independent name when configuring within application server Link this asset name to the name specified in the component deployment descriptor Benefits –Allows flexibility –Allows sharing assets among components running on same server

Deploying Applications After application assembly comes application deployment Application server has an internal JNDI directory Resource and component references are linked through JNDI Classloading model – more than one JVM –Assign a separate classloader to each deployed application Physical deployment – vendor specific details in special configuration files

Component Modules Component deployment descriptors specify Module descriptive information, eg. name Component elements (EJB web or resource connector) Configuration data for component services (security services, lifecycle services, persistence services) Resource and component dependencies (JDBC DataSources, JavaMail Sessions, session EJB, entity EJB)

Example EJB Module descriptor –Component elements, configuration, resource component external resources needed Web module descriptor –Servlet mapping – how to recognize certain file names, which refer to servlet instead of file. Example: *.do /viewprofile –Session timeouts –Resource declarations to be resolved by the applic server. Example: EJB’s

Application Assemblies Application archive is just a.jar file with files stored in specific locations Categories of information –Application descriptive information (name) –Module references – location of module.jar file in the application archive –Application security roles- control specific user’s access to components and their operations

Steps in Deploying J2EE Applications Adjust deployment descriptors –Local environmental issues, default settings, maximum number of items, etc. Perform server-specific configuration –Physical configuration of runtime assets not specified in J2EE since application servers implement services in many ways –Configure required assets in application server –Module deployment descriptor links to assets in app server

Deploying J2EE Apps (cont.) Generate container-specific classes –Contaner-specific classes not specified in J2EE specification –Each server provides its own tools or processes for generating these classes JBoss automatically generates EJB interface implementations WebLogic povides command-line tool for generating container-specific classes