Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to make an extremely simple cron job on JBoss ESB
    primarykey
    data
    text
    <p>I'm looking for the simplest thing that could possibly work to schedule a simple job - a job which doesn't interact with any other ESB component. [<em>Go easy on me as this my first hour in ESB-land.</em>] </p> <p>I get the bit about having a <code>cron-scheduler</code> producer. It appears to be deliciously simple if you're familiar with <code>cron</code>: </p> <pre><code>&lt;providers&gt; &lt;schedule-provider name="schedule"&gt; &lt;cron-schedule scheduleid="cron-trigger" cronExpression="0/1 * * * * ?" /&gt; &lt;/schedule-provider&gt; &lt;/providers&gt; </code></pre> <p>Next there is a listener (referencing the producer) to handle the scheduled events</p> <pre><code>&lt;services&gt; &lt;service category="ServiceCat" name="ServiceName" description="Test Service"&gt; &lt;listeners&gt; &lt;scheduled-listener name="cron-schedule-listener" scheduleidref="cron-trigger" event-processor="org.example.MyListener" /&gt; &lt;/listeners&gt; &lt;/service&gt; &lt;/services&gt; </code></pre> <p>Given that my job action isn't going to send any messages, or need to notify anything regarding success or failure. could I simply extend <a href="http://docs.jboss.org/jbossesb/docs/4.3.GA/javadoc/esb/org/jboss/soa/esb/listeners/ScheduleListener.html" rel="nofollow"><code>ScheduleListener</code></a> and override the <a href="http://docs.jboss.org/jbossesb/docs/4.5.GA/javadoc/esb/org/jboss/soa/esb/listeners/ScheduleListener.html#onSchedule%28%29" rel="nofollow"><code>onSchedule()</code></a> method and implement my job execution there without creating an action?</p> <p>Even if this were possible, would there be any benefit for using an action for this simple pattern?</p> <p>I'm using JBoss ESB 4.9.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload