Announcement Announcement Module
Collapse
No announcement yet.
dao without interface Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • dao without interface

    We are using dao's without an interface. They are annotated with @Transactional

    Will Spring use CGILIB in order to make this work?

    Reason for asking is this: I would like to add Spring AOP aspects to my Dao's. It is written in the ref docs that for classes without interfaces, Spring needs to use CGILIB. But we use already @Transactional on the Dao's, and they don't have interfaces? We never have configured Tomcat for instance with a LaodTimeWeaver.

    We are using java 6 and Tomcat 6.

  • #2
    CGLib has nothing to do with loadtimeweaving. CGLib is another proxy creating framework which creates class based proxies as opposed to JDK Proxies which create dynamic proxies based on interfaces.

    Comment

    Working...
    X