Free Sample
+ Collection

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

Mick Knutson

Packed with comprehensive recipes to secure, tune, and extend your Java EE applications with this book and ebook
RRP $23.99
RRP $39.99
Print + eBook

Want this title & more?

$12.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 139781849683166
Paperback356 pages

About This Book

  • Secure your Java applications using Java EE built-in features as well as the well-known Spring Security framework
  • Utilize related recipes for testing various Java EE technologies including JPA, EJB, JSF, and Web services
  • Explore various ways to extend a Java EE environment with the use of additional dynamic languages as well as frameworks
  • A learn-by-example based approach that focuses on key concepts to provide the foundation to solve real world problems

Who This Book Is For

This book is aimed at Java developers and programmers who want to secure, tune and, extend their Java EE applications.

Table of Contents

Chapter 1: Out with the Old, In with the New
Pruning old APIs
In with the new
Implementing Java Contexts and Dependency Injection (CDI)
Understanding the EJB 3.1 specification
Understanding the JPA 2.0 specification
Understanding the JAX-RS 1.1 specification
Understanding the Servlet 3.0 specification
Understanding the WebBeans 1.0 specification
Understanding the JSF 2.0 specification
Understanding Bean Validation
Understanding profiles
Chapter 2: Enterprise Persistence
Understanding @CollectionTable
Auditing previous JPA Operations
Auditing historical JPA Operations
Profiling and testing JPA Operations
Chapter 3: Security
Performing authentication in Java EE
Authorization in Java EE
Enforcing security in Enterprise Applications
Programmatic security and annotations in Java EE
Securely signing JAR artefacts
Configuring Linux firewall rules
Securely obfuscating Java byte-code
Minification and obfuscation of web resources
Chapter 4: Enterprise Testing Strategies
Remote debugging of Java EE applications
Testing JPA with DBUnit
Using Mock objects for testing
Testing HTTP endpoints with Selenium
Testing JAX-WS and JAX-RS with soapUI
Chapter 5: Extending Enterprise Applications
Integrating Groovy into Enterprise Applications
Integrating Jython into Enterprise Applications
Integrating Scala into Enterprise Applications
Weaving AspectJ advice into Enterprise Applications
Weaving AspectJ advice into existing libraries
Adding advice with CDI Decorators
Adding advice with CDI Interceptors
Chapter 6: Enterprise Mobile Device Integration
Evaluating mobile framework projects
Native application considerations
Leveraging mobile design tools
Testing mobile-web applications with online emulators
Setting up a local Apache environment
Native SDK development considerations
Chapter 7: Deployment and Configuration
Java EE configuration with CDI
Java EE configuration with Groovy
Enabling remote JMX on Tomcat server
Enabling JMX over SSL on Tomcat server
Enabling remote JMX on GlassFish server
Enabling JMX over SSL on GlassFish server
Using JRebel for rapid redeployment
Managing VisualVM application repository configuration
Chapter 8: Performance and Debugging
Profiling memory with jVisualVM
Using jstatd to enable Visual GC
Profiling applications with Netstat
Profiling TCP connections with TCPMon
Monitoring application and server performance with Munin
Debugging HTTP connections with HTTP Debugger

What You Will Learn

  • Dive into the implementation of some of the new features of the JPA 2.0 specification
  • Perform Authentication and access control in Java EE
  • Enforce access control in Java EE
  • Protect systems against SQL injection and Cross domain Scripting
  • Test JSF with Selenium and JAX-WS and JAX-RS with SOAPUI
  • Integrate Groovy, Jython, and Scala with Enterprise applications
  • Integrate Mobile Devices into your Enterprise
  • Debug problems and enhance the performance of your applications

In Detail

Java Platform, Enterprise Edition is a widely used platform for enterprise server programming in the Java programming language.

This book covers exciting recipes on securing, tuning and extending enterprise applications using a Java EE 6 implementation.

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.

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.

Next we will explore various ways to extend a Java EE environment with the use of additional dynamic languages as well as frameworks.

The book then covers recipes that touch on the issues, considerations and options related to extending enterprise development efforts into mobile application development.

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.


Read More