I've an spring component which has some methods as @Async.
I want to create a private method and run @Async but it won't works because spring doesn't help self invocation from withing the bean...
Is there a simple way to allow a specific private method to allos AOP @Async? or is just simpler to get a threadpool and execute manually?
instead of calling your async method on
this, inject the bean and call the method on the bean. here is a example:@Lazy!myService.doStuffAsync()instead ofthis.doStuffAsync()