We have two modules in our project app-ui
and app-services
. app-ui
is a portlet
project follows spring based implementation and app-services
has restful and soap
services follows Java EE 6 based implementation. We want to enable security, logging and
exception handling aspects through out the modules.
We face the following problems:
- Spring aop works well only in app-ui. In app-services side we tried using Load-Time Weaving and spring-bridging but did not succeed, it works successfully only if beans.xml(Java EE 6) is not present in the project.
- We tried Java EE global interceptors (placing in ejb-jar.xml), which works only for EJBs. Hence it wont work in app-ui.
Is there a way to develop aspects common to app-ui and app-services?