<Insert Picture Here> Productive JavaEE 5.0 Development

Similar documents
Oracle - Developing Applications for the Java EE 7 Platform Ed 1 (Training On Demand)

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

Java EE 7: Back-End Server Application Development

Deccansoft Software Services. J2EE Syllabus

Oracle Developer Day

Web Application Development Using JEE, Enterprise JavaBeans and JPA

Java EE 5 Development for WebSphere Application Server V7

<Insert Picture Here> Exploring Java EE 6 The Programming Model Explained

Chapter 1 Introducing EJB 1. What is Java EE Introduction to EJB...5 Need of EJB...6 Types of Enterprise Beans...7

Java- EE Web Application Development with Enterprise JavaBeans and Web Services

Developing Applications with Java EE 6 on WebLogic Server 12c

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

Web Application Development Using JEE, Enterprise JavaBeans and JPA

open source community experience distilled

CO Java EE 7: Back-End Server Application Development

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

Developing Enterprise JavaBeans for Oracle WebLogic Server 12c (12.2.1)

Java EE 6: Develop Web Applications with JSF

Contents at a Glance

Oracle Corporation

Enterprise JavaBeans, Version 3 (EJB3) Programming

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

Java Enterprise Edition

Oracle 10g: Build J2EE Applications

1 Markus Eisele, Insurance - Strategic IT-Architecture

Hands-on Development of Web Applications with Java EE 6

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

Oracle Fusion Middleware

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

Shale and the Java Persistence Architecture. Craig McClanahan Gary Van Matre. ApacheCon US 2006 Austin, TX

Migrating traditional Java EE applications to mobile

Chapter 6 Enterprise Java Beans

NetBeans IDE Field Guide

Specialized - Mastering JEE 7 Web Application Development

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

Oracle Developer Day

Developing Applications for Oracle WebLogic Server g Release 1 (10.3.6)

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

Enterprise JavaBeans 3.1

Fast Track to Java EE

Architect Exam Guide. OCM EE 6 Enterprise. (Exams IZO-807,1ZO-865 & IZO-866) Oracle Press ORACLG. Paul R* Allen and Joseph J.

Courses For Event Java Advanced Summer Training 2018

Apache TomEE Tomcat with a kick

INTRODUCTION TO COMPONENT DESIGN IN JAVA EE COMPONENT VS. OBJECT, JAVA EE JAVA EE DEMO. Tomas Cerny, Software Engineering, FEE, CTU in Prague,

Distributed Multitiered Application

Java EE 6 - Update Harpreet Singh GlassFish Portfolio Product Manager

J2EE Interview Questions

"Web Age Speaks!" Webinar Series

ENTERPRISE JAVABEANS TM (EJB TM ) 3.1 TECHNOLOGY

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

Java SE 8 Fundamentals

Basics of programming 3. Java Enterprise Edition

J2EE 1.4. Magnus Larsson. Callista Enterprise AB.

Enterprise Development

Spring Framework 2.5: New and Notable. Ben Alex, Principal Software Engineer, SpringSource

Deployment. See Packaging and deployment processes

Oracle Developer Day

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

JVA-163. Enterprise JavaBeans

Leverage Rational Application Developer v8 to develop Java EE6 application and test with WebSphere Application Server v8

Java J Course Outline

Java SE7 Fundamentals

Problems in Scaling an Application Client

Exam Questions 1Z0-895

BEAWebLogic Server. Programming WebLogic Enterprise JavaBeans, Version 3.0

OracleAS 10g R3: Build J2EE Applications II

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

Oracle Fusion Middleware 11g: Build Applications with ADF I

Java EE Patterns 176

Java EE 7 is ready What to do next? Peter Doschkinow Senior Java Architect

Java EE 6: Develop Business Components with JMS & EJBs

IBM WebSphere Application Server 8. Java EE 6 Feature Packs

The 1st Java professional open source Convention Israel 2006

Module 8 The Java Persistence API

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

WAS V7 Application Development

Oracle Fusion Middleware

What's New in J2EE 1.4

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

Oracle Developer Day

Java Training Center, Noida - Java Expert Program

JBoss SOAP Web Services User Guide. Version: M5

Seam 3. Pete Muir JBoss, a Division of Red Hat

Programming Web Services in Java

Building the Enterprise

CO Java EE 6: Develop Web Services with JAX-WS & JAX-RS

The Next Generation. Prabhat Jha Principal Engineer

Developing RESTful Services in Java

Fast Track to EJB 3.0 and the JPA Using JBoss

OCP JavaEE 6 EJB Developer Study Notes

object/relational persistence What is persistence? 5

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

JavaEE.Next(): Java EE 7, 8, and Beyond

Techniques for Building J2EE Applications

Oracle Fusion Middleware 11g: Build Applications with ADF I

Oracle ADF: The technology behind project fusion. Lynn Munsinger Principal Product Manager Application Development Tools Oracle Corporation

Enterprise JavaBeans. Layer:01. Overview

COURSE 9 DESIGN PATTERNS

V3 EJB Test One Pager

SUN Sun Cert Bus Component Developer Java EE Platform 5, Upgrade. Download Full Version :

Transcription:

<Insert Picture Here> Productive JavaEE 5.0 Development Frank Nimphius Principle Product Manager

Agenda Introduction Annotations EJB 3.0/JPA Dependency Injection JavaServer Faces JAX-WS Web Services Better JavaEE Productivity with ADF <Insert Picture Here>

The benefit of the JEE standard Implementation independent blueprint Describes how J2EE platform features work and how they are used by developers Developed through the Java Community Process Ensure that J2EE applications are portable across J2EE containers Leverage J2EE container services Solid base for custom, open source and vendor frameworks

JEE 5 - what's in the box? JSP 2.1 JSF 1.2 Servlet 2.5 EJB 3.0 /JPA 1.0 JAX-WS 2.0 JMS 1.1 JNDI 1.2 JCA 1.5 JTA 1.1 JMX 1.2 JACC and JAAS 1.0 J2EE Management 1.1

Annotations <Insert Picture Here>

Annotations in Java EE Simplify development of applications EJB / JPA Servlet Web Services Can be used instead of deployment descriptors Define types of beans, interfaces Lifecycle callbacks Use of resources DataSource, JMS object, mail, etc. Use of services Transactions, Security settings, Timer, etc. Common metadata annotations API (JSR 250)

Common metadata annotations Annotations javax.annotation.resource javax.annotation.postconstruct javax.annotation.predestroy javax.annotation.security.runas javax.annotation.security.rolesallowed javax.annotation.security.permitall javax.annotation.security.denyall javax.annotation.security.declareroles Module used EJB, Web, App Client EJB, Web EJB, Web EJB EJB EJB EJB EJB

EJB 3.0 / JPA <Insert Picture Here>

From "Good" to "Better" EJB 2.1 CMP Proprietary POJO Persistence EJB Java Persistence API JDO

Example: JPA Entity @Entity @Table(name="CUSTOMERS") public class Customer { @Id @Column(name= CUSTID ) private Long id; private String name; private Address address; private HashSet orders = new HashSet(); CUSTOMERS CUSTID (PK) NAME public Long getid() { return id; } protected void setid (Long id) { this.id = id; }...

Data Manipulation To insert new data: Create a new entity object Call the EntityManager.persist() method @PersistenceContext private EntityManager em;... public void persistuser() { User user = new User(); user.setfirstname( Frank"); user.setlastname( Nimphius"); em.persist(user); }

D E M O N S T R A T I O N EJB 3.0 / JPA

Dependency Injection <Insert Picture Here>

Resource lookup in J2EE 1.4 Need ejb-ref entry: <ejb-ref-name>mycart</ejb-ref-name> <ejb-ref-type>session</ejb-ref-type> <home>carthome</home> <remote>cart</remote> Complex lookup: Object homeobject = context.lookup("java:comp/env/mycart"); CartHome home = (CartHome) PortableRemoteObject.narrow(homeObject,CartHome.class); Cart cart = (Cart) PortableRemoteObject.narrow(home.create(), Cart.class); cart.additem("myitem1");

Dependency injection in JEE 5.0

Dependency injection Container can initialize instance variables at time bean is made available These techniques can be used to inject: Resources, Session bean references EntityManager Web service references Common annotations

Examples @EJB AdminService bean; public void privilegedtask() { bean.admintask(); } @Resource(name= mydb ) public void setdatasource(datasource mydb) { customerdb = mydb; } @Resource javax.ejb.sessioncontext sc; TimerService ts = sc.gettimerservice();

D E M O N S T R A T I O N Dependency Injection

JavaServer Faces <Insert Picture Here>

Evolution of J2EE web tier Servlets JSP JSF Each is built on the previous layer Progressive levels of abstraction Higher level programming

JSF technology JSF UI components - encapsulated in JSP tag libraries Navigation Model defines rules for navigation Managed Beans - facilitate the UI logic of the application Helper Objects Validation and conversion Abstracts away from HTTP Developers don t need to understand request-response cycle Abstracts away from HTML Developers work with components, not markup Developers don t need to decode requests

JSF architecture Device Renderer UIComponent is rendered through Renderer class Expression Language Value Binding is used to access managed bean also know as a "backing bean" Managed bean accesses J2EE persistence layer UI Component Expr. Language Managed bean JSF Page J2EE Persistence Layer / EJB 3.0 RDBMS

New in JSF 1.2 Common Expression Language used in JSP 2.1 and JSF 1.2 Component tree is rendered so that no premature JSP rendering happens Messages are improved and allow to override default messages in component attributes. Also, labels can be part of the message Improved state saving to better handle multiple frames and windows. In addition, client state can be encrypted Component ID generation can be switched off

Better JavaEE Productivity with ADF <Insert Picture Here>

JSR-227 Device Renderer Standard data binding Uses meta-data to describe business APIs Abstracts Business Services Exposes consistent client programming API Reduces learning curve Visual and declarative development UI Component Expr. Language bindings Object JSF Page ADF Binding ADF DataControl EJB 3.0 Web Service BPEL RDBMS

D E M O N S T R A T I O N Building JavaEE Web Applications with ADF

JAX-WS Web Services <Insert Picture Here>

Java EE 5 WS APl JAX WS 2.0 Web Services metadata 2.0 JAXB 2.0

JAX-WS Java API for XML Web Services SOAP messages over http Translates API calls from and to SOAP messages Uses annotations to define POJO or stateless EJB session bean as Web Service @WebService @WebMethod Business methods Must be public Can't be static or final

@PostConstruct, @PreDestroy PostConstruct Called by the container Called before WS interacts with client PreDestroy Called by container Called before endpoint is removed from operation

Web Service with JAX-WS 2.0 Annotate bean class or endpoint interface POJO or Stateless EJB Package and deploy Not required to run through Web Service Assembler or any other tool Doesn t need an endpoint interface @WebService(HelloServiceInf.class) public class HelloServiceBean{ @WebMethod public String sayhello(string name) {}.. }

Using JAX-WS Web Services JavaEE 5.0 simplified Web Service invocation Annotation used on Web Service client public class ResponseServlet extends HTTPServlet { @WebServiceRef(wsdlLocation= "http://localhost:8080/helloservice/hello?wsdl") static HelloService service;

D E M O N S T R A T I O N JAX-WS Web Service

Summary Standards are important JEE 5.0 simplifies standard based application development EJB 3.0 and JavaServer Faces are new in JEE 5.0 EJB 3.0 simplifies J2EE persistence using POJOs and POJIs JSF is a framework for building display agnostic web applications JAX-WS introduces annotations to Web Services JSR-227 defines a standard binding layer that abstracts Business Service implementation details