+++ This bug was initially created as a clone of Bug #737996 +++
Description of problem:
When a web application is clustered, RHQ is unable to collect metrics like the number of active sessions.
This is due to an inconsistency in the property names returned from the AS's profile service that returns lowercase names when the web app context is not clustered (e.g. "activeSessions") but when it is clustered the property names start with an uppercase letter (e.g. "ActiveSessions").
This has been filed as a bug in the EAP:
However, RHQ should be robust enough to handle such differences.
Version-Release number of selected component (if applicable):
as5 plugin in all versions
Steps to Reproduce:
1. Start JBoss AS 5 or up in the "all" profile (so that clustering is enabled)
2. Deploy the attached test WAR.
3. Wait for some metrics to be collected
Active Sessions and other metrics are never collected
All metrics are collected according to their schedules
Author: Lukas Krejci <firstname.lastname@example.org>
Date: Tue Sep 13 18:33:14 2011 +0200
BZ 738027 - Working around the property names inconsistency in the clustered web app contexts.
Verified on build#5 (Version: 4.2.0.JON300-SNAPSHOT Build Number: ed8ff45)
Started EAP 5.1.1 with "all" profile and deployed the attached test WAR.
Waited for some time and verified that the metrics like 'Currently Active
Sessions' and other metrics are collected and displayed.
Please refer the attached screenshot.
Created attachment 532771 [details]
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE