karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kolchanov, Andrey" <Andrey.Kolcha...@billing.ru>
Subject Re: MBeanRegistrer refresh
Date Thu, 22 Aug 2013 12:45:12 GMT
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