Java EE 5 Development with NetBeans 6


Java EE 5 Development with NetBeans 6
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$17.99
save 40%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$49.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  • Use features of the popular NetBeans IDE to improve Java EE development
  • Careful instructions and screenshots lead you through the options available
  • Covers the major Java EE APIs such as JSF, EJB 3 and JPA, and how to work with them in NetBeans
  • Covers the NetBeans Visual Web designer in detail

Book Details

Language : English
Paperback : 400 pages [ 235mm x 191mm ]
Release Date : October 2008
ISBN : 1847195466
ISBN 13 : 9781847195463
Author(s) : David R. Heffelfinger
Topics and Technologies : All Books, Application Development, Java, Open Source


Table of Contents

Preface
Chapter 1: Getting Started with NetBeans
Chapter 2: Developing Web Applications with Servlets and JSPs
Chapter 3: Enhancing JSP Functionality with JSTL and Custom Tags
Chapter 4: Developing Web Applications using JavaServer Faces
Chapter 5: Interacting with Databases through the Java Persistence API
Chapter 6: Visual Web JSF Development
Chapter 7: Implementing the Business Tier with Session Beans
Chapter 8: Messaging with JMS and Message Driven Beans
Chapter 9: Web Services
Chapter 10: Putting it all Together
Appendix A: Debugging Enterprise Applications with the NetBeans Debugger
Appendix B: Identifying Performance Issues with NetBeans Profiler
Index
  • Chapter 1: Getting Started with NetBeans
    • Introduction
    • Downloading NetBeans
    • Installing NetBeans
      • Microsoft Windows
      • Mac OS X
      • Linux and Solaris
      • Other Platforms
      • Installation Procedure
    • Starting NetBeans for the First Time
    • Configuring NetBeans for Java EE Development
      • Integrating NetBeans with a Third Party Application Server
      • Integrating NetBeans with a Third Party RDBMS
        • Adding a JDBC Driver to NetBeans
        • Connecting to a Third Party RDBMS
    • Deploying Our First Application
    • NetBeans Tips for Effective Development
      • Code Completion
      • Code Templates
      • Keyboard Shortcuts
      • Understanding NetBeans Visual Cues
    • Summary
  • Chapter 2: Developing Web Applications with Servlets and JSPs
    • Creating Our First Web Application
      • Modifying NetBeans' Generated Code
        • Developing the Input Page
        • Developing the Output Page
    • Servlet Development
      • Adding a Servlet to Our Application
    • Securing Web Applications
      • Implementing Form Based Authentication
        • Implementing the Login Page
        • Implementing a Login Error Page
        • Configuring Our Application for Form-Based Authentication
    • JSP Fragments
      • Creating a JSP Fragment in NetBeans
    • Monitoring Web Applications with NetBeans HTTP Monitor
    • Summary
  • Chapter 3: Enhancing JSP Functionality with JSTL and Custom Tags
    • Core JSTL Tags
      • Conditionally Displaying Part of a Page with the <c:if> Tag
      • Displaying Mutually Exclusive Markup with the <c:choose> Tag
      • Iterating through Arrays or Collections with the <c:forEach> Tag
    • SQL JSTL Tags
      • Retrieving Database Data with the <sql:query> Tag
      • Modifying Database Data with the <sql:update> Tag
        • Inserting Database Data
        • Updating Database Data
        • Deleting Database Data
    • Closing Remarks about JSTL
    • Custom JSP Tags
    • Summary
  • Chapter 5: Interacting with Databases through the Java Persistence API
    • Creating Our First JPA Entity
      • Adding Persistent Fields to Our Entity
      • Creating a Data Access Object (DAO)
      • Generating the User Interface
      • Implementing the Controller
      • Trying Out Our Application
    • Automated Generation of JPA Entities
      • Named Queries and JPQL
      • Entity Relationships
    • Generating JSF Applications from JPA Entities
    • Summary
  • Chapter 6: Visual Web JSF Development
    • Writing Our first Visual Web Application
      • Adding Additional Components to Our Application
        • Adding Additional Text Fields
        • Adding a Drop-Down List Component
        • Adding a Message Component to Each Input Field
        • Grouping Error Messages with the Message Group Component
        • Ajax Autovalidation
        • Organizing Our Page into Tabs
        • Binding a Drop-Down List to a Database Table
        • Ajax-Enabling Visual Web Applications
    • Summary
  • Session Bean Transaction Management
  • Implementing Aspect-Oriented Programming with Interceptors
    • Implementing the Interceptor Class
    • Decorating the EJB with the @Interceptors Annotations
  • EJB Timer Service
    • Implementing the Client
  • Generating Session Beans from JPA Entities
  • Summary
  • Chapter 9: Web Services
    • Introduction to Web Services
    • Creating a Simple Web Service
      • Testing Our Web Service
      • Developing a Client for Our Web Service
    • Exposing EJBs as Web Services
      • Implementing New Web Services as EJBs
      • Exposing Existing EJBs as Web Services
      • Creating a Web Service from an Existing WSDL
    • Summary
  • Chapter 10: Putting it all Together
    • Creating Our Enterprise Project
      • Implementing the Data Access Layer
      • Implementing the User Interface Layer
        • Adding User Interface Components to the Page
        • Populating the Table
        • Testing Our Application
        • Adding Missing Functionality
        • Defining Navigation Rules
        • Testing the Completed Application
    • Summary

David R. Heffelfinger

David Heffelfinger is the Chief Technology Officer of Ensode Technology, LLC, a software consulting firm based in the greater Washington DC area. He has been architecting, designing and developing software professionally since 1995 and has been using Java as his primary programming language since 1996. He has worked on many large scale projects for several clients including the US Department of Homeland Security, Freddie Mac, Fannie Mae, and the US Department of Defense. He has a Masters degree in Software Engineering from Southern Methodist University. David is editor in chief of Ensode.net (http://www.ensode.net), a website about Java, Linux, and other technology topics.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


Errata

- 2 submitted: last submission 10 Sep 2012

Errata type: Technical | Page number: 270

We were using nightly builds of NetBeans 6.5 at the time the book was being written and published, since that version of NetBeans wasn't out at the time. NetBeans developers must have changed the way to add business methods in an Enterprise Java Bean and the way to invoke an Enterprise JavaBeans' method from client code after the chapter was written and published. We have found an alternate way to obtain the same functionality that is explained as follows: The sentence: "However, when working with session beans in NetBeans, we can simply right-click on the bean's source code and select EJB Methods | Add Business Method" Should read as: "However, when working with session beans in NetBeans, we can simply right-click on the bean's source code and select Insert Code | Add Business Method."

 

 

Errata type: Technical | Page number: 272

The sentence: "We simply need to right-click on the client code (com.ensode.sessionbeanintro.Main in the application client project in our example) and select Enterprise Resources | Call Enterprise Bean."
Should read as:
"We simply need to right-click on the client code (com.ensode.sessionbeanintro.Main in the application client project in our example) and select Insert Code | Call Enterprise Bean."

 

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Java EE 5 Development with NetBeans 6 +    Microsoft Dynamics GP 2013 Reporting - Second Edition =
50% Off
the second eBook
Price for both: £29.05

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Develop Java web applications by leveraging NetBeans functionality
  • Build standard JSF applications by taking advantage of NetBeans features
  • Integrate NetBeans with third-party RDBMS
  • Develop JavaServer Pages (JSPs) to display both static and dynamic content in a web browser
  • Visually develop aesthetically pleasing JSF web applications with the NetBeans Visual Web designer
  • Quickly and easily develop applications taking advantage of the Java Persistence API
  • Implement the Model-View-Controller design pattern by using JavaBeans as the model component
  • Take advantage of NetBeans functionality to easily develop Enterprise JavaBeans, including configuring transaction management via annotations
  • Use static and dynamic navigation to define navigation between pages
  • Utilize NetBeans to easily add messaging functionality to enterprise applications, through the Java Messaging Service API and through messag-driven EJBs
  • Develop web services using NetBeans, including exposing EJB functionality as web services

In Detail

Java EE, the successor to J2EE, greatly simplifies the development of enterprise applications. The popular IDE, NetBeans, has several features that greatly simplify Java EE development, and this book shows you how to make use of these features to make your Java programming more efficient and productive than ever before.

With many features and great flexibility, the Java developer can become overwhelmed by the options available in NetBeans, This book helps you get control of the environment, and make it work for you so that you can concentrate on the important parts of your application.

This book takes you through the most important parts of Java EE programming and, with clear, careful instructions and screenshots, shows you how to use the features of NetBeans that will improve your development experience. This book will not only show you time-saving tricks, keyboard shortcuts and other productivity enhancements possible with NetBeans, it will take you through the major Java EE APIs and how to get them working in the NetBeans environment.

While focusing on NetBeans features, you will learn about developing applications using the servlet API and JSPs, including taking advantage of JSTL and developing custom JSP tags. Developing applications that take advantage of JavaServer Faces is also covered in detail, including how to generate standard JSF applications from an existing database schema. The book also covers how to easily develop elegant JSF applications by taking advantage of the NetBeans Visual Web designer.

This book shows you how to use NetBeans functionality to automate many of the tedious or repetitive tasks frequently encountered when developing enterprise Java applications, freeing up the developer to focus on the business logic specific parts of the application.

Approach

This book takes you through the important parts of Java EE development and, with clear, careful instructions and screenshots, shows you the relevant features of the NetBeans IDE.

Who this book is for

The book is aimed at Java developers who wish to develop Java EE applications while taking advantage of NetBeans functionality to automate repetitive tasks and to ease their software development efforts. Familiarity with Java EE is not assumed.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software