[jboss-user] [JBoss Seam] - Long running batch job in Seam 1.2.1
erik.d.hellman@gmail.com
do-not-reply at jboss.com
Tue Nov 27 07:16:06 EST 2007
I have a Seam component that will receive a large amount of incoming data, process it and insert or update the database. The method that gets called once the file has been posted (using s:fileUpload) is annotated @Asynchronous, so it will be executed in its own thread and context. The entire file must be processed in one single transaction, it cannot be splitted in several smaller transactions in any way. Also, I do require transaction-support since it must be possible to roll back all changes if a part of the file cannot be processed.
Now, this data import may take a quite a long time. Usually several hours. Currently the transaction times out, which I guess can be solved using the @TransationTimeout-value. But is this really the best way to solve this? Should I use jBPM instead and how would I do then? Or is there any other method for solving this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108028#4108028
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108028
More information about the jboss-user
mailing list