As you are running on a windows box... Try this url for ur sender..
<file:sender service="mediations:cdrFileSenderService"
endpoint="cdrFileSenderEndpoint"
directory="file:///c:/temp <file:///c:/temp> " />
________________________________
From: Sr, Ramu (NSN - IN/Bangalore) [mailto:[email protected]]
Sent: Tue 11/17/2009 2:15 PM
To: [email protected]
Subject: RE: FTP Poller component
Hi All,
I replaced the bean:endpoint with file:sender end point.
Expecting the file to be written to the directory specified in the file:sender
Now, I can see the following DEBUG message from FtpComponent continuously in
the console. But the file is not downloaded to the directory
Polling directory /test
Scheduling file test.xml for processing
Can anyone help me in this?
FileSender:
----------
<beans xmlns:file="http://servicemix.apache.org/file/1.0"
xmlns="http://www.springframework.org/schema/beans"
xmlns:mediations="http://www.abc.com/sai/mediations" >
<file:sender service="mediations:cdrFileSenderService"
endpoint="cdrFileSenderEndpoint"
directory="file:C:/Temp" />
</beans>
FTP Poller:
----------
<beans xmlns:ftp="http://servicemix.apache.org/ftp/1.0"
xmlns:mediations="http://www.abc.com/sai/mediations"
xmlns="http://www.springframework.org/schema/beans" >
<ftp:poller service="mediations:cdrFTPPollerService"
endpoint="cdrFTPPollerEndpoint"
targetService="mediations:cdrFileSenderService"
targetEndpoint="cdrFileSenderEndpoint"
deleteFile="false"
uri="ftp://omc:o...@74tk2bs <ftp://omc:o...@74tk2bs/> " />
</beans>
Regards,
Ramu
-----Original Message-----
From: Sr, Ramu (NSN - IN/Bangalore)
Sent: Tuesday, November 17, 2009 10:05 AM
To: '[email protected]'
Subject: RE: FTP Poller component
An update,
I replaced the older 3.2.3 version with Servicemix 3.3.1 and now I see debug
messages "Polling directory /test" repeatedly in my console.
I tried looking into the activities in jconsole. All Services and the endpoints
are up and running.
But no notifications are displyed in the bean endpoint/ftp endpoint and
ofcourse still the message I am printing from the bean is not visible :(
Servicemix 3.3.1 documentation pointed that the ftp:poller will poll an ftp
server, downloads the file and sends a JBI InOnly message to the registered JBI
Service.
In my example I am trying to hookup the bean service to the ftp poller so that
it can receive the message.
I am surely missing something which I am trying hard to debug :(
Regards,
Ramu
-----Original Message-----
From: ext Sr, Ramu (NSN - IN/Bangalore) [mailto:[email protected]]
Sent: Tuesday, November 17, 2009 9:13 AM
To: [email protected]
Subject: FTP Poller component
Hi All,
I am trying to use ftp:poller component of servicemix.
The requirement is very simple:
Download a file from FTP Server to the local system and send a JBI message to
another service unit.
I am expecting the message to carry information regarding where the file was
downloaded, so that I can take it up for processing in the bean.
I deploy the service assembly and the Deployment was successful. But nothing
happens after that.
I am expecting to see my System.out statement printed on the console.
I even enabled DEBUG, hoping to see some useful message. But no interesting
messages there.
I am using 2 components for this purpose. Files in the FTP Server location are
XML.
Can any of you help me in this?
1. FTP Poller <ftp:poller>:
xbean.xml :
...
<ftp:poller service="mediations:file"
endpoint="MyFTPPollerEndpoint"
targetService="mediations:fileListenerService"
uri=ftp://me:m...@myftpserver/test" />
2. Listener Bean <bean:endpoint> and <bean>:
xbean.xml:
...
<bean:endpoint service="mediations:fileListenerService"
endpoint="MyListenerEndpoint" bean="#listener"/>
<bean id="listener" class="com.test.MyFileListener"/>
MyFileListener.java
....
public class MyFileListener implements MessageExchangeListener {
@Resource
private DeliveryChannel channel;
public void onMessageExchange(MessageExchange exchange) throws
MessagingException
{
System.out.println("############################## Received exchange: " +
exchange);
exchange.setStatus(ExchangeStatus.DONE);
channel.send(exchange);
}
}
Thanks for your help in advance
Ramu
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not the
intended recipient, you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately and destroy all copies of this message and
any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The company
accepts no liability for any damage caused by any virus transmitted by this
email.
www.wipro.com