You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@Async support in spring-aspects with AspectJ [SPR-7369] #12027
I am using AspectJ for all aspects in my application, which right now includes ITDs and the @Transactional spring-aspect. I like the consistency in using AspectJ for AOP quite a bit, and would prefer to use it across the board rather than a hybrid approach. I now have a requirement to make a method @Async and noticed there doesn't appear to be an equivalent spring-aspect for this. It would be great to be able to make methods @Async with AspectJ in the same kind of way you can make methods @Transactional.
Ramnivas, the 'next' branch is available and publishing 3.1 snapshots now. Keith, if you're OK upgrading your dependencies to this, then things would be seamless.
On the Spring Roo side we have seen this problem when developing the Solr add-on as well. There are a number of (sometimes static) domain type methods offered (via ITDs) by this add-on which are better offered asynchronously. However, @Async was not picked up. As a workaround we are deploying a dedicated aspect:
I have a test project ready to go against the latest SFW maven nightlies. However, those are not published yet because there was an unrelated build problem in Bamboo. So I am still waiting for something to test against ;).
Ok, I was able to test this successfully after some additional feedback from Ramnivas. As soon as SFW 3.0.5 is released I will adjust the Roo Solr addon. Thanks for the quick turn around!
Activity
spring-projects-issues commentedon Aug 23, 2010
Chris Beams commented
Ramnivas - care to comment?
spring-projects-issues commentedon Aug 23, 2010
Ramnivas Laddad commented
I am on it (will take one of the aspects around the same idea from AspectJ in Action and make it Spring-quality).
spring-projects-issues commentedon Aug 23, 2010
Keith Donald commented
Thanks Ramnivas! I'll use this feature as soon as you give me the word.
spring-projects-issues commentedon Sep 1, 2010
Juergen Hoeller commented
Guys, would you mind moving this to 3.1? Since this isn't entirely trivial, I'm not really keen on sneaking this into next week's 3.0.5...
Juergen
spring-projects-issues commentedon Sep 2, 2010
Chris Beams commented
Ramnivas, the 'next' branch is available and publishing 3.1 snapshots now. Keith, if you're OK upgrading your dependencies to this, then things would be seamless.
spring-projects-issues commentedon Sep 2, 2010
Ramnivas Laddad commented
Yes, 3.1 makes more sense for this, since that will allows us making backward incompatible changes during milestones, if needed.
spring-projects-issues commentedon Sep 29, 2010
Juergen Hoeller commented
Rescheduled for 3.0.5 since we have an aspect in Roo which is known to work and hopefully easy enough to adapt for SFW.
Juergen
spring-projects-issues commentedon Sep 29, 2010
Stefan Schmidt commented
On the Spring Roo side we have seen this problem when developing the Solr add-on as well. There are a number of (sometimes static) domain type methods offered (via ITDs) by this add-on which are better offered asynchronously. However,
@Asyncwas not picked up. As a workaround we are deploying a dedicated aspect:The pointcut could be adjusted to simply pick up methods which are annotated with
@Async.So from a Roo perspective it would be nice to avoid the deployment of such an aspect alltogether.
spring-projects-issues commentedon Oct 6, 2010
Ramnivas Laddad commented
Support is now in 3.0.5.
Stefan, can you check this out and let me know if it meets Roo's needs.
I will port this over to 3.1 repository shortly.
spring-projects-issues commentedon Oct 7, 2010
Juergen Hoeller commented
Hi Ramnivas - great, I'll have a look at this as well ASAP. Stefan of course is the primary driving force behind 3.0.x inclusion here.
No need to port this over to 3.1 yet, actually: We'll do a general merge with recent 3.0.x changes once we're getting closer to 3.1 M1.
Juergen
spring-projects-issues commentedon Oct 7, 2010
Stefan Schmidt commented
I have a test project ready to go against the latest SFW maven nightlies. However, those are not published yet because there was an unrelated build problem in Bamboo. So I am still waiting for something to test against ;).
spring-projects-issues commentedon Oct 11, 2010
Stefan Schmidt commented
Ok, I was able to test this successfully after some additional feedback from Ramnivas. As soon as SFW 3.0.5 is released I will adjust the Roo Solr addon. Thanks for the quick turn around!