Skip to Main Content

Adding rule dynamically to OCEP using JMX

896688Mar 22 2012 — edited Mar 27 2012
I am looking for a way to add rule dynamically to CQL Processor. I tried it using JMX but I get below exception:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'control' defined in URL [bundleentry://282.fwk934469/META-INF/spring/eventtypetest-context.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: com.bea.core.rmi.RemoteObject cannot be cast to javax.management.remote.mx4j_rmi.RMIConnection
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)


I was connecting from a bean within my OCEP application and followed exactly the same steps listed here:

http://docs.oracle.com/cd/E17904_01/doc.1111/e14300/jmx.htm#autoId4
Comments
Post Details
Added on Mar 22 2012
11 comments
307 views