GlassFish configuration

From Oxxus Wiki

Jump to: navigation, search

Easiest way to configure your GlassFish AS is to use the provided administration control panel which is accessible via browser at port 4848. You will need to log in using the username and password displayed during the installation of GlassFish package.

http://www.yourdomain.com:4848/

For other needs the location of your GlassFish configuration files is in /var/glassfish installation directory.

Contents

Changing administration panel login details

In order to change administration login details, you will need to edit /root/.asadminpass and restart the server.

These details can also be changed from the administration area.

Editing server configuration

Open your GlassFish administration console web interface.

On the left side menu under Configuration you will find server-config link.

It lets you change various options for your GlassFish server.

JVM options

JVM options can easily be edited. Click the JVM options link under Configuration -> server-config.

First tab lets you edit general JVM settings such as location of Java, debugging and java compiler options. Additional properties can be added by using the form at the bottom of the page.

JVM options tab

Here is where the various settings are passed to java upon server startup. Whenever you change any of the options here click Save on top right of the screen. If there is a need for server restart, GlassFish will notify you.

The other two tabs in this section offer settings to edit library and class paths as well as setting a profile for our applications.

Virtual servers

A virtual server, sometimes called a virtual host, is an object that allows the same physical server to host multiple Internet domain names.

Configuration area enables you to add and modify virtual servers on your GlassFish server. Click on the Virtual servers link under Configuration -> server-config.

Click on New... to add a new virtual host.

Resources

Resources area of the Administration console enables you to setup various resources such as databases and JavaMail sessions.

JDBC resources

Navigate to the JDBC settings area from the menu on the left.

Here you can setup JDBC resourcs and connection pools.

JDBC resources provide applications with a means to connect to a database (resource). To store, organize, and retrieve data, most applications use relational databases. Java EE applications access relational databases through the JDBC API. Before an application can access a database, it must get a connection (connection pool).

JavaMail sessions

A JavaMail session resource represents a mail session in the JavaMail API, which provides a platform-independent and protocol-independent framework to build mail and messaging applications.

Navigate to JavaMail sessions settings pane from the left side menu, click on New and you can setup new JavaMail session resource for use in your applications.

Notes

Login details for the default domain should be displayed at the end of installation.

Contact About Us Support Network Servers Java Hosting Oxxus.net Order Now! Dedicated Servers VPS Hosting Tomcat Hosting Java Hosting Money Back Guarantee Privacy Policy Oxxus.net Terms of 
Service Contact About Us Servers Networks Support Domain Names SSL Certificates Java Wiki Tutorials E-learning 
Platforms