activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cristisor <cristisor...@yahoo.com>
Subject Re: Using BlobMessage with ActiveMQ inside ServiceMix
Date Thu, 05 Sep 2013 06:13:27 GMT
The configuration for embedding the FTP server into ServiceMix
3.6.0-fuse-00-89 is the following:
<beans xmlns:ftp="http://mina.apache.org/ftpserver/spring/v1"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://mina.apache.org/ftpserver/spring/v1 
		http://mina.apache.org/ftpserver/ftpserver-1.0.xsd">
	
	<bean id="listenerFactory"
class="org.apache.ftpserver.listener.ListenerFactory">
		<property name="port" value="2221"/>
		<property name="implicitSsl" value="false"/>
	</bean>
		
	<bean id="userManagerFactory"
class="org.apache.ftpserver.usermanager.PropertiesUserManagerFactory">
		<property name="file" value="classpath:ftpserver-users.properties"/>
	</bean>
		
	<bean id="serverFactory" class="org.apache.ftpserver.FtpServerFactory">
		<property name="listeners">
			<map>
				<entry key="default">
					<bean id="defaultListener" factory-bean="listenerFactory"
factory-method="createListener"/>
				</entry>
			</map>
		</property>
		<property name="userManager">
			<bean id="userManager" factory-bean="userManagerFactory"
factory-method="createUserManager" />
		</property>
	</bean>
	
	<bean id="ftpServer" class="org.apache.ftpserver.FtpServer" 
		factory-bean="serverFactory" factory-method="createServer"
init-method="start" destroy-method="stop" />
</beans>


Sending the blob messages via the ftp server is successful and we are
transferring files with the size close to 100MB very fast and without any
kind of error. For those who are looking to implement this solution, they
can set the upload URL like this:
tcp://localhost:62626?jms.blobTransferPolicy.uploadUrl=ftp://admin:admin@ftpurl:2221/

Sorry for replying so late but the past 2 months were very busy.



--
View this message in context: http://activemq.2283324.n4.nabble.com/Using-BlobMessage-with-ActiveMQ-inside-ServiceMix-tp4668354p4671207.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message