I am planning on building a webservice client that always checks for some records in the database and performs certain decisions based on results of the database content at each moment in time.
So i was thinking, how could i make the client run always ?
The only thing that came into my mind is to have an endless loop. Something like :
public static void main(String[] args)
{
while(true)
{
//Do database operation.
}
}
So is this the right way of doing something like what i explained ?