multiple functioning using java and spring framework -


i using spring ,

i need send mail 10000 users.now waiting in page till mails sent.but dont want wait.i need give task class execute automatically after handover,then need continue task.

how can this?

thanks in advance...

the @async annotation

the @async annotation can provided on method invocation  

of method occur asynchronously. in other words, caller return upon invocation , actual execution of method occur in task has been submitted spring taskexecutor.

source


Comments

Popular posts from this blog

c++ - Linked List error when inserting for the last time -

java - activate/deactivate sonar maven plugin by profile? -

tsql - Pivot with Temp Table (definition for column must include data type) -- SQL Server 2008 -