Announcement Announcement Module
Collapse
No announcement yet.
Using Spring AOP module in NON-SPRING projects Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using Spring AOP module in NON-SPRING projects

    We need to add some transaction logging features in our business layer which is based on EJB 2.0 (non-spring service based architecture). I was wondering if we could use the Spring AOP module to implement such a thing instead of using AspectJ. The problem is that our beans are NOT YET managed by Spring.

    Any ideas?
    Thanks,

    lucas_opara@hotmail.com

  • #2
    You can use Spring AOP outside of Spring managed projects, however, you can only do this when you have full control over object creation. For EJBs this isn't going to be the case so you would be better off using AspectJ for that. You can still use Spring to configure your AspectJ aspects if you need to supply some configuration data or some collaborating objects.

    Rob

    Comment


    • #3
      Do u think u can drop the proxy,I think not,

      Comment


      • #4
        We *could* drop the proxy but it would be very difficult to get consistent runtime proxying given the current state of Java VMs. We can configure AspectJ aspects at runtime and in 1.3 this integration will be much improved.

        Rob

        Comment

        Working...
        X