Book Image

Java EE 6 Cookbook for Securing, Tuning, and Extending Enterprise Applications

By : Mick Knutson
Book Image

Java EE 6 Cookbook for Securing, Tuning, and Extending Enterprise Applications

By: Mick Knutson

Overview of this book

<p>Java Platform, Enterprise Edition is a widely used platform for enterprise server programming in the Java programming language. <br /><br />This book covers exciting recipes on securing, tuning and extending enterprise applications using a Java EE 6 implementation. <br /><br />The book starts with the essential changes in Java EE 6. Then we will dive into the implementation of some of the new features of the JPA 2.0 specification, and look at implementing auditing for relational data stores. There are several additional sections that describe some of the subtle issues encountered, tips, and extension points for stating your own JPA application, or extending an existing application.<br /><br />We will then look into how we can enable security for our software system using Java EE built-in features as well as using the well-known Spring Security framework. We will then look at recipes on testing various JavaEE technologies including JPA, EJB, JSF, and Web services.<br /><br />Next we will explore various ways to extend a Java EE environment with the use of additional dynamic languages as well as frameworks. <br /><br />The book then covers recipes that touch on the issues, considerations and options related to extending enterprise development efforts into mobile application development.<br /><br />At the end of the book, we will cover managing enterprise application deployment and configuration, and recipes that will help you debug problems and enhance the performance of your applications.</p>
Table of Contents (15 chapters)
Java EE 6 Cookbook for Securing, Tuning, and Extending Enterprise Applications
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface

Setting up a local Apache environment


XAMPP is an easy to install Apache distribution containing MySQL, PHP, and Perl. XAMPP is really very easy to install and to use: just download, extract, and start. Tomcat 6 is also distributed with XAMPP as of version 1.7.4 but upgrading to Tomcat 7 is fairly simple, and we will cover the upgrade process in this recipe.

This recipe is going to allow us to learn how to leverage Apache and Tomcat locally in a pre-configured distribution which can be useful in many situations, not just for mobile applications.

But for the focus of this chapter on mobile development, we are going to look at how we can deploy and test a mobile-web application such as jQuery-Mobile.

Getting ready

First we need to download the ZIP archive distribution of XAMPP from http://www.apachefriends.org/en/xampp.html and, for this recipe, we will cover a Windows installation although Mac OS X, Solaris, and Linux distributions are also available.

"XAMPP Lite" is an extra small XAMPP...