Spring Batch 2.0: Retry a tasklet

Retry strategies in Spring Batch 2.0 allow chunk reprocessing under several fails. However, there is no core support to Tasklet steps retry and so, AOP techniques must be used.

Below both retry patterns (chunk and tasklet) are exposed.

Chunk retry: retry three times if some exception occurs on “chunk” execution


    
        
            
                java.lang.Exception
            
        
    

Tasklet retry: retry three times if some exception occurs on “tasklet” execution


    





    
    



  
    
      
        
          
          
	            
              java.lang.Exception
            
          
        
      
    
  


Published by angelborroy

Understanding software.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s