Tomcat – do things after response

I have a servlet for the purposes of uploading my application’s database in android.The database is processed on the server side but that could take a while. At the moment, I’m just returning...