JBoss Seam Presented by Andy Nguyen Truc Pham. What is JBoss Seam? Created by Gavin King Created by Gavin King A lightweight framework for Java EE 5.0.

Slides:



Advertisements
Similar presentations
Introduction to the Spring Framework
Advertisements

Web Development with Karsten Schulz Terp-Nielsen Master Principal Sales Consultant Oracle Denmark.
Apache Struts Technology
Introduction to Spring Matt Wheeler. Notes This is a training NOT a presentation Please ask questions Prerequisites – Introduction to Java Stack – Basic.
An architecture for webb applications, J2EE
JBoss Seam: Contextual Components Jason Bechtel
Persistence Models Margaret Smith. Overview Java Data Objects (JDO) Enterprise Java Beans (EJB) 3.0 Demos and code.
Sapana Mehta (CS-6V81) Overview Of J2EE & JBoss Sapana Mehta.
Entities and Persistence. Entity Beans Topics to be Covered: Entities are POJOs Managed/Unmanaged Entities Persistence Unit EntityManager Basic Relational.
EJB Design. Server-side components Perform –complex algorithms –high volume transactions Run in –highly available environment (365 days/year) –fault tolerant.
JPA java persistence. Notes from wikipedia Entities A persistence entity is a lightweight Java class that typically represents a table in a relational.
Introduction to EJB INFORMATICS ENGINEERING – UNIVERSITY OF BRAWIJAYA Eriq Muhammad Adams J
Session-01. Layers Struts 2 Framework The struts 2 framework is used to develop MVC-based web application. Struts 1.0 was released in June The.
An Introduction to Hibernate Matt Secoske
Lecture 2 - Struts ENTERPRISE JAVA. 2 Contents  Servlet Deployment  Servlet Filters  Model View Controllers  Struts  Dependency Injection.
Introduction to JPA Java Persistence API Introduction to JPA.
CSE446 S OFTWARE Q UALITY M ANAGEMENT Spring 2014 Yazılım ve Uyguluma Geliştirme Yöneticisi Orhan Başar Evren.
Chapter 10 EJB Concepts of EJB Three Components in Creating an EJB Starting/Stopping J2EE Server and Deployment Tool Installation and Configuration of.
Java Frameworks Indy Java Users Group January 29, 2003.
Java Beans.
Agenda What is Hibernate Spring Integration Questions Overview
JPA Java Persistence API. Introduction The Java Persistence API provides an object/relational mapping facility for managing relational data in Java applications.
Ing. Ignacio Roqueta ARTech GeneXus and J2EE.
Enterprise JavaBeans EJB Container Services. EJB container Enterprise JavaBeans are deployed in an EJB container within the application server EJB container.
EJB Entity Beans “Modeling your data”.
1 Stateful Session Beans Stateless Session Beans Michael Brockway Sajjad Shami Northumbria University School of Computing, Engineering & Information Sciences.
EJB Framework.  As we know, EJB is the center of the J2EE architecture that provides a sturdy framework for building enterprise applications. The major.
Chapter 8 Script-free pages. Problem with scripting in JSP When you use scripting (declaration, scriplet, expressions) in your JSP, you actually put Java.
Introduction to Entities
Seminar on. Overview Hibernate. What is it? Hibernate. How does it work? Hibernate Tools.
8/15/2003System Specialists Corporation How to implement BC4J with the Struts Framework Eugene Sicat Technical Architect/Project Manager System Specialists.
JavaEE Seams Easy JBoss Seam: A Web Application Component Framework for EJB3, JPA, JSF and AJAX.
Topic : JPA Kaster Nurmukan. Overview of JPA EntityManager.
Enterprise JavaBeans Understanding EJB Components Version 0.1 Kamal Wickramanayake
Hibernate Persistence. What is Persistence Persist data to database or other storage.  In OO world, persistence means persist object to external storage.
1 Architectural Overview For application developers, assembling enterprise beans requires little or no expertise in the complex system-level issues that.
Hibernate 3.0. What is Hibernate Hibernate is a free, open source Java package that makes it easy to work with relational databases. Hibernate makes it.
Tuscany: a SOA framework Jeffrey Guo Accelrys, Inc.
Model View Controller Architecture of Java Web Applications Dr. M V S Peri Sastry, Ph.D.[BITS-Pilani]
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
Enterprise Java Beans. Model 1 J2EE – Web View Model/View/Controller Model View Control Data base Web Server Model One Architecture HTTP Request HTTP.
Fall CIS 764 Database Systems Engineering L18.2 : Object Relational Mapping … ….Object persistence.
CourseOutline Example & JavaBeans Lec Start with Example Displaying Course Outlines User will select either course “web design & development” or.
Copyright 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Spring MVC Essentials Getting started.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
J2EE Chris Hundersmarck Maria Baron Jeff Webb.  Java 2 Platform, Micro Edition (J2ME)  Java 2 Platform, Standard Edition (J2SE)  Java 2 Platform, Enterprise.
Session Beans Based on: Patel, Brose, Silverman, Mastering Enterprise JavaBeans 3.0.
v110912Java Persistence: EntityManager2 Overview Earlier versions of EJB Specification defined the persistence layer –javax.ejb.EntityBean Java EE 5 moved.
JavaServer Faces framework Craig McClanahan is presented that created Struts web framework and based on experience gathered designed JavaServer.
1 Java Server Pages A Java Server Page is a file consisting of HTML or XML markup into which special tags and code blocks are inserted When the page is.
IS-907 Java EE Introduction to JPA. Java Persistence API A framework for using relational databases in Java programs mapping between tables and classes,
EJB Enterprise Java Beans JAVA Enterprise Edition
Chapter 2 Java Struct 2. Content Basic MVC Architecture Struts 2 Overview Struts 2 - Architecture.
CS 440 Database Management Systems Stored procedures & OR mapping 1.
Современные технологии баз данных Лекция 7. Объектно-реляционное отображение (ORM) Технология отображения объектов какого- либо объектно-ориентированного.
Fall CIS 764 Database Systems Engineering L11: Object Relational Mapping … (a) ORM, Object persistence (b) Pets sequence.
1 EJB 3.0: There’s Something Different About You Martin Jäkle, TSBU Middleware.
HIBERNATE/Java Overview of technology for Hibernate by محمد حسن کاظمی پوران Master : M.M.Nematollahi.
Form Builder Tomáš Černý Michael J. Donahoo Eunjee Song Department of Computer Science Baylor University, Waco, TX.
JBoss Seam Introduction Xiaogang Cao, RedSaga
CS6320 – Java Persistence API
Structure of a web application
Unit 6-Chapter 2 Struts.
JavaBeans and JSP CS-422.
Enterprise Java Bean. Overview of EJB View of EJB Conversation Roles in EJB, Types of Enterprise Beans Lifecycle of Beans Developing Applications using.
Distributed System Using Java 2 Enterprise Edition (J2EE)
Developing and testing enterprise Java applications
Enterprise Java Beans.
CS4961 Software Design Laboratory Understand Aquila Backend
Internet Computing KUT Youn-Hee Han
Presentation transcript:

JBoss Seam Presented by Andy Nguyen Truc Pham

What is JBoss Seam? Created by Gavin King Created by Gavin King A lightweight framework for Java EE 5.0 A lightweight framework for Java EE 5.0 Provides a consistent and easy programming model for enterprise web applications. Provides a consistent and easy programming model for enterprise web applications. Facilitates stateful web applications development. Facilitates stateful web applications development.

Core Components in A Web App. JSP JSP Serves as the front end Serves as the front end May call beans May call beans EJB EJB Server side component Server side component Performs business logic Performs business logic ORM ORM Converts objects to database entities Converts objects to database entities Persist to and query from databases Persist to and query from databases

A HelloBean example Hello ! Hello ! The current time is. Have a nice day! Please type in your user name: The current time is. Have a nice day! Please type in your user name:

A Seam Hello World example A user enters his/her name into a web form to say Hello to Seam A user enters his/her name into a web form to say Hello to Seam Seam saves name to database Seam saves name to database Seam displays all the names of those who had said Hello to Seam Seam displays all the names of those who had said Hello to Seam

Create A public class Person implements Serializable { private long id; private public long getId() { return id;} public void setId(long id) { this.id = id; } public String getName() { return name; } public void setName(String name) {this.name = name;} } public long getId() { return id;} public void setId(long id) { this.id = id; } public String getName() { return name; } public void setName(String name) {this.name = name;} }

Map the Data Model to A Web Form Please enter your name: Please enter your name: </h:form>

public class ManagerAction implements private Person private List private EntityManager em; public String sayHello () { em.persist (person); person = new Person (); fans = em.createQuery("select p from Person p").getResultList(); return null; }

Summary Seam simplifies web application development Intergrate Java EE frameworks Intergrate Java EE frameworks Designed for stateful web applications Designed for stateful web applications Promotes the use of POJO and less XML using bijection Promotes the use of POJO and less XML using bijection Configuration by exception Configuration by exception