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

mvn -version

Checkout the project

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

cvs -d :pserver:username@cvs.java.net:/cvs co glassfish-samples/v3/plugin/adminconsole/console-sample-ip

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

cd glassfish-samples/v3/plugin/adminconsole/console-sample-ip/project
mvn install

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

cp glassfish-samples/v3/plugin/adminconsole/console-sample-ip/target/console-sample-ip-plugin-3.0-Prelude.jar  <GFv3-prelude>/glassfish/modules/
<GFv3-prelude>/glassfish/bin/asadmin start-domain

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

Cannot resolve external resource into attachment.
Cannot resolve external resource into attachment.
Cannot resolve external resource into attachment.



sample-ips.jpg (image/pjpeg)
commontask.jpg (image/pjpeg)
pagePlugin.jpg (image/pjpeg)