Showing posts with label J2EE. Show all posts
Showing posts with label J2EE. Show all posts

Apr 22, 2008

THE Java™ EE 5 Tutorial


About This Tutorial:

THE Java™ EE 5 Tutorial is a guide to developing enterprise applications for the Java Platform, Enterprise Edition 5 (Java EE 5). Here we cover all the things you need to know to make the best use of this tutorial.

Who Should Use This Tutorial:

This tutorial is intended for programmers who are interested in developing and deploying Java EE 5 applications on the Sun Java System Application Server Platform Edition 9.

How to Read This Tutorial

The Java EE 5 platform is quite large, and this tutorial reflects this. However, you don’t have to digest everything in it at once. The tutorial has been divided into parts to help you navigate the content more easily.
This tutorial opens with an introductory chapter, which you should read before proceeding to any specific technology area. Chapter 1 covers the Java EE 5 platform architecture and APIs along with the Sun Java System Application Server Platform Edition 9.
When you have digested the basics, you can delve into one or more of the five main technology areas listed next. Because there are dependencies between some of the chapters, Figure 1 contains a roadmap for navigating through the tutorial.

The web-tier technology chapters cover the components used in developing the presentation layer of a Java EE 5 or stand-alone web application:
• Java Servlet • JavaServer Pages (JSP) • JavaServer Pages Standard Tag Library (JSTL) • JavaServer Faces • Web application internationalization and localization

The web services technology chapters cover the APIs used in developing

standard web services:
• The Java API for XML-based Web Services (JAX-WS) • The Java API for XML Binding (JAXB) • The Streaming API for XML (StAX) • The SOAP with Attachments API for Java (SAAJ) • The Java API for XML Registries (JAXR)

The Enterprise JavaBeans (EJB) technology chapters cover the components

used in developing the business logic of a Java EE 5 application:
• Session beans
• Message-driven beans

The Persistence technology chapters cover the Java Persistence API, which

is used for accessing databases from Java EE applications:
• Introduction to the Java Persistence API
• Persistence in the Web Tier
• Persistence in the EJB Tier
• The Java Persistence Query Language

The platform services chapters cover the system services used by all the

Java EE 5 component technologies:
• Transactions
• Resource connections
• Security
• Java Message Service
• The Connector architecture

After you have become familiar with some of the technology areas, you are
ready to tackle the case studies, which tie together several of the technologies discussed in the tutorial. The Coffee Break Application (Chapter 37) describes an application that uses the web application and web services APIs. The Duke’s Bank Application (Chapter 38) describes an application that employs web application technologies, enterprise beans, and the Java Persistence API.

Finally, the appendix contains auxiliary information helpful to the Java EE 5
application developer:
• Java encoding schemes (Appendix A)

Download The Java EE 5 Tutorial


Rapid J2EE Development: An Adaptive Foundation for Enterprise Applications


How This Book Is Organized:
The contents of this book are broken up into four logical parts:

Part I: Adaptive Processes
  • Chapter 1: A J2EE Tutorial Adaptive Foundation. This chapter introduces the concepts behind the creation of an adaptive foundation for rapid development.
  • Chapter 2: Rapid Application Development. Techniques commonly associated with the rapid development of software, including rapid development languages, approaches to prototyping, and timeboxed development methods, are described in this chapter.
  • Chapter 3: Embracing Adaptive Methods. Chapter 3 explores the importance of lightweight development methodologies that incorporate an iterative approach to building software.
Part II: Agile Architectures
  • Chapter 4: Designing for Rapidity. This chapter looks at how the choices we make at design time have implications for the project's timeframe.
  • Chapter 5: Modeling Software. The topic of this chapter is the use of models for building software architectures, and it examines how UML diagrams enable the communication, validation, and exploration of system designs.
  • Chapter 6: Code Generation. We discuss the merits of passive and active code generation. The use of XDoclet for generating boilerplate code artifacts for Enterprise JavaBeans is illustrated by example, along with the use of Apache's Velocity template engine.
  • Chapter 7: Rapidity and the Database. The repetitive nature of data access code makes it a prime candidate for code generation. This chapter looks at the time savings to be had from the use of the code generation tool Middlegen, as well as at how object-relational mapping products can ease the process of mixing object-oriented technology with that of relational database technology.
  • Chapter 8: Model-Driven Architecture. This chapter brings together models with code generation techniques to explore the MDA paradigm. The use of the open source MDA tool AndroMDA is covered by example.

Part III: Rapid Languages

  • Chapter 9: Scripting. This chapter looks at the benefits of scripting languages and introduces the Java-compatible scripting language Jython.
  • Chapter 10: Working to Rule. This chapter examines the benefits of using rule engines to maintain business logic. The open source, expert system shell Jess is introduced as an example of a rule-based language.
  • Chapter 11: Aspect-Oriented Programming. AOP provides new language constructs for modularizing crosscutting concerns. The result is a powerful mechanism for applying changes dynamically to an application. This chapter introduces the AOP language AspectJ and the AOP framework AspectWerkz.

Part IV: Dynamic Environments

  • Chapter 12: Optimal Builds. Chapter 12 addresses the importance of having a highly efficient and optimized build process in place for conducting rapid development.
  • Chapter 13: The Integrated Development Environment. We examine the need to invest in sophisticated and integrated development tools. The open source developer's workbench Eclipse is introduced as an example of a suitable J2EE development environment.
  • Chapter 14: Test-Driven Development. The practice of test-driven development is key to defining an approach that is resilient to changing requirements and designs. This chapter looks at the importance of constructing an automated unit test suite and covers the JUnit framework for writing unit tests as well as the use of mock objects in testing.
  • Chapter 15: Efficient Quality Assurance. The final chapter looks at using automated testing tools for undertaking functional and performance testing. The open source tools HttpUnit and Apache JMeter are covered by example.

Download This Books

Apr 21, 2008

The Java 2 Platform, Enterprise Edition (J2EE)

Overview of the Book and Technology:

The Java 2 Platform, Enterprise Edition (J2EE) defines the standard for developing n-tier enterprise applications using Java. J2EE simplifies enterprise applications by basing them on standardized modular components and providing for those components a complete set of services that handle the complexities automatically.

N-tier applications are difficult to build. Usually building such an application
requires people with a variety of skills and an understanding of both modern and legacy code and data. Enterprise applications typically use heterogeneous approaches to systems development and require the integration of tools from a variety of vendors and the merging of disparate application models and standards.



This book covers the various components of J2EE that are used to build enterprise
n-tier applications, including the following:
  • JavaServer Pages (JSP)
  • Enterprise JavaBeans (EJB)
  • Java Messaging Service (JMS)
  • Java Naming and Directory Interface (JNDI)
  • Java Authentication and Authorization Service (JAAS)
  • Java Connector Architecture (JCA)
  • And more . . .

The author team recommends that the chapters in this book be read in order, as each chapter builds upon previous chapters. If reading the chapters in order is not viable, reading a particular section in a single sitting may be a better choice.

Contents :
Part I: Introduction
Chapter 1: Understanding Java and the J2EE Platform
Chapter 2: Reviewing XML Fundamentals
Chapter 3: Introducing Application Servers
Chapter 4: Understanding Remote Method Invocation

Part II: The Presentation Tier
Chapter 5: Studying Servlet Programming
Chapter 6: Going Over JSP Basics
Chapter 7: Using JSP Tag Extensions

Part III: The Enterprise Information System Tier
Chapter 8: Working with JavaMail
Chapter 9: Understanding the Java Messaging Service
Chapter 10: Introducing Java Transactions
Chapter 11: Examining JNDI and Directory Services
Chapter 12: Understanding Java Authentication and Authorization Services
Chapter 13: Exploring Java Cryptography Extensions

Part IV: The Service Tier
Chapter 14: Understanding EJB Architecture and Design
Chapter 15: Explaining Session Beans and Business Logic .
Chapter 16: Working with Entity Beans
Chapter 17: Using Message-Driven Beans

Part V: The Data Tier
Chapter 18: Reviewing Java Database Connectivity
Chapter 19: Understanding the J2EE Connector Architecture

Part VI: Web Services
Chapter 20: Introducing Web Services
Chapter 21: Digging Deeper into SOAP, WSDL, and UDDI
Chapter 22: Understanding J2EE Web Services

Part VII: Patterns
Chapter 23: Reviewing Presentation-Tier Patterns
Chapter 24: Working with Service-Tier Patterns
Chapter 25: Using Data-Tier Patterns

Part VIII: Advanced Topics
Chapter 26: Exploring Frameworks and Application Architecture
Chapter 27: Using ANT to Build and Deploy Applications
Chapter 28: Creating High-Performance Java Applications
Appendix A: Airline Reservations Business Case
Appendix B: Magazine Publisher Business Case
Appendix C: Additional Reading and References

Download This Books and tutorials

The Java™ EE 5 Tutorial, Third Edition: For Sun Java System Application Server Platform Edition 9

This tutorial is a guide to developing enterprise applications for the Java Platform, Enterprise Edition 5 (Java EE 5). Here we cover all the things you need to know to make the best use of this tutorial.

Who Should Use This Tutorial :
This tutorial is intended for programmers who are interested in developing and deploying Java EE 5 applications on the Sun Java System Application Server Platform Edition 9.

How to Read This Tutorial
The Java EE 5 platform is quite large, and this tutorial reflects this. However, you don't have to digest everything in it at once. The tutorial has been divided into parts to help you navigate the content more easily.

This tutorial opens with an introductory chapter, which you should read before proceeding to any specific technology area. Chapter 1 covers the Java EE 5 platform architecture and APIs along with the Sun Java System Application Server Platform Edition 9.
When you have digested the basics, you can delve into one or more of the five main technology areas listed next. Because there are dependencies between some of the chapters, Figure 1 contains a roadmap for navigating through the tutorial.

The web-tier technology chapters cover the components used in developing the presentation layer of a Java EE 5 or stand-alone web application:
  • Java Servlet
  • JavaServer Pages (JSP)
  • JavaServer Pages Standard Tag Library (JSTL)
  • JavaServer Faces
  • Web application internationalization and localization
The web services technology chapters cover the APIs used in developing standard web services:
  • The Java API for XML-based Web Services (JAX-WS)
  • The Java API for XML Binding (JAXB)
  • The Streaming API for XML (StAX)
  • The SOAP with Attachments API for Java (SAAJ)
  • The Java API for XML Registries (JAXR)

The Enterprise JavaBeans (EJB) technology chapters cover the components used in developing the business logic of a Java EE 5 application:
  • Session beans
  • Message-driven beans

The Persistence technology chapters cover the Java Persistence API, which is used for accessing databases from Java EE applications:
  • Introduction to the Java Persistence API
  • Persistence in the Web Tier
  • Persistence in the EJB Tier
  • The Java Persistence Query Language

The platform services chapters cover the system services used by all the Java EE 5 component technologies:
  • Transactions
  • Resource connections
  • Security
  • Java Message Service
  • The Connector architecture

Download this tutorial

Apr 9, 2008

J2EE Best Practices: Java Design Patterns, Automation, and Performance


Overview of the Book and Technology
J2EE Best Practices: Java Design Patterns, Automation, and Performance will supply a set of best practices for J2EE software development and then use them to construct an application architecture approach referred to as the reference architecture. The reference architecture will provide a basis for rapidly building transactional business applications using J2EE technology. The design and implementation of the reference architecture is based on a set of guiding principles that will be used to optimize and automate J2EE development.

Contents :
Chapter 1 Building Business Applications with J2EE
Elements of Transactional, Web-Based Business Applications, The Reference Architecture, The J2EE Platform Approach, The Model-View-Controller Architecture Approach, Best Practices for Building Business Applications
with J2EE

Chapter 2 The Business Object Architecture: Design Considerations
Business Objects in a Banking Application, Elements of Business Objects, Design Considerations, Best Practices for Designing Business Objects


Chapter 3 Building Business Objects: Managing Properties and Handling Errors
Managing Properties, Value Objects and Lightweight Business Objects, Object Validation and Error Handling, Best Practices for Implementing Business Objects: Part One


Chapter 4 Building Business Objects: Persistence, Relationships, and the Template Method Pattern
Object Persistence, The Base Class as a Template, Overall Business Object Metadata Approach, Data Caching, Best Practices for Implementing Business Objects: Part Two

Chapter 5 The Service-Based Architecture: Design Considerations
Elements of Service-Based Components, Design Considerations, Best Practices for Designing Service-Based Components

Chapter 6 Building Service-Based Components
The Actual Service Interface, An Implementation for Argument Lists, The Session Bean as a Component Wrapper to the Service, Responsibilities of the Service Component,
Update Service Examples 225
Updating Multiple Business Objects 233
The New Customer Service 234
Data Retrieval Services 240
Building Generic, Reusable Services 251
Implementing the Controller Pattern in Services 253
Best Practices for Implementing Service-Based
Components

Chapter 7 The User Interaction Architecture: Design Considerations and an Overview of Jakarta Struts
Elements of the User Interaction Architecture 261
Design Considerations 265
An Overview of Jakarta Struts 284
Best Practices for Designing the User
Interaction Architecture


Chapter 8 Building the User Interaction Architecture
The Change Address Page 301
The Change Address JSP 307
The View Accounts Page 332
The New Customer Wizard 342
A Template for the Action Class 362
Web Services 369
Best Practices for Implementing the
User Interaction Architecture

Chapter 9 Strengthening the Bank Application: Adding Security and Advanced Functionality
Application Security 375
Interesting Aspects of the Bank Application 392
Best Practices for Advanced Web Application Development 417

Chapter 10 Performance
Overall Performance Approach 421
Performance in J2EE Applications 430
Best Practices for J2EE Performance Engineering

Chapter 11 Moving toward Reuse in the Reference Architecture
Common Roadblocks and Corresponding Best Practices 444
Reuse in the Reference Architecture 452
The Strategic View of the Architecture 454
Best Practices for Moving toward Reuse


Download This Books
Page 496
Copyright © 2003 by Darren Broemmer. All rights reserved.
Published by Wiley Publishing, Inc., Indianapolis, Indiana
Published simultaneously in Canada
Publisher: Bob Ipsen
Editor: Theresa Hudson
Developmental Editor: Kenyon Brown
Editorial Manager: Kathryn A. Malm
Managing Editor: Pamela Hanley
New Media Editor: Brian Snapp
Text Design & Composition: Interactive Composition Corporation

Mar 4, 2008

Java for the Web with Servlets, JSP, and EJB: A Developer's Guide to J2EE Solutions


Java for the Web with Servlets, JSP and EJB is the one book you need to master Java web programming. It covers all the technologies needed to program web applications in Java using Servlets 2.3, JSP 1.2, EJB 2.0 and client-side programming with JavaScript. These technologies are explained in the context of real-world projects, such as an e-commerce application, a document management program, file upload and programmable file download, and an XML-based online book project.

In addition to excellent content, this book includes licenses to two Java web components from BrainySoftware.com. You receive a full license of the Programmable File Download component for commercial and non-commercial deployment. You are also granted to a license to deploy the author's popular File Upload bean for non-commercial use, which has been licensed by the Fortune 500 company Commerce One and purchased by major corporations such as Saudi Business Machine, Ltd. and Baxter Healthcare Corporation.

Overview of Parts and Chapters
This book consists of four parts, including the appendixes.
Part I: Building Java Web Applications
This part is comprised of 20 chapters on servlets and JavaServer Pages (JSP)
Chapter 1, The Servlet Technology
Chapter 2, Inside Servlets
Chapter 3, Writing Servlet Applications
Chapter 4, Accessing Databases with JDBC
Chapter 5, Session Management
Chapter 6, Application and Session Events
Chapter 7, Servlet Filtering
Chapter 8, JSP Basics
Chapter 9, JSP Syntax
Chapter 10, Developing JSP Beans
Chapter 11, Using JSP Custom Tags
Chapter 12, Programmable File Download
Chapter 13, File Upload
Chapter 14, Security Configuration
Chapter 15, Caching
Chapter 16, Application Deployment
Chapter 17, Architecting Java Web Applications
Chapter 18, Developing E-Commerce Applications
Chapter 19, XML-Based E-Books
Chapter 20, Web-Based Document

Part II: Client-Side Programming with JavaScript
Chapter 21, JavaScript Basics
Chapter 22, Client-Side Programming Basics
Chapter 23, Redirection
Chapter 24, Client-Side Input Validation
Chapter 25, Working with Client-Side Cookies
Chapter 26, Working with Object Trees
Chapter 27, Controlling Applets

Part III: Developing Scalable Applications with EJB
Chapter 28, Enterprise JavaBeans
Chapter 29, The Session Bean
Chapter 30, Entity Beans
Chapter 31, EJB Query Language
Chapter 32, Java Message Service
Chapter 33, Message-Driven Beans

Filetype : pdf
Page 359
Download Java for the Web with Servlets, JSP and EJB