[mule-user] FTP number of concurrent connections

17 views
Skip to first unread message

milan.dinic

unread,
Feb 4, 2008, 4:39:13 AM2/4/08
to us...@mule.codehaus.org

Hi,

I'm need to create application that is able to transfer files from one ftp
folder to another.

I'm using mule to do this, and it works fine when I use up to 4 FTP bridges
(pair of poller and sender), but I need more connections.

Endpoints and registring components is done programmatically (from java
code).

I found out that FtpConnector extends AbstractConnector which has member
DEFAULT_NUM_CONCURRENT_TX_RECEIVERS = 4;

this may be cosing this problem, can anyone tell my how to change this
value, or what to do to increase number of maximum allowed FTP connections.

Thank you in advance!

Regards,
Milan Dinic


--
View this message in context: http://www.nabble.com/FTP-number-of-concurrent-connections-tp15264589p15264589.html
Sent from the Mule - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Andrew Perepelytsya

unread,
Feb 4, 2008, 9:10:55 AM2/4/08
to us...@mule.codehaus.org
This constant is not used by an FTP connector, as it's not transactional. You should instead control the number of ftp receivers and components for your server.

Andrew

milan.dinic

unread,
Feb 4, 2008, 11:05:46 AM2/4/08
to us...@mule.codehaus.org

Thank you Andrew for your quick reply.
I have solved this problem just by setting
synchronous parameter to false in createStartedManager method call:

builder.createStartedManager(false, "", "seda");


now, I can have as much connections as I need, like always, new problem
occurred.
Sometimes, but only sometimes, mule throws exception, while doing file
polling:

04 Feb 2008 16:56:25,645 DEBUG [FtpTransportHandlerImpl] The transformed
object is of expected type. Type is: byte[]
04 Feb 2008 16:56:26,114 ERROR [DefaultExceptionStrategy] Caught exception
in Exception Strategy: Failed to retrieve file testfile3.xml. Ftp error: 550
java.io.IOException: Failed to retrieve file testfile3.xml. Ftp error: 550
at
org.mule.providers.ftp.FtpMessageReceiver.processFile(FtpMessageReceiver.java:170)
at
org.mule.providers.ftp.FtpMessageReceiver$FtpWork.run(FtpMessageReceiver.java:224)
at org.mule.impl.work.WorkerContext.run(WorkerContext.java:310)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
at java.lang.Thread.run(Unknown Source)


and successfully performs copy operation from one location to another?!?

test if performed with 10 'poll' folders each containing 5 files, and 10
'send' folder

do you have any idea what might be the cause of this exception?

-Milan

--
View this message in context: http://www.nabble.com/FTP-number-of-concurrent-connections-tp15264589p15269030.html

Andrew Perepelytsya

unread,
Feb 4, 2008, 11:27:11 AM2/4/08
to us...@mule.codehaus.org
You have to check ftp server logs.
Reply all
Reply to author
Forward
0 new messages