This content has been marked as final.
Show 5 replies
-
1. Re: How to implement really LONG running action ?
kapitanpetko Oct 29, 2009 10:49 AM (in response to zipito)If it has to be run only once, does it have to be a web application? Write an SQL script or if not possible, a console application.
-
2. Re: How to implement really LONG running action ?
zipito Oct 29, 2009 10:51 AM (in response to zipito)But I need to run it as the seam application. (I'm using seam's model, entityManager and so on)...
-
3. Re: How to implement really LONG running action ?
lvdberg Oct 29, 2009 11:16 AM (in response to zipito)Hi,
make it an Asynchronous task and add a ajax:push tag on your page, which gets riggered when the task has ended.
Leo
-
4. Re: How to implement really LONG running action ?
kapitanpetko Oct 29, 2009 11:46 AM (in response to zipito)
Ilya Dyoshin wrote on Oct 29, 2009 10:51:
But I need to run it as the seam application. (I'm using seam's model, entityManager and so on)...So your application is not properly factored :) As already suggested, use @Asynchronous, that should do it. Could be trickier if you need to monitor progress, but not that much.
-
5. Re: How to implement really LONG running action ?
luxspes Oct 29, 2009 7:05 PM (in response to zipito)This is what happens when you have a hammer (Seam), and start thinking all problems look like a nail (long running batch process).
You should probably have used something like Spring Batch for this, not Seam.