Announcement Announcement Module
No announcement yet.
AOP on Hibernate domain objects without LTW possible? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • AOP on Hibernate domain objects without LTW possible?


    is it possible to configure AOP advices on methods of objects created by Hibernate, without using load time weaving?

    What I try to do is passing Hibernate mapped objects from server to client. On the client I want to use an Around-Advice on all Getters of the domain objects.

    It works well with load time weaving. But the problem is I can't get load time weaving to work in a Eclipse Plugin Project (OSGi).

    Is it possible to use Proxy-AOP on Hibernate objects? Otherwise I have to get load time weaving work with Eclipse OSGi project.

    Thanks in advance,


  • #2
    You will need to use a form of AspectJ weaving to advise your domain objects.

    You should file a bug with AJDT ( to get OSGi+LTW combination work. Alternatively, build-time weaving may be a way to go.