Bohtvaroh
Jan 13th, 2008, 01:25 AM
Hello, dear community.
I have a proxied object with transaction management advices applied to it. I am trying to get the target from it:
myProxiedObject.getTargetSource().getTarget()
and publish the resulting target with MBeanExporter:
<bean class="org.springframework.jmx.export.MBeanExporter">
<property name="beans">
<map>
<entry key="Systems:someName" value-ref="target" />
</map>
</property>
</bean>
but in jconsole I still see a bulk of methods and fields from proxy and more - I can invoke them! But i'd like to have only business logic methods from the target (as I see in jconsole when not applying any advice) and not aop-proxy related stuff.
What wrong am I doing?
I have a proxied object with transaction management advices applied to it. I am trying to get the target from it:
myProxiedObject.getTargetSource().getTarget()
and publish the resulting target with MBeanExporter:
<bean class="org.springframework.jmx.export.MBeanExporter">
<property name="beans">
<map>
<entry key="Systems:someName" value-ref="target" />
</map>
</property>
</bean>
but in jconsole I still see a bulk of methods and fields from proxy and more - I can invoke them! But i'd like to have only business logic methods from the target (as I see in jconsole when not applying any advice) and not aop-proxy related stuff.
What wrong am I doing?