1. Trang chủ
  2. » Công Nghệ Thông Tin

Practical JBoss Seam Projects 2007 phần 1 pptx

24 289 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 24
Dung lượng 401,56 KB

Nội dung

[...]... improvements delivered with Java EE, the JBoss Seam team saw room for simplifying things even further Figure 1- 2 depicts the Seam framework layered between your application code and the Java EE framework CHAPTER 1 ■ INTRODUCING SEAM Figure 1- 2 Seam- enhanced Java EE framework The Seam Component Model The simplifications provided by Seam stem mostly from the Seam component model— this component model... for web services, etc.) Your application components are then built directly on top of this overall framework, as depicted in Figure 1- 1 1 2 CHAPTER 1 ■ INTRODUCING SEAM Figure 1- 1 Standard Java EE framework In addition to the APIs and component types depicted in Figure 1- 1, Java EE also provides the deployment services, runtime security, and other services you need to create effective applications And... developed using JBoss Seam 1. 2 .1, the latest released version at the time of this writing Certain configuration and code details will not work correctly in earlier versions of Seam, so please be sure you are using version 1. 2 .1 before trying out any of the examples The examples were deployed to JBoss Application Server 4.0.5, with the exception of the “vanilla” Java EE example in Chapter 1, which was... preoccupation that it inevitably becomes xvii Introduction T his book is a practical guide to JBoss Seam, a framework aimed at enhancing the development of Java EE applications The goal of the book is to get you up to speed with Seam as quickly as possible by introducing the core Seam framework and key additional features, following a practical, projects- oriented approach Who This Book Is For This book was written... framework, without JBoss Seam, the customary approach to implement the Gadget Catalog is to use JSF for the UI in conjunction with EJBs for the backing business logic and persistence To start, we’ll implement an EJB 3.0 entity bean to represent the gadgets to be stored in the GADGET table Listing 1- 1 shows the Gadget bean This is a simple EJB 3.0 entity bean 5 6 CHAPTER 1 ■ INTRODUCING SEAM that is mapped... ways: • Seam simplifies Java EE: Seam provides a number of shortcuts and simplifications to the standard Java EE framework, making it even easier to effectively use Java EE web and business components • Seam extends Java EE: Seam integrates a number of new concepts and tools into the Java EE framework These extensions bring new functionality within the Java EE framework You’ll get familiar with Seam in... iteration of the Gadget Catalog is shown in Figure 1- 3, and the database structure (such as it is) is shown in Figure 1- 4 Figure 1- 3 Gadget Catalog pageflow Figure 1- 4 Gadget Catalog database Now all we have to do is build it As a point of reference, let’s first see what the Gadget Catalog looks like in the vanilla Java EE framework The Gadget Catalog Without Seam The code for this example can be found in... of the book cover the fundamentals of JBoss Seam, and really should be read whether you plan to use any of the other Seam services (security, pageflow, etc.) or not The first chapter is an introduction to the overall framework and the model that Seam uses as the backdrop for all of its runtime services The second chapter is a primer on installing and configuring Seam in your application and application... ■INTRODUCTION In most cases, you should be able to deploy the code by simply setting the jboss. home and lib.dir properties in build.properties, and running the deploy-app target in the build script Contacting the Author You can contact Jim Farley at jim@jimfarley.org xxi CHAPTER 1 Introducing Seam T he first thing to understand about Seam is that it’s a framework Actually, it’s a framework that sits on top of... need for extraneous façade beans when all you require is a single EJB Another simplification provided by Seam is the ability to use code annotations to directly bind beans to JSF component names, rather than writing managed-bean entries in 3 4 CHAPTER 1 ■ INTRODUCING SEAM the faces-config.xml file The Seam component model includes annotations that can be used to link an instance of a bean directly to a .

Ngày đăng: 12/08/2014, 21:21

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN