i am nayana,i am developing the software in javaservlets for networking company ,which handle customer query.After registered that query that should get solved in 2hr.and if not get then its autimatically get escalated to higher autority.Please any one no about this logic and have a code with you please send me that.or help me out to sovle this problem.
Your long running job should not be thought of as a servlet problem since servlets operate on a request - response cycle. Instead you need to figure out how to make one request start the query process - preferably in an application that is completely separate from the servlet container. Subsequent requests can monitor the state of the query and return the status.
Putting the actual work in a separate application will make it MUCH easier to test since you can simulate query submissions without a servlet running.
Java has plenty of possible ways for a servlet to communicate with another application.
At JavaRanch, we prefer to help people learn how to do these things for themselves.
Why don't you start by telling us how much of this is already written. Then, in detail, tell us what part has you stumped. At that point, someone can either give you tips or direct you to the forum that is appropriate for your particular issue. [ August 10, 2007: Message edited by: Ben Souther ]
Author and all-around good cowpoke
Joined: Mar 22, 2000
The servlet part of this problem is getting the queries into the queue - presumably implemented in a database which is independent of the servlet container - and subsequently responding to requests about the status of a query.
It seems to me that monitoring the status of queries in the queue and possibly "escalating" the priority attached to a query should be done by an application that is separate from the servlet container.
Is there an existing system for handling customer queries?