-
1. Re: How to create my own gateway classes
edx Jul 26, 2010 5:03 AM (in response to andreasriedel)You can do your own implementation of org.jboss.soa.esb.listeners.ScheduledEventMessageComposer.
Then you should define the Schedule Provider and then the instance of Scheduled Listener containing the definition of your class as EventProcessor.
regs.
Edward
-
2. Re: How to create my own gateway classes
andreasriedel Jul 26, 2010 5:32 AM (in response to edx)It's not that hard to do the implementation.
I'm more interesset in how to use it. It's to define and I'm looking for some documention how to do so.
-
3. Re: How to create my own gateway classes
edx Jul 26, 2010 5:56 AM (in response to andreasriedel)The simple example might be as follows:
In jboss-esb.xml in section <providers> define:
<schedule-provider name="MySchedProvider"><simple-schedule frequency="30" frequencyUnits="seconds" scheduleid="MySimpleSchedule"/></schedule-provider>Then in section <services><service><listeners> define:
<scheduled-listener
event-processor="MyMessageComposerImplementationClass"
is-gateway="true" name="MyScheduledListener" scheduleidref="MySimpleSchedule">
<property name="param" value="value"/>
</scheduled-listener>
properties <param,value> have the same meaning as ConfigTree for Action classes.
In the above example the method composeMessage() of MyMessageComposerImplementationClass is invoked in every 30 seconds.
regards,
Edward
-
4. Re: How to create my own gateway classes
andreasriedel Jul 26, 2010 6:42 AM (in response to edx)Ok, I understand. I havn't seen this.
Thanks.
Andreas