Not logged in | Login
ESB Console Enable Common Management And Monitoring Support For Glassfish V 3 With Fuji
To enable Common Management and Monitoring support for a Glassfish v3 with Fuji instance, you need the following:
You would then need to use the Common Management and Monitoring API and write client code to access the functionality.
The previously mentioned jars are mandatory for any client side code. In addition, you'd also want to include other Common Management and Monitoring API client side jars. For e.g., to receive alerts, you need to include the extended.management.api.alerts archive in your client side classpath - that enables the alert reception, and management client side API - can be built from esb-console/extended/api/extended.management.api.alerts - in you client side classpath. There are a number of APIs available under esb-console/extended/api/. Have a peek and use the ones you need while writing your client code.
jar -xvf fuji-glassfish-manmon.jarThe contents are expanded to a core folder which has an backend folder that contains the fuji-management archive, and the FujiEventManagementWebApp archive. There is also a client folder that contains the archives that have to be included in your client classpath for you to exercise the management capabilities remotely, viz., jbi-admin-common.jar, and the extended.management.api.core archive.
Directory of E:\core-hk2 09/17/2009 09:37 AM <DIR> . 09/17/2009 09:37 AM <DIR> .. 09/17/2009 09:38 AM <DIR> backend 09/17/2009 09:37 AM <DIR> client 0 File(s) 0 bytes Directory of E:\core-hk2\backend 09/17/2009 09:38 AM <DIR> . 09/17/2009 09:38 AM <DIR> .. 09/14/2009 10:15 AM 406,156 eventmanagement-webapp.war 09/10/2009 03:48 AM 731,675 fuji-management-hk2.jar 2 File(s) 1,137,831 bytes Directory of E:\core-hk2\client 09/17/2009 09:37 AM <DIR> . 09/17/2009 09:37 AM <DIR> .. 09/10/2009 03:41 AM 482,191 extended.management.api.core-1.0-SNAPSHOT.jar 05/14/2009 01:20 AM 360,075 jbi-admin-common.jar 2 File(s) 842,266 bytes Total Files Listed: 4 File(s) 1,980,097 bytes
Copy the fuji-management-hk2.jar to your
Once Glassfish v3 is up and running, install the web application
E:\runtimes\osgi\glassfish\m8\glassfishv3\glassfish\bin>asadmin deploy --contextroot eventmanagement-webapp --force=true --upload=true --enabled=true E:\core-hk2\backend\eventmanagement-webapp.war Command deploy executed successfully. E:\runtimes\osgi\glassfish\m8\glassfishv3\glassfish\bin>
You can then exercise the management and monitoring capabilities of the runtime using the management and monitoring API. Make sure you client side code includes the mandatory client jars available in the client folder in addition to any other jar file you use in your client classpath.