Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

Simple scheduler not working

$
0
0

Hi,

 

I have created the bundle and compiled the bundle but i am not able to see the logs in the log file

 

Example

 

import org.slf4j.Logger;

import org.slf4j.LoggerFactory;

 

/**

* @scr.component

* @scr.service interface="java.lang.Runnable"

* @scr.property name="scheduler.expression" value="0/5 * * * * ?"

*/

*-

public class ScheduledCronJob implements Runnable {

     /** Default log. */  

   protected final Logger log = LoggerFactory.getLogger(ScheduledCronJob.class);    

     public void run() {    

     log.info("Executing a cron job (job#1) through the whiteboard pattern");

    }  //  }

 

Thanks

Sumit


Viewing all articles
Browse latest Browse all 12476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>