FTP listener, filename
phillip.schulte Sep 28, 2010 6:05 AMHey,
my jboss-esb.xml looks like this
<service category="de.eskalon.kn.garuda.invoice.HistoricalExchangeRates" name="HistoricalExchangeRateImporter" description="Imports historical exchange rates from ftp directory files" invmScope="GLOBAL"> <service category="de.eskalon.kn.garuda.invoice.HistoricalExchangeRates" name="HistoricalExchangeRateImporter" description="Imports historical exchange rates from ftp directory files" invmScope="GLOBAL"> <listeners> <ftp-listener busidref="currency-ftp-in" is-gateway="true" maxThreads="2" name="ftp-listener-gateway" scheduleidref="everyminute" /> </listeners> <actions mep="OneWay"> <action name="transform" class="org.jboss.soa.esb.actions.converters.ByteArrayToString"> <property name="encoding" value="UTF-8" /> </action> <action class="org.jboss.soa.esb.actions.EJBProcessor" name="callPersist"> <property name="ejb3" value="true" /> <property name="jndi-name" value="garuda-invoice/HistoricalExchangeRatesManagerBean/remote" /> <property name="initial-context-factory" value="org.jnp.interfaces.NamingContextFactory" /> <property name="provider-url" value="localhost:1099" /> <property name="method" value="persistRate" /> <property name="ejb-params"> <arg0 type="java.lang.String">org.jboss.soa.esb.message.defaultEntry</arg0> <arg1 type="java.lang.String">???? </arg1> </property> <property name="esb-out-var" value="get-order-response" /> </action> </actions> </service> <listeners> <ftp-listener busidref="currency-ftp-in" is-gateway="true" maxThreads="2" name="ftp-listener-gateway" scheduleidref="everyminute" /> </listeners> <actions mep="OneWay">
My question is how can I access the filename from the file that the ftp-listener had read?
Best regards
Phillip