History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RHQ-1094
Type: Improvement Improvement
Status: Integrated Integrated
Resolution: Fixed
Priority: Critical Critical
Assignee: John Mazzitelli
Reporter: John Mazzitelli
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
RHQ Project

provide a new optional plugin config to the JMX plugin to specify additional EMS classpath entries

Created: 09/Nov/08 01:32 PM   Updated: 08/Dec/08 07:30 AM
Component/s: Plugins
Fix Version/s: 1.2

Time Tracking:
Not Specified

Issue Links:
Dependency
 
Incorporate
 

Resolution Date: 09/Nov/08 10:48 PM
VCS Revision: 1,948


 Description  « Hide
In order to support allowing JMX plugin to connect and monitor arbitrary JVMs/resources, we need to be able to tell the EMS connection to add additional classpath entries.

For example, in order to connect and monitor Hibernate statistics, we need the tell EMS to not only connect to the hibernate JVM, we must also tell it where it can find the hibernate classes that will be returned by the hibernate statistics MBean (like the query stats object).

Suggest we add a new plugin config option in which you can specify one or more jars and/or directories containing jars. The EMS connection will then be given the names of all the jars found (ie. they will be added to the EMS connections classpath entries).

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
John Mazzitelli - 09/Nov/08 02:11 PM - edited
I'll add this to the JMX Server resource type's plugin configuration:

<c:simple-property
   name="additionalClassPathEntries"
   required="false"
   type="string"
   description="Comma-separated list of directories and filenames that contain resources and classes needed to communicate with the JMX Server and its MBeans. If you specify 'some/directory/*.jar', all jars found in the given directory will be added."/>

EMS provides the ability to add class path entries of either directories or .jar filenames. Here, we allow you to specify 0, 1 or more .jar filenames, directory names (for location of resources like .xml or .properties files needed by the connection) or directory/*.jar (as the description indicates, this is where you can convienently add all jar files found in 'directory').

John Mazzitelli - 09/Nov/08 10:48 PM
Verified this worked. I was able to auto-discovery a running, standlone J2SE app with hibernate running inside it. I used this new plugin config setting to tell EMS where it can find the hibernate jars and was able to successfully execute hibernate plugin operations and collect hibernate stats.