Spring JMX and OC4J MBean notifications, can't enable -


i'm deploying spring application oc4j, keep encountering strange problem whereby can access exposed mbeans, use attributes , operations. notifications can been seen under tab, not used there should checkbox present apply button subscribe. isn't present , instead boolean value of false shows i'm not subscribed notification.

here spring config use register mbeans:

<bean id="test" class="com.app.jmx.homecontroller"/>  <bean id="mbeanserver" class="org.springframework.jmx.support.mbeanserverfactorybean">     <property name="defaultdomain" value="mbeanserver" /> </bean>  <bean id="exporter" class="org.springframework.jmx.export.mbeanexporter">     <property name="autodetect" value="false" />     <property name="server" ref="mbeanserver" />     <property name="beans">         <map>             <entry key=":name=test" value-ref="test" />         </map>     </property> </bean> 

and here code used create notifications

    private string notifications[] = { "increment", "decrement", "reset", "test" };  public mbeannotificationinfo[] getnotificationinfo() {     mbeannotificationinfo[] info = { new mbeannotificationinfo(             notifications, "javax.management.notification",             "notifications set simplenotifier") };     return info; }    

an example of working without spring can found here http://www.oracle.com/technetwork/middleware/ias/readme-087860.html

any on appreciated i've found limited sources online combination of spring, jmx , oc4j jmx notifications, thanks!

this problem mbeanserver within spring config file.

<bean id="mbeanserver" class="org.springframework.jmx.support.mbeanserverfactorybean">     <property name="locateexistingserverifpossible" value="false" /> </bean> 

solved issue


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -