<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
<table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
<h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
<!-- To have a header image/logo replace the name below with your img tag -->
<!-- Email clients will render the images when the message is read so any image -->
<!-- must be made available on a public server, so that all recipients can load the image. -->
<a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: IronJacamar RHQ plugin
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/jesper.pedersen">Jesper Pedersen</a> in <i>IronJacamar</i> - <a href="http://community.jboss.org/message/578710#578710">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><blockquote class="jive-quote"><p>1) we can NOT saw any setter methods in those classes, so how to change the configuration?</p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Take a look at AbstractFungalRADeployer::registerManagementView(). This is the method that converts the management model to JMX MBeans for the standalone distribution. And look at the usage of that method.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>You need to make a method like that for RHQ setup in the deployers for AS 7 (org.jboss.as.connector.deployers). However, the RHQ method should use the management model directly, like:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><pre class="jive-pre"><code class="jive-code">JOPR -> RHQ -> IronJacamar Management Model -> Resource Adapter -> *
JOPR -> RHQ -> IronJacamar Management API -> Metrics / Statistics
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>We have enough for the first part - the second part we need to create.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><blockquote class="jive-quote"><p>2) class ManagementRepository is a singleton class, we can access it  directly in embedded environment, but will  ManagementRepository/Connector/ConnectionFactory/AdminObject be  registered to org.jboss.deployers.spi.management.ManagementView? so them  can be accessed by ManagementView like hornetq plugin.</p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Yes, all deployments in the IronJacamar container should be registered with the ManagementRepository singleton. The IronJacamar management model is independant of the technology used, like JMX or RHQ.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>However, there is no o.j.d.s.m.ManagementView in AS 7 - at least not yet. Maybe Emanuel or Heiko can comment on that.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><blockquote class="jive-quote"><p>If IronJacamar has embedded in current AS7 release? if not, how can we test IronJacamar plugin?</p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>IronJacamar is included in AS 7.0.0.Alpha1 - however, RHQ isn't integrated yet - Heiko is working on that. There are two options:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><ol><li>Create the RHQ plugin in the AS 7 distribution (org.jboss.as.connector.rhq) and work together with Heiko on the integration of platform itself</li><li>Add support for RHQ in the IronJacamar standalone distribution incl. web ui - and create a new module (rhq) with the code</li></ol><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I think 1) would be the easiest for now.</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/578710#578710">going to Community</a></p>
<p style="margin: 0;">Start a new discussion in IronJacamar at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>