karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Łukasz Dywicki <l...@code-house.org>
Subject Re: MBeanRegistrer refresh
Date Fri, 23 Aug 2013 09:48:33 GMT
Andrey,
Ensure that ehcache do not register this cache statistics mbean on their own. MBeanRegistrer
during shutdown removes all mbeans if registered any. The same happens if MBeanServer service
dissapears.

Cheers,
Łukasz Dywicki
--
luke@code-house.org
Twitter: ldywicki
Blog: http://dywicki.pl
Code-House - http://code-house.org

Wiadomość napisana przez "Kolchanov, Andrey" <Andrey.Kolchanov@billing.ru> w dniu
22 sie 2013, o godz. 14:45:

> Sorry,
> I have send uncompleted letter.
> 
> But when I'm trying stop/start this bundle I'm getting exception
> 
> 
> javax.management.InstanceAlreadyExistsException:
> net.sf.ehcache:type=CacheStatistics,CacheManager=net.sf.ehcache.CacheManage
> r@20f664cb,name=L1Cache
> 
> How can I avoid this EhChache JMX error?
> 
> -- 
> С уважением,
> Андрей Колчанов.
> Ведущий системный архитектор
> ЗАО «ПЕТЕР-СЕРВИС»
> 
> 
> 
> 
> 
> 
> 22.08.13, 16:41 пользователь "Kolchanov, Andrey"
> <Andrey.Kolchanov@billing.ru> написал:
> 
>> Hello,
>> 
>> I have a jmx enabled blueprint bundle like this
>> 
>>   <reference id="mbeanServer" interface="javax.management.MBeanServer">
>>       <reference-listener ref="mbeanRegistrer"
>> bind-method="registerMBeanServer"
>>                           unbind-method="unregisterMBeanServer"/>
>>   </reference>
>> 
>>   <bean id="mbeanRegistrer"
>> class="org.apache.karaf.management.MBeanRegistrer" init-method="init"
>>         destroy-method="destroy">
>>       <property name="mbeans">
>>           <map>
>>               <entry value="someKey"
>>                      key-ref="someBean"/>
>>           </map>
>>       </property>
>>   </bean>
>> 
>> All is Ok when I deploy my budge first time.
>> But when I'm trying stop/start this bundle I'm getting exception
> 


Mime
View raw message