aspose file tools*
The moose likes Servlets and the fly likes Escalation in java servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Escalation in java servlets" Watch "Escalation in java servlets" New topic
Author

Escalation in java servlets

Nayana Bhirud
Greenhorn

Joined: Aug 01, 2007
Posts: 2
Hi,

i am nayana,i am developing the software in java servlets 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.

Thanking You.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12805
    
    5
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.

Bill
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I don't thing Nayana's talking about managing a long running process.
I think, what (s)he's describing is a case management system.

A call comes in and goes into queue.
If it isn't picked up and handled by someone in 2 hours, then the case gets escalated to a higher status.

Is this what you're talking about Nayana?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Nayana Bhirud
Greenhorn

Joined: Aug 01, 2007
Posts: 2
.please if you have that it give it to me .


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 ]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12805
    
    5
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?

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Escalation in java servlets