I have done it by using asynchronous method in SLSB.
1 of 1 people found this helpful
That's a good way to do it. On EE7 (so Wildfly 8+), you can use a managed executor service too.
Thank you James!
Asynchronous method worked well in case of simple asynchronous tasks. But when I used asynchronous method which inturn calls many other methods in bean and fetch and persists entity to u[date status, it thrown EntityNotFoundException intermittently. Eg: updated entity Status to new before calling async method, inside method, it fetched that entity and updated processing and then other status updates to reflect progress in entity table. This kind of things not worked well. But for jobs like sending mail asynchronously worked fine.