Problem with (S)FTP Listener in read only mode
garuda Nov 10, 2010 8:40 AMHello experts,
I try to configure sftp in readonly mode inspired by the quickstart sample. But for any reason my configuration doesn't work properly.
This is working:
- FTP Listener fetches the test files from sftp server
This is not working:
- FTP Listener doesn't remember which test files were already caught and which were not
Please see my ftp-provider and ftp-listener from my jbossesb.xml below:
... <ftp-provider hostname="xxx.xxx.xxx.xx:22" name="FtpGateway"> ... <ftp-listener busidref="FtpGatewayEdi" is-gateway="true" maxThreads="1" name="FTP-GWListener" schedule-frequency="999999"> <property name="remoteFileSystemStrategy-cacheListener" value="org.jboss.soa.esb.listeners.gateway.remotestrategies.cache.DeleteOnEvictTreeCacheListener"/> |
The remoteFileSystemStrategy is configured below ( I have choosen file chache loader only for testing purpose. I won't use it for production ;-))
<?xml version="1.0" encoding="UTF-8"?>
<mbean code="org.jboss.cache.TreeCache" name="jboss.cache:service=TreeCache">
<depends>jboss:service=Naming</depends>
<!-- Configure the TransactionManager -->
<!-- Isolation level : SERIALIZABLE REPEATABLE_READ (default) READ_COMMITTED READ_UNCOMMITTED NONE -->
<!-- Valid modes are LOCAL, REPL_ASYNC and REPL_SYNC -->
<!-- Just used for async repl: use a replication queue -->
<!-- Replication interval for replication queue (in ms) -->
<!-- Max number of elements which trigger replication -->
<!-- Name of cluster. Needs to be the same for all clusters, in order to find each other -->
<!--attribute name="ClusterConfig">
<!-- Whether or not to fetch state on joining a cluster -->
<!--
<!--
<!-- Max number of milliseconds to wait for a lock acquisition -->
</config>
</server> |
Please have a look at the snipped server log:
2010-11-10 13:28:05,999 TRACE [org.jboss.cache.TreeCache] Constructing 2010-11-10 13:28:05,999 INFO [org.jboss.cache.PropertyConfigurator] Found existing property editor for org.w3c.dom.Element: org.jboss.util.propertyeditor.ElementEditor@16ee755 2010-11-10 13:28:05,999 INFO [org.jboss.cache.PropertyConfigurator] configure(): attribute size: 20 2010-11-10 13:28:05,999 INFO [org.jboss.cache.TreeCache] setEvictionPolicyConfig(): [config: null] 2010-11-10 13:28:05,999 INFO [org.jboss.cache.TreeCache] interceptor chain is: class org.jboss.cache.interceptors.CallInterceptor class org.jboss.cache.interceptors.PessimisticLockInterceptor class org.jboss.cache.interceptors.UnlockInterceptor class org.jboss.cache.interceptors.ReplicationInterceptor 2010-11-10 13:28:05,999 INFO [org.jboss.cache.TreeCache] cache mode is REPL_SYNC 2010-11-10 13:28:05,999 DEBUG [org.jboss.cache.TreeCache] setting cluster properties to default value 2010-11-10 13:28:06,015 TRACE [org.jboss.cache.TreeCache] cache properties: UDP(mcast_addr=224.0.0.36;mcast_port=55566;ip_ttl=32;mcast_send_buf_size=150000;mcast_recv_buf_size=80000):PING(timeout=1000;num_initial_members=2):MERGE2(min_interval=5000;max_interval=10000):FD_SOCK:VERIFY_SUSPECT(timeout=1500):pbcast.NAKACK(gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800):UNICAST(timeout=600,1200,2400,4800):pbcast.STABLE(desired_avg_gossip=20000):FRAG(frag_size=8192;down_thread=false;up_thread=false):pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=false;print_local_addr=true):pbcast.STATE_TRANSFER 2010-11-10 13:28:06,015 WARN [org.jgroups.JChannel] option GET_STATE_EVENTS has been deprecated (it is always true now); this option is ignored 2010-11-10 13:28:06,030 WARN [org.jgroups.protocols.UDP] failed to join /224.0.0.75:7500 on net4: java.net.SocketException: Unrecognized Windows Sockets error: 0: no Inet4Address associated with interface 2010-11-10 13:28:06,030 WARN [org.jgroups.protocols.UDP] failed to join /224.0.0.75:7500 on net5: java.net.SocketException: Unrecognized Windows Sockets error: 0: no Inet4Address associated with interface 2010-11-10 13:28:06,046 INFO [STDOUT] ------------------------------------------------------- GMS: address is 10.11.17.142:57257 ------------------------------------------------------- 2010-11-10 13:28:07,046 INFO [org.jboss.cache.TreeCache] viewAccepted(): [10.11.17.142:57257|0] [10.11.17.142:57257] 2010-11-10 13:28:07,046 INFO [org.jboss.cache.TreeCache] my local address is 10.11.17.142:57257 2010-11-10 13:28:07,046 INFO [org.jboss.cache.TreeCache] state could not be retrieved (must be first member in group) 2010-11-10 13:28:07,046 INFO [org.jboss.cache.eviction.LRUPolicy] Starting eviction policy using the provider: org.jboss.cache.eviction.LRUPolicy 2010-11-10 13:28:07,046 INFO [org.jboss.cache.eviction.LRUPolicy] Starting a eviction timer with wake up interval of (secs) 60 2010-11-10 13:28:07,046 INFO [org.jboss.cache.TreeCache] Cache is started!! 2010-11-10 13:28:07,070 INFO [org.apache.juddi.datastore.jdbc.JDBCDataStore] Generated token 'authToken:5A87EDC0-ECCE-11DF-B40E-D4AAE31AC233' for user: 'jbossesb/JBoss ESB User' 2010-11-10 13:28:07,133 INFO [org.quartz.core.QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started. 2010-11-10 13:28:07,133 TRACE [com.airpas.esbconfig.session.Service] EDI_FTP_Service.esb's new state: 3 2010-11-10 13:28:07,491 TRACE [org.jboss.cache.TreeCache] _put(null, "/ftp/cache", test.txt, test.txt) 2010-11-10 13:28:07,491 TRACE [org.jboss.cache.TreeCache] destination list is empty, discarding call |
Can you please give me advise what I am doing wrong ?
Br,
Dennis