I'm creating a web service that needs to do some processing that will
take too long to perform and return to the client synchronously.  I'm
considering giving the client back a transactionid immediately, storing
it in a database, then spawning a thread which will do the long running
task and update the database mapping between the transactionid and the
results which the client can query later.

My main question is if there's anything special I should consider about
spawning threads from a CXF web service in this fashion or if this is a
bad idea?

Thanks,
David

Reply via email to