[ http://mifosforge.jira.com/browse/MIFOS-3371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59076#action_59076 ]
Shahzada Hatim commented on MIFOS-3371: --------------------------------------- It seems my understanding of this was not at par with what really happens I came across this http://forum.springsource.org/showthread.php?t=74048 which says Spring AOP works only with beans created by application context (or by programmatic proxy creation). If you want your aspect to be applied to beans created outside the application context, you must weave using AspectJ weaver (compile-time or load-time). (this is extrapolated from ramnivas, spring-aop lead) > Research how to employ @Transaction annotation, by using AOP and alternative > of StaticHibernateUtil > ---------------------------------------------------------------------------------------------------- > > Key: MIFOS-3371 > URL: http://mifosforge.jira.com/browse/MIFOS-3371 > Project: mifos > Issue Type: Dev Task > Components: Misc > Reporter: Shahzada Hatim > Assignee: Shahzada Hatim > Priority: Major > Time Spent: 4 days > Remaining Estimate: 0 minutes > > One of the scopes of the GSoC project is to use annotated transactions. For > this we have to research how AOP works on non-beans since Transactions would > be used on non-beans > Suppose SavingBO would have an annotation of transaction and some other > transaction method calls the SavingsBO method, also with transaction > annotation, then every thing will be dealt in transaction, only if the > calling method is a bean method. > If The calling method is not a bean method then there are possible solutions > using AOP. > Spring AOP may not be the solution so for this one may have to use AspectJ. > There is a possibility that HibernateTransactionManager(?) could be used for > this task (to be used within an aspect). This class has a similar > functionality as HibernateUtils. HibernateTransactionManager (part of spring) > is available so > then we can have the same trasnaction environement in bean and non-bean area. > This is an exploratory task. The aim is to come up with a recepie of > @Transaction in current MIFOS code base. For demonstrative purposes small > spring-roo based apps would be used. > Please comment if you would like to change the description. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://mifosforge.jira.com/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Mifos-issues mailing list Mifos-issues@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mifos-issues