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

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

Credits

About the Author

Acknowledgement

About the Reviewers

www.PacktPub.com

Preface

Out with the Old, In with the New

Introduction

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

Enterprise Persistence

Introduction

Understanding @CollectionTable

Auditing previous JPA Operations

Auditing historical JPA Operations

Profiling and testing JPA Operations

Security

Introduction

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

Enterprise Testing Strategies

Introduction

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

Extending Enterprise Applications

Introduction

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

Enterprise Mobile Device Integration

Introduction

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

Deployment and Configuration

Introduction

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

Performance and Debugging

Introduction

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