Book Image

GlassFish Administration

By : Xuekun Kou
Book Image

GlassFish Administration

By: Xuekun Kou

Overview of this book

To build a powerful production environment for your Java EE systems, you need a great application server, and the skills to manage it. This book gives you all that you are looking for. This book will help you gain the necessary skills to install, configure, tune, and troubleshoot GlassFish so that you can fully unleash its power. It will teach you how to use the GlassFish application server, with a special focus on administration tasks. It presents the GlassFish administrative tasks in a logical sequence, with each chapter focusing on a specific topic. Starting with installation and moving through configuration, this book takes a careful look at the administration console so that you get a complete understanding of GlassFish and its administrative features. It will help you understand how to deploy Java EE, Ruby on Rails and other supported applications to GlassFish, and how to configure the necessary resources for these applications. You will also learn how to maintain, tune, and troubleshoot your GlassFish server. Also includes a bonus chapter introducing Glassfish v3.
Table of Contents (17 chapters)
GlassFish Administration
About the Author
About the Reviewers

Configuring JavaMail resources

The JavaMail API provides a platform and protocol-independent framework to build mail and messaging applications. The JavaMail API allows applications to implement e-mail features easily. The GlassFish Server includes the JavaMail API along with JavaMail service providers that allow an application component to send e-mail notifications over the Internet and to read e-mail from IMAP and POP3 mail servers.

Configuring the mail session

In JavaMail, the component that provides a main server and protocol abstraction is a JavaMail session. Application components can get a reference to a mail session through standard JNDI lookup or dependency injection. As a result of this, when we configure a JavaMail session, we need to provide the specific configuration data based on the mail product and protocol.

JavaMail sessions can be configured using the Admin Console or asadmin CLI.

To create a JavaMail session using the Admin Console, complete the following steps:

  1. 1. Log...