Skip to end of metadata
Go to start of metadata

Sample Project to show the Integration Point to GlassFish v3 Admin Console

Back to AdminConsole V3

Last updated on 9/11/208

A sample is created that shows how to extend the Admin Console by using Integration Points.
The source code of the project and the resulting plugin module is checked in the glassfish-samples project.
Here is the instructions on how to checkout the sample and try it out.

Download and install Maven2 version 2.0.9

You can get that from http://maven.apache.org/download.html
After installation, verify it by

Checkout the project

Change the username to your java.net user account name.

Build the project (optional as the jar itself has been checked out)

Copy the plugin module to the modules directory and start the server

By default, access the console by *http://localhost:4848/*

Files that you should examine:

1. src/main/java/org/glassfish/admingui/plugin/SamplePlugin.java
This is the Java Class which implements the ConsoleProvider @Contract. This is done so your plugin can be discovered by the GlassFish v3 Administration Console. Implementing the ConsoleProvider interface is simply a matter of annotating your class with the @Service annotation and implementing its single method.
2. src/main/resources/META-INF/admingui/console-config.xml
This file shows you how to declare your "IntegrationPoints."

  • 3. src/main/resources/.jsf
    These are files that is specified as the content of the integration points.

    Here is a couple screenshots

Old URL (read-only): http://wiki.glassfish.java.net/Wiki.jsp?page=V3SampleIpProject
New Page: https://wikis.sun.com/display/glassfish/V3SampleIpProject

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.

The individuals who post here are part of the extended Oracle community and they might not be employed or in any way formally affiliated with Oracle. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Oracle nor any other party necessarily agrees with them.