hi all
i created a file sending component that would send file to FTP
server.My file is transfered but the execution happens twice.Finally i get
the following exception.
org.springframework.beans.factory.BeanCreationException: Error creating bean
wit
h name 'file sender' defined in file
[E:\apache-servicemix-3.0-M2-incubating\exa
mples\SendingFtpFile\servicemix.xml]: Invocation of init method failed;
nested e
xception is java.lang.IllegalArgumentException: Component name: SendFtpFiles
is
bound to an object which is not a JBI component, it is of type:
com.SendFiles.Se
ndFtpFiles
Caused by: java.lang.IllegalArgumentException: Component name: SendFtpFiles
is b
ound to an object which is not a JBI component, it is of type:
com.SendFiles.Sen
dFtpFiles
my xml file is here
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0">
<!-- the JBI container -->
<sm:container id="file sender"
rootDir="./wdir"
installationDirPath="./install"
deploymentDirPath="./deploy"
flowName="seda">
<sm:activationSpecs>
<sm:activationSpec componentName="SendFtpFiles"
service="foo:SendFtpFiles">
<sm:component>
<bean class="com.SendFiles.SendFtpFiles">
<constructor-arg
type="java.lang.String"><value>D:\\servicemix.txt</value></constructor-arg>
</bean>
</sm:component>
</sm:activationSpec>
</sm:activationSpecs>
</sm:container>
<!-- message broker -->
</beans>
could anyone reply me ...
thanks in advance.
--
View this message in context:
http://www.nabble.com/java.lang.IllegalArgumentException-tf2310204.html#a6422879
Sent from the ServiceMix - User mailing list archive at Nabble.com.