Free Sample
+ Collection

Java EE 6 Development with NetBeans 7

Starting


Developing Java EE applications is faster and far less demanding when you can use NetBeans. The guide quickly familiarizes you with this popular Integrated Development Environment (IDE) through practical instruction.
$29.99
$49.99
RRP $29.99
RRP $49.99
eBook
Print + eBook

Want this title & more?

$21.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849512701
Paperback392 pages

About This Book

  • Use features of the popular NetBeans IDE to accelerate development of Java EE applications
  • Develop JavaServer Pages (JSPs) to display both static and dynamic content in a web browser
  • Covers the latest versions of major Java EE APIs such as JSF 2.0, EJB 3.1, and JPA 2.0, and new additions to Java EE such as CDI and JAX-RS
  • Learn development with the popular PrimeFaces JSF 2.0 component library

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 NetBeans or Java EE is not assumed.

Table of Contents

Chapter 1: Getting Started with NetBeans
Introduction
Obtaining NetBeans
Installing NetBeans
Starting NetBeans for the first time
Configuring NetBeans for Java EE development
Deploying our first application
NetBeans tips for effective development
Summary
Chapter 2: Developing Web Applications with Servlets and JSPs
Creating our first web application
Servlet development
Securing web applications
JSP fragments
Summary
Chapter 3: Enhancing JSP Functionality with JSTL and Custom Tags
Core JSTL tags
SQL JSTL tags
Modifying database data with the <sql:update> tag
Closing remarks about JSTL
Custom JSP tags
Summary
Chapter 4: Developing Web Applications using JavaServer Faces 2.0
Introduction to JavaServer faces
Developing our first JSF application
Facelets templating
Composite components
Summary
Chapter 5: Elegant Web Applications with PrimeFaces
Our first PrimeFaces project
Using PrimeFaces components in our JSF applications
Tabbed views
Wizard interfaces
More information
Summary
Chapter 6: Interacting with Databases through the Java Persistence API
Creating our first JPA entity
Automated Generation of JPA Entities
Entity Relationships
Generating JSF applications from JPA entities
Summary
Chapter 7: Implementing the Business Tier with Session Beans
Introducing Session Beans
Creating a session bean in NetBeans
Accessing the bean from a client
Session bean transaction management
Implementing aspect oriented programming with interceptors
EJB timer service
Generating session beans from JPA entities
Summary
Chapter 8: Contexts and Dependency Injection (CDI)
Introduction to CDI
Qualifiers
Stereotypes
Interceptor Binding Types
Summary
Chapter 9: Messaging with JMS and Message Driven Beans
Introduction to JMS
Creating the project and JMS resources
Processing JMS messages with message driven Beans
Summary
Chapter 10: SOAP Web Services with JAX-WS
Introduction to web services
Creating a simple web service
Exposing EJBs as web services
Summary
Chapter 11: RESTful Web Services with JAX-RS
Generating a RESTful web service from an existing database
Testing our RESTful web service
Developing a RESTful web service client
Summary

What You Will Learn

  • 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
  • Develop aesthetically pleasing JSF web applications by leveraging the PrimeFaces JSF 2.0 component library
  • 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 message-driven EJBs
  • Develop SOAP-based and RESTful web services using NetBeans, including exposing EJB functionality as web services

In Detail

NetBeans has several features that greatly simplify Java EE development, but with many features and great flexibility, Java developers can become overwhelmed by the options available in NetBeans. This book provides step-by-step recipes that show you how to take control of the environment and make use of these features to make your enterprise Java application development more efficient and productive than ever before, so that you can concentrate on the important parts of your application.

Java EE 6 Development with NetBeans 7 takes you through the most important parts of Java EE programming and shows you how to use the features of NetBeans that will improve your development experience with clear, careful instructions and screenshots. It will show you how to use NetBeans functionality to automate many of the tedious or repetitive tasks frequently encountered when developing enterprise Java applications, freeing you up to focus on the business logic specific parts of the application. As well as showing 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 PrimeFaces JSF 2.0 component library that is bundled with NetBeans.

Authors

Read More