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

Managing VisualVM application repository configuration


VisualVM and jVisualVM are incredible assets for any Java developer. Every time we install a new JDK, there is a new version of jVisualVM. Apart from the JDK, there are updates to VisualVM that developers might want to follow. Not to mention the issue of a developer changing machines or working on multiple machines.

VisualVM and jVisualVM are easy enough to install and run. Connecting to remote jstat and JMX servers is very quick and it's easy to create dozens of connections that are used on a daily basis.

The tricky part is sharing the Remote Application configurations created on one installation of VisualVM with another installation.

This recipe will explain how to back up and move remote application configuration for VisualVM or jVisualVM.

Getting ready

To begin, we need to open an instance of VisualVM which will be located on Windows at:

%VISUALVM_HOME%\bin\visualvm.exe

jVisualVM will be located at:

%JAVA_HOME%\bin\jvisualvm.exe

Once...