Shaffer,

This approach is a little overhead in the maintainability of the code (and
in the methods too, since every server call will make a extra call to the
database).

GKotta

To avoid access to images that is in the database but the 2 month time has
expired, you can make the check only in the methods that access the images
in the database (if using hibernate this can be an interceptor).

This will introduce overhead, but only when images are needed.

If you cannot add a cron job at your server, create an speciall url that
requires a custom login/password and when that url is accessed you run the
code that removes the images from the database. If possible use SSL in this
part of the site and don't send the username/password in the query string,
use the HTTP POST METHOD.

Then you can make a cron job in your computer (home or job) and create a
simple wget script that access that special url. This isn't the best
solution, but works when you don't have admin access to cron jobs in the
production server.

-- 
André Moraes
Analista de Desenvolvimento de Sistemas
[email protected]
http://andredevchannel.blogspot.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to