Book Image

Java EE 7 First Look

By : Armel Fabrice NDJOBO
Book Image

Java EE 7 First Look

By: Armel Fabrice NDJOBO

Overview of this book

For several years, the development of robust, scalable, and secured applications was a headache for software companies. They had to use proprietary solutions with non-standard methods. With Java EE, many of these solutions have been standardized, simplified, adapted to the needs of the developer, and made freely available to the community. Thus, it is now possible to develop truly robust, secure, and scalable applications at a lower cost using tools such as: Eclipse, NetBeans, and GlassFish.Java EE 7 First Look is a practical guide which, through the creation of an online pre-registration website, will introduce you to the novelties of Java EE 7 and give you ideas for utilizing them.Giving you an insight on new features introduced in Java EE 7, this book begins with the objectives of Java EE 7 and then covers the new specifications added in Java EE 7. Next, you will move on to the improvements made in APIs and EJBs and how to work with them. You will also learn how to ensure that the quality of data is maintained that has been manipulated by your application and gives you the opportunity to put a small part of AOP (Aspect Oriented Programming) in action.Finally, the book will give you some ideas to realize n-tier applications using the Java EE platform and will also provide some guidance for the integration of your Java EE application to heterogeneous systems with which your application will interact.After reading Java EE 7 First Look, you'll have a good idea about the changes brought in by Java EE 7, as well as how to make the best use of these to build a large-scale application.
Table of Contents (16 chapters)

Preface

When we considered writing this book, the main objective was to present the new features of Java EE 7 platform. But while writing, we came to realize that it would be interesting to make a clear and concise presentation of the relevant specifications and how to implement them. This led us to imagine a project that will help present almost all the specifications affected by Java EE 7 and how to put them together in order to build a large-scale application.

In short, this book does not aim to show how to implement the different aspects of each Java EE 7 specification or list the best practices. Rather, it positions itself similar to the yellow pages for a city that has been built recently. In other words, this book will help you discover the innovations introduced by Java EE 7 and give you ideas to build solid applications.

What this book covers

Chapter 1, What's New in Java EE 7, gives an overview of the improvements made in the Java EE 7 platform.

Chapter 2, New Specifications, explains concepts concerning the new specifications that have been added in Java EE 7 and shows how they can be used.

Chapter 3, The Presentation Layer, demonstrates the implementation of the improvements brought by the Java EE 7 platform for the presentation layer specifications.

Chapter 4, The Java Persistence API, shows how your Java application can store and retrieve data from the database in a safe way and explains the innovations that have been made in the relevant specifications.

Chapter 5, The Business Layer, begins by giving a presentation of the improvement in the business layer and then demonstrates how various Java EE 7 specifications can be put together for the realization of an application.

Chapter 6, Communicating with External Systems, demonstrates how a Java EE 7 application can interact with heterogeneous systems.

Chapter 7, Annotations and CDI, explains how annotations and CDI can be used to improve the quality of applications.

Chapter 8, Validators and Interceptors, shows how the validation and interception of data can be implemented in a Java EE environment to ensure the quality of the data handled by an application.

Chapter 9, Security, demonstrates the implementation of security and setting up a personal module for security in Servlet and EJB containers.

What you need for this book

To implement the various examples present in this book, you will need the following software:

  • NetBeans IDE 7.3.1 or higher

  • JDK 7

  • GlassFish Application Server 4, at least b89

  • MySQL 5.5 or higher DBMS

Who this book is for

Given the main objectives, this book targets three groups of people who possess knowledge about Java. They are:

  • Beginners in using the Java EE platform who would like to have an idea about the main specifications of Java EE 7

  • Developers who have experimented with previous versions of Java EE and want to know what Java EE 7 has brought as novelties

  • Budding architects who want to learn how to put together various Java EE 7 specifications for building robust and secure enterprise applications

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We can include other contexts through the use of the include directive."

A block of code is set as follows:

@NameBinding
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(value = RetentionPolicy.RUNTIME)
public @interface ZipResult {})

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Expand the server-config menu."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.