How To Make A Jsp Page To Run Continuously For Every 2 Minuts

K!r@nS!ngu
@kr-at-nsngu-XqzcfU โ€ข Oct 26, 2024

Dear all,
I have a jsp page which pings an ip... i want it to execute for every 2 minuts and display the result.. can anybody help on this regard...

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • praba230890

    @praba230890-vPFAoQ • Dec 9, 2011

    I think you could achieve this using #-Link-Snipped-# (a framework that supports sheduling). Also your task looks simpler, so you could use the solution that I saw in #-Link-Snipped-#.

  • K!r@nS!ngu

    @kr-at-nsngu-XqzcfU • Dec 11, 2011

    Thanks ..... I got it using ScheduledExecutorService...

  • PraveenKumar Purushothaman

    @praveenkumar-66Ze92 • Dec 21, 2011

    K!r@nS!nguThanks ..... I got it using ScheduledExecutorService...

    That's nice... You can also do cron jobs! ๐Ÿ˜€