title: Dynamic scheduler in Liferay
body: <p>I need to execute a task periodically in Liferay, I find that you can create a class that implements <code>MessageListener</code> and in the <code>receive</code> method you can implement the action. Until here its fine, but after this to program the time you need to do it in <code>liferay-portlet.xml</code>, if the xml file is used I cannot edit the duration dynamically. </p>
  
  <p>Is there any way I can create a task that can be programmed to dynamically get the values for scheduling duration from the DB? </p>
  
  <p>I believe that with <code>SchedulerEngineUtil</code> I must to be able tho do this, but I don't know if it's the correct way or how do it? </p>
  
  <p>Does anyone know how I can find any documentation and some example?</p>
  
  <p>Thanks in advance</p>