Mule ESB annotation doesn't work -
i try use @schedule annotation in mule esb, not work. don't know what's wrong it. java code :
public class mycache { @schedule(interval=1000) public void writestr(){ log.debug("111112222222223333333334444444444"); system.out.println("111112222222223333333334444444444"); } }
for reason goes beyond imagination, have use @schedule
annotated java components in obsolete model/service container work.
your above class (that put in com.acme
package) works following on mule 3.4.0:
<model> <service name="mycachescheduler"> <component> <singleton-object class="com.acme.mycache" /> </component> </service> </model>
Comments
Post a Comment