Exemplo DirPoll
Configuração <dir-poll class=”org.jpos.q2.iso.DirPollAdaptor” logger=”Q2″> <attr name=”path”>spool/myspool</attr> <attr name=”priorities”>.txt</attr> <attr name=”poolSize” type=”java.lang.Integer”>1</attr> <attr name=”pollInterval” type=”java.lang.Long”>5000</attr> <attr name=”processor”>your.dirpoll.Processor</attr> <property name=”archive” value=”true” /> <property name=”archive.timestamp” value=”true” /></dir-poll> Sample FileProcessor public class Processor implements …
Continuar lendo