pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Neu <peter.neu@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: WG: HowTo: Scheduled User Management?
Date: Thu, 24 Aug 2006 10:52:49 +0200
Message-ID: <002201c6c75a$ad7d1e40$bcc8a8c0@PCMELZER> (raw)

Hello,

I have a small app which manages users in a postgresql db. I use 7.4.2.

Yesterday I got this requirement that user accounts should be valid only for
a given period. When I create a new user I will have to have two timestamps 
one with now() and one with now()+6 months.

Now the tricky part: The system should check once a day if an account is
still valid and if not it should set the account to inactive and notify
somebody by mail. 

How is this done the best way? I heard some stuff about doing this with a
crone job, is this necessary (db runs on linux)? My app runs in a tomcat
server so it is available all the time. Is this a job for quartz API or is
there an easier way? What would you guys suggest?


Cheers,
Pete 





Message-ID: <002201c6c75a$ad7d1e40$bcc8a8c0@PCMELZER>
Permalink:  ../002201c6c75a$ad7d1e40$bcc8a8c0@PCMELZER/
Also on:    postgresql.org/message-id/002201c6c75a$ad7d1e40$bcc8a8c0@PCMELZER

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: peter.neu@gmx.net
  Subject: Re: WG: HowTo: Scheduled User Management?
  In-Reply-To: <002201c6c75a$ad7d1e40$bcc8a8c0@PCMELZER>
  References: <002201c6c75a$ad7d1e40$bcc8a8c0@PCMELZER>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox