Announcement Announcement Module
No announcement yet.
Proxy Problems Using XmlBeanFactory Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Proxy Problems Using XmlBeanFactory

    I am loading a few classes that I want to proxy (either with AutoProxy or the ProxyFactoryBean) from my application with an XmlBeanFactory.

    MyObject obj = xmlBeanFactory.getBean("myObject");

    In my configuration I have something like the following

    <bean id="myObject" class="ProxyFactoryBean">
    <property name="proxyinterfaces" value="MyObjectInterface">
    <property name="target"><ref local="myObjectTarget"/>
    <property name="interceptorNames" value="myInterceptor"/>

    The interceptor is an around interceptor but doesn't seem to be delegating to my class. However, if I load this same object as a reference in another bean and load it all up through an ApplicationContext everything seems to go fine. Do I need to do something more specific than the getBean method in the XmlBeanFactory?


    Joe Rice

  • #2
    Figured it out

    I think I figured out the problem. I was using the wrong interface in my Proxy class.