WebSphere Commerce suite - Re: Commerce 5.6 Scheduled Commands Deadlock With User-Initiated<br> Commands

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Commerce suite > May 2005 > Re: Commerce 5.6 Scheduled Commands Deadlock With User-Initiated<br> Commands





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Commerce 5.6 Scheduled Commands Deadlock With User-Initiated<br> Commands

2005-05-04, 7:50 am

I actually did something quite similar to that. The issue is that I need to empty stale carts every 15 minutes, so I can't have the scheduler wait until late at night. So, what I did was use non-transactional JDBC in a session bean to manipulate the LASTU
PDATE of an order as well as a flag I created called MARKEDFORDELETE. Essentially, if the scheduler starts and sees that according to the order's LASTUPDATE the cart doesn't need to be emptied, it will skip it; otherwise, it will set the MARKEDFORDELETE f
lag and reap the order. On the other side, if a user performs a cart function, it checks for MARKEDFORDELETE before continuing and only updates LASTUPDATE if the command is allowed to run. Working so far...
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com