Announcement Announcement Module
Collapse
No announcement yet.
EnhancedByCGLIB is no good for Drools and Hibernate! Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • EnhancedByCGLIB is no good for Drools and Hibernate!

    Hello!

    We're trying to use a couple of beans in a custom scope; we mapped them in the xml adding <aop:scoped-proxy/> and now we're trying to pass both of them to JBoss Drools and Hibernate.

    The BIG problem we have is both of them are not able to resolve the MyClass$$EnhancedByCGLIB$$nnnnnn class, saying the don't know how to map them.

    I'm now trying using <aop:scoped-proxy proxy-target-class="false/> and interfaces, by Drools says it's "unable to resolve class '$Proxy513'".
    Moreover, I don't know how to use interfaces with Hibernate, ad @Entity and @Table annotation go into classes.

    Thanks a lot!

  • #2
    You can try AspectJ weaving

    Comment

    Working...
    X