Here is the BaseDAOImpl file public class BaseDAOImpl<T, ID extends Serializable> extends GeneralDAOImpl {
public <T> T save(T entity) { return super.save(entity); } ... other methods } On Mon, Jun 3, 2013 at 11:05 PM, rohit sharma <rsedward...@gmail.com> wrote: > Here's is the only pointcut that is defined. > > @Pointcut("execution(* mypackage.dao.BaseDAOImpl.persist(..)) || " + > "execution(* mypackage.dao.BaseDAOImpl.save(..)) || " + > "execution(* mypackage.dao.BaseDAOImpl.removeById(..))") > public void commitTransaction() {} > > @Around("commitTransaction()") > public Object commitTransaction(ProceedingJoinPoint thisJoinPoint) { > // some code regarding logging and startingTransactions > } > > And this DAO object (using persist, save, removeById) is used only > sparsely. The package is included just as a simple dependency in pom.xml. > > <dependency> > <groupId>com.mk.pkg</groupId> > <artifactId>datalayer</artifactId> > <version>1</version> > <scope>compile</scope> > </dependency> > > > > > On Mon, Jun 3, 2013 at 10:49 PM, Alexander Kriegisch < > alexan...@kriegisch.name> wrote: > >> The memory consumption does not correlate to the number of aspects quite >> as strongly as to the pointcuts you use and how broadly they are applied to >> your code. So as not to make this issue a quiz you might want to share some >> code. >> >> Kind regards >> Alexander Kriegisch >> >> >> Am 03.06.2013 um 18:29 schrieb rohit sharma <rsedward...@gmail.com>: >> >> I have a project which uses mvn plugin for AspectJ to do Compile time >> weaving. This project does not have many aspects, however when I include >> this project as a mvn dependency on a webapp (tomcat container) it gives >> >> AspectJ 1.6.11 ran out of memory during compilation: >> >> The same project works fine if included in any other project (not a >> web-app) as a mvn dependency. Any ideas as to what is causing this error? >> >> -- >> ***Ever tried. Ever failed. No matter; >> Try again. Fail again. Fail better. >> * >> >> _______________________________________________ >> aspectj-users mailing list >> aspectj-users@eclipse.org >> https://dev.eclipse.org/mailman/listinfo/aspectj-users >> >> >> _______________________________________________ >> aspectj-users mailing list >> aspectj-users@eclipse.org >> https://dev.eclipse.org/mailman/listinfo/aspectj-users >> >> > > > -- > ***Ever tried. Ever failed. No matter; > Try again. Fail again. Fail better. > * > -- ***Ever tried. Ever failed. No matter; Try again. Fail again. Fail better. *
_______________________________________________ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users