@Transactional inheritence
Hello,
All my business services use the custom @BusinessService annotation, that is defined as :
Code:
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface BusinessService
{
/**
* @return the component name, if any
*/
String value() default "";
}
This works fine for component-scan to detect my beans. I'd like now to user <tx:annotation-driven>, so I've added a @Transactional to this annotation definition ... but this doesn't create the expected Proxies.
I need to define some <aop:config> to apply transactional advice to my business services.
Why does this pseudo-inheritence (annotation have no "extends" support) work for @Component, but not for @Transactional ?