Hi

My service classes are created in the following packages:
com.myapp.service.base
com.myapp.serivce.base.security
com.myapp.serivce.base.file


and currently I have to declare the pointcut like the following,
Code:
  <aop:config>
    <aop:pointcut id="serviceMethods" expression="execution(* com.myapp.service.*.*(..)) || execution(* com.myapp.service.*.*.*(..))" />
    <aop:advisor advice-ref="txAdvice" pointcut-ref="serviceMethods" />
  </aop:config>
How can simply this?

Is there any way I can declare the pointcut in one simple expression to include all the sub-packages? without having to include it one by one using the "||"?

Please help, thank you!