Results 1 to 5 of 5
  1. #1
    vnsuresh.abi is offline Member
    Join Date
    Aug 2010
    Posts
    1
    Rep Power
    0

    Post Retrieving data from database every 10 secs.

    Hello friends.i am doing a project in web service. In that i have a jsp page.
    in that page i want to retrieve the data every 10 secs..
    please help me with some coding...
    thank you...

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    19

    Default

    The client (html) will have to make a request to the server every 10 seconds then.
    This will probably be an AJAX call, with probably a JSON string returned containing the data.
    The server will simply take the request and do whatever search is needed.

    That should give you enough buzzwords to look up.

  3. #3
    only_java is offline Member
    Join Date
    Mar 2011
    Posts
    16
    Rep Power
    0

    Default Retrieving data from database every 10 secs

    Write down scheduler for that. So you can change duration as well from one location(.xml file).

    For more information pls visit.
    Quartz Scheduler - Home

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    19

    Default

    That won't help the client.
    The client has to make the request, so Quartz won't help.

  5. #5
    only_java is offline Member
    Join Date
    Mar 2011
    Posts
    16
    Rep Power
    0

    Default

    Use Reverse AJAX concept of
    DWR.
    More information can be found from here.
    DWR - Easy Ajax for JAVA
    :)

Similar Threads

  1. retrieving data from token
    By bozovilla in forum Advanced Java
    Replies: 4
    Last Post: 09-30-2010, 08:49 AM
  2. Problem retrieving data to JSP from Bean [using Hibernate]
    By linking90 in forum JavaServer Pages (JSP) and JSTL
    Replies: 11
    Last Post: 09-09-2010, 05:50 PM
  3. Store data is not retrieving
    By JavaJunkie in forum CLDC and MIDP
    Replies: 2
    Last Post: 05-30-2009, 08:08 AM
  4. error while retrieving data from data base
    By kirtesh4u in forum New To Java
    Replies: 5
    Last Post: 11-15-2008, 04:10 PM
  5. Retrieving data from the DB
    By yuchuang in forum JDBC
    Replies: 2
    Last Post: 11-27-2007, 08:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •