Application Servers G Session 11 - Sub-Topic 2 Using Enterprise JavaBeans. Dr. Jean-Claude Franchitti

Similar documents
Overview p. 1 Server-side Component Architectures p. 3 The Need for a Server-Side Component Architecture p. 4 Server-Side Component Architecture

Implementing a Web Service p. 110 Implementing a Web Service Client p. 114 Summary p. 117 Introduction to Entity Beans p. 119 Persistence Concepts p.

Deccansoft Software Services. J2EE Syllabus

Introduction. Enterprise Java Instructor: Please introduce yourself Name Experience in Java Enterprise Edition Goals you hope to achieve

Agenda. Summary of Previous Session. Extreme Java G Session 3 - Main Theme Java Core Technologies (Part I)

Java Enterprise Edition

Oracle 10g: Build J2EE Applications

Enterprise JavaBeans. Layer:01. Overview

Designing a Distributed System

J2EE - Version: 25. Developing Enterprise Applications with J2EE Enterprise Technologies

Enterprise JavaBeans (I) K.P. Chow University of Hong Kong

1Z Oracle. Java Enterprise Edition 5 Enterprise Architect Certified Master

History of Enterprise Java

TOPLink for WebLogic. Whitepaper. The Challenge: The Solution:

Appendix A - Glossary(of OO software term s)

Client/Server-Architecture

Application Servers in E-Commerce Applications

index_ qxd 7/18/02 11:48 AM Page 259 Index

SUN Sun Certified Enterprise Architect for J2EE 5. Download Full Version :

Oracle9iAS Tech nicaloverview

Java EE 7: Back-End Server Application Development

Introduction to componentbased software development

Enterprise Java Unit 1-Chapter 2 Prof. Sujata Rizal Java EE 6 Architecture, Server and Containers

J2EE Development. Course Detail: Audience. Duration. Course Abstract. Course Objectives. Course Topics. Class Format.

Vision of J2EE. Why J2EE? Need for. J2EE Suite. J2EE Based Distributed Application Architecture Overview. Umair Javed 1

J2EE Interview Questions

Application Servers G Session 5 - Sub-Topic 1 Java Naming and Directory Interface (JNDI) Dr. Jean-Claude Franchitti

Application Servers G Session 5 - Main Theme Object Management Architectures. Dr. Jean-Claude Franchitti

Page 1. Extreme Java G Session 8 - Sub-Topic 2 OMA Trading Services

Agenda. Naming & Directory Services. Extreme Java G Naming and directory services JNDI naming directory service provider interface Q & A

NetBeans IDE Field Guide

Java EE Application Assembly & Deployment Packaging Applications, Java EE modules. Model View Controller (MVC)2 Architecture & Packaging EJB Module

Outline. Project Goal. Overview of J2EE. J2EE Architecture. J2EE Container. San H. Aung 26 September, 2003

Component-Based Software Engineering. ECE493-Topic 5 Winter Lecture 26 Java Enterprise (Part D)

Developing Applications with Java EE 6 on WebLogic Server 12c

Mastering RMI: Developing Enterprise Applications In Java And EJB By Öberg, Rickard Oberg, Rickard READ ONLINE

ive JAVA EE C u r r i c u l u m

JAVA. Duration: 2 Months

Java 2 Platform, Enterprise Edition: Platform and Component Specifications

Chapter 2 FEATURES AND FACILITIES. SYS-ED/ Computer Education Techniques, Inc.

CMP 436/774. Introduction to Java Enterprise Edition. Java Enterprise Edition

Borland Application Server Certification. Study Guide. Version 1.0 Copyright 2001 Borland Software Corporation. All Rights Reserved.

Distributed Multitiered Application

Projects. How much new information can fit in your brain? Corporate Trainer s Profile TECHNOLOGIES

Problems in Scaling an Application Client

CS612: IT Technology and Course Overview

BEA WebLogic Server. and BEA WebLogic Express. Introduction to BEA WebLogic Server 6.1

Chapter 6 Enterprise Java Beans

Developing Java TM 2 Platform, Enterprise Edition (J2EE TM ) Compatible Applications Roles-based Training for Rapid Implementation

JVA-163. Enterprise JavaBeans

CERTIFICATION SUCCESS GUIDE ENTERPRISE ARCHITECT FOR JAVA 2 PLATFORM, ENTERPRISE EDITION (J2EE ) TECHNOLOGY

Java EE 6: Develop Business Components with JMS & EJBs

(9A05803) WEB SERVICES (ELECTIVE - III)

Course Content for Java J2EE

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR (ODD SEMESTER) QUESTION BANK

A General ecommerce Platform with Strong International and Local Aspects

BEAWebLogic. Server. Introduction to WebLogic Server and WebLogic Express. Version 8.1 Revised: June 28, 2006 Part Number:

Enterprise JavaBeans. Layer 05: Deployment

"Charting the Course... Mastering EJB 3.0 Applications. Course Summary

Advanced Java Programming

Enterprise Java Security Fundamentals

Java EE Patterns 176

Module 3 Web Component

Web Application Development Using JEE, Enterprise JavaBeans and JPA

Building the Enterprise

BEAWebLogic. Server. Programming WebLogic Deployment

CO Java EE 7: Back-End Server Application Development

Web Application Development Using JEE, Enterprise JavaBeans and JPA

JDBC Today C HAPTER 1 INTRODUCTION

Understanding Impact of J2EE Applications On Relational Databases. Dennis Leung, VP Development Oracle9iAS TopLink Oracle Corporation

What we need. Agenda. What s J2EE. Challenges of Enterprise Application Development

Call: JSP Spring Hibernate Webservice Course Content:35-40hours Course Outline

Java SE7 Fundamentals

The Developer s Guide to Understanding Enterprise JavaBeans. Nova Laboratories

Exam Questions 1Z0-850

Web Design and Applications

PSD1B Advance Java Programming Unit : I-V. PSD1B- Advance Java Programming

Enterprise Java and Rational Rose - Part II

EJB ENTERPRISE JAVA BEANS INTRODUCTION TO ENTERPRISE JAVA BEANS, JAVA'S SERVER SIDE COMPONENT TECHNOLOGY. EJB Enterprise Java

Chapter 1 GETTING STARTED. SYS-ED/ Computer Education Techniques, Inc.

IBM WebSphere Application Server V4.0. Performance. 10/02/01 Copyright 2001 IBM Corporation WS40ST11.prz Page 248 of of 28

Oracle9i Application Server Architecture and Com

Java J Course Outline

BEA WebLogic. Server. Introduction to WebLogic Server and WebLogic Express

Enterprise JavaBeans, Version 3 (EJB3) Programming

COURSE OUTLINE PRE-REQUISITES/CO-REQUISITES: COMP228, COMP214 COURSE ELIGIBILITY FOR PRIOR LEARNING ASSESSMENT AND RECOGNITION (PLAR):

1Z Java SE 5 and 6, Certified Associate Exam Summary Syllabus Questions

WebSphere 4.0 General Introduction

This course is intended for Java programmers who wish to write programs using many of the advanced Java features.

Accurate study guides, High passing rate! Testhorse provides update free of charge in one year!

BEAAquaLogic. Service Bus. Interoperability With EJB Transport

Programming Web Services in Java

Transaction Commit Options

ITdumpsFree. Get free valid exam dumps and pass your exam test with confidence

Plan. Department of Informatics. Advanced Software Engineering Prof. J. Pasquier-Rocha Cours de Master en Informatique - SH 2003/04

Rational Application Developer 7 Bootcamp

Oracle EXAM - 1Z Java EE 6 Enterprise JavaBeans Developer Certified Expert Exam. Buy Full Product.

Software Components and Distributed Systems

Introduction... xv SECTION 1: DEVELOPING DESKTOP APPLICATIONS USING JAVA Chapter 1: Getting Started with Java... 1

JAYARAM. COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli (An approved by AICTE and Affiliated to Anna University)

Transcription:

Application Servers G22.3033-011 Session 11 - Sub-Topic 2 Using Enterprise JavaBeans Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical Sciences Session Outline Enterprise JavaBeans tips 1

Three Enterprise JavaBeans revisions Moscone Released second quarter 1999 Included fixes to clarify the 1.0 specification Described the standard for specifying deployment descriptors using XML Javits Released 6 months after Moscone Emphasized connectivity with legacy systems Enterprise JavaBeans revisions (continued) Milano Released 9 months after Javits Further specified Entity beans Recommended Java servlets (or another serverside mechanism) to communicate with EJBs and create fewer compatibility issues Related press releases & information http://java.sun.com/pr/1998/12/pr981208-05.html http://java.sun.com/products/ejb/faq.html 2

Need to thoroughly test code that must run in multiple EJB environments Reference implementation & conformance tests for cross-container portability not yet available Prototyping is recommended Design validation & implementation test Abide to specification e.g., EJB container does not allow starting or manipulating new threads Internet applications Use Java servlets or some other server-side mechanism to communicate with your EJBs Use both EJB and CORBA Many vendors use the Internet InterOrb Protocol RMI-over-IIOP has been released EJB acts has a toolkit that sits in the middle tier and provide a variety of services 3

Integrate EJB and legacy systems now EJB can make a call to the legacy system Legacy system can make a call to an EJB Pass Java Messaging Service (JMS) messages to an EJB EJBs can send JMS messages using the JMS client API There is no standard way in containers to process incoming JMS messages (need to create a non-ejb proxy to call a bean remote I/F) Creating arrays of structures out of arbitrary-length query result sets? JDBC drivers don t let you find out the number of rows returned by a query Until JDBC 2.0, drivers supported forward-only cursors To insert new data, you must know the array size in order to allocate it Solution Build a wrapper class to a hashtable 4

Solution (continued) Create a new add() method that takes the necessary arguments, constructs a new object, and adds it to the hashtable public void add(int employeeid, Data date, double hours, int contract) DataObject tsl = new DataObject(employeeID, date, hours, contract); put (tsl, tsl); Create a new method that finds the number of objects in the hashtable, create an array of that size for each object in the table, adds it to the array, and return the array import java.sql.date; import java.util.enumeration; public class MyHash extends java.util.hashtable DataObject[ ] getdataobjects( ) int size = size (); DataObject[ ] contents = new DataObject[size]; // get list of keys in hashtable Enumeration mykeys = keys( ); // for each key, retrieve the contents for (in I = 0; I < size ; I++) contents[i] = (DataObject) get(mykeys.nextelement( )); return contents; 5

Know when to use Session and Entity beans Entity beans should represent a particular domain entity (e.g., row in a database table) Entity beans can be shared among multiple clients, and can last beyond the lifespan of asingle client Stateful session beans are associated with a particular client Session beans are created/removed by the client Legacy system can make a call to an EJB Know when to use Session and Entity beans (continued) Use an Entity bean to represent a sharable entity that persists across client connections Use a stateful Session bean to cache state information Use a stateless Session bean when you don t need to keep state information in the middle tier 6

Don t use Entity EJB objects to represent fine-grained data Use higher-level object and aggregates instead e.g., time tracking system likely to have Employee Entity bean but not a TimeSheeLineEntry Entity bean Methods should be relatively large as well Isolate vendor dependencies 7