Excuse me for the title but I have some difficulties explaining my idea within the title. If anyone can edit it, I will be very pleased.
I have a button in my page, when I click that, a managed bean method is called which by its side calls(executes) a new thread. The new thread has to process some operations (I/O, email etc).
The problem is that when I click the button, it remains pressed till all the operations of the thread are finished. Is there a way to just press this button, and then continue doing other stuff, doing these operations in background?
+1
don't span threads. introduce business service with asynchronous operation and invoke that operation. --Peddi