Hello,
I wanted to use the api competitor for executing a task asynchronously, it is actually sending the mail after sending a form http. such as sending mail may take some time, I would return to the page and allow the sending of mail carried in a separate process, here is my code:
Code:Executor etor = Executors.newSingleThreadExecutor(); etor.execute(new Runnable() { Public void run() { MailManager.confirmCreation(Instance); } });
Bookmarks