cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Sosnoski <>
Subject Re: JMX notifications handling?
Date Thu, 12 Sep 2013 06:22:01 GMT
Just to follow up for the archive, it looks like the notification 
handling was never fully implemented. I've worked around this by 
duplicating some of the code from the class to create 
the RequiredModelMBean and register that directly. So instead of:


I'm using:

                     ModelMBeanAssembler assembler = new 
                     ModelMBeanInfo mbi = 
                     MBeanServer mbs = 
                     RequiredModelMBean rtMBean =
                     try {
rtMBean.setManagedResource(managedEndpoint, "ObjectReference");
                     } catch (InvalidTargetObjectTypeException itotex) {
                         throw new JMException(itotex.getMessage());
                     ObjectName name = managedEndpoint.getObjectName();
                     instrumentationManager.register(rtMBean, name);

Then I can just call the sendNotification() method on the 
RequiredModelMBean to pass notifications on to the client.

   - Dennis

On 09/11/2013 08:34 PM, Dennis Sosnoski wrote:
> I'm trying to get JMX notifications working from the WS-RM code, to 
> allow the application to monitor message acknowledgments. If I just 
> implement the notification handling in the managed class 
> (ManagedRMEndpoint) it looks like this doesn't get picked up by the 
> dynamic proxy generated by the management code. I saw that there are 
> and 
> ...ManagedNotification so I also tried using these, but they don't 
> seem to change anything and since they're not used elsewhere it's not 
> clear to me how these are supposed to work.
> Any suggestions on getting this going?
> Thanks,
>   - Dennis

View raw message