Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: monitoring the progress of a servlet

  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question monitoring the progress of a servlet

    Hi,
    i need to monitor the progress of servlet's treatment.
    i have a while loop executed in the servlet and i need to know the progress of its counter via the JSP page, this counter will be a progress bar counter so the user can know the servlet's progress.
    so what i want to know how to get each counter's valus via JSP
    Please help it's urgent


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: monitoring the progress of a servlet

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

    Show what you've tried.

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: monitoring the progress of a servlet

    First, if I understand your issue, Servlets are not meant to work like this. They are not meant to perform long running tasks, which should be done in a managed worker type of thread (presuming your container has that capability). Second, if you choose to actually do this, to monitor progress you can persist the data somehow (eg database) and have whatever needs to poll the data do so via this intermediary persistence mechanism.

    Please help it's urgent
    Please avoid statements like this. Everyone's question posted here is urgent for them - stating this only insinuates that your problem is more important than everyone else's. As a result, it can actually hurt your chances of getting help as it is perceived as being rude.

  4. #4

    Default Re: monitoring the progress of a servlet

    Application Performance Monitoring is capable of monitoring Java web applications by instrumenting the application's Filters and Servlets, through Servlet Monitoring. When a request is made to a web application / Servlet, a Server Request will be created with type SERVLET. The name of this Server Request will be the request URL path, without the schema, port, host, and query parameters.

Similar Threads

  1. Java monitoring tool
    By evidentsoftware in forum Java Theory & Questions
    Replies: 1
    Last Post: February 21st, 2012, 09:25 AM
  2. application of monitoring a network in java
    By ola50 in forum Java Networking
    Replies: 0
    Last Post: January 31st, 2012, 12:04 PM
  3. Monitoring thread for progress bar.
    By relixus in forum Threads
    Replies: 1
    Last Post: October 4th, 2010, 12:08 AM
  4. [Swing-Progress Bar] Can't resize progress bar
    By Grabar in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 14th, 2010, 12:27 PM
  5. Monitoring program
    By jassi in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 8th, 2010, 12:29 AM