Batch profiling with custom services

Thank you @Patrick H. for your answer. I was trying on a test batch :

public class Entree {<br>	public static void main(String[] args) throws Exception {<br>		doIt();<br>	}<br>	private static void doIt() throws InterruptedException {<br>		while (true) {<br>			System.out.println(" Il est " + new Date() );<br>			Thread.sleep(5000);<br>		}<br>	}<br>}<br>

and it didn’t work (?).

I tried on my real batch, and now it seems to works.

Thank you for your help,

JP