[jboss-dev-forums] [JBoss ESB Development] - Re: Problem with adding post-suffix to file after coping

Bala Voleti do-not-reply at jboss.com
Thu Jul 19 16:20:49 EDT 2012


Bala Voleti [https://community.jboss.org/people/bvoleti] created the discussion

"Re: Problem with adding post-suffix to file after coping"

To view the discussion, visit: https://community.jboss.org/message/749137#749137

--------------------------------------------------------------
Hi Tom, 
I had the similar issue, please see my configuration. I'm able to SFTP file from remote to my local machince without problem. 

if you see my provider i'm accepting all types of file and want to transfer same file to my local, can you please let me know how do i mention in my notifer to transfer same file with same name and type to my local. Thank you for you help in Adavance ... Bala 

<providers>

  <ftp-provider hostname="...." name="FTPProviderLAB11">
   <ftp-bus busid="LAB11ChannelID">
    <ftp-message-filter directory="/opt/sw/jboss/target/receive"
     input-suffix=".*" password="password" post-delete="true"
     post-rename="false" protocol="sftp" username="jboss"/>
   </ftp-bus>
  </ftp-provider>
 </providers>
 <services>
  <service category="SFTPToLocalCategory"
   description="Transfer file from SFTP server to your local box or remote box"
   invmScope="GLOBAL" invmTransacted="true" name="SFTPToLocalService">
   <listeners>
    <ftp-listener busidref="LAB11ChannelID" is-gateway="true" name="LAB11Listener"/>
   </listeners>
   <actions mep="OneWay">
    <action class="org.jboss.soa.esb.actions.Notifier" name="notificationAction">
     <property name="okMethod" value="notifyOK"/>
     <property name="destinations">
      <NotificationList type="ok">
       <target class="NotifyFiles">
        <file URI="E:\testing\done\Successful.pptx" append="false"/>
       </target>
      </NotificationList>
      <NotificationList type="err">
       <target class="NotifyFiles">
        <file URI="E:\testing\exception\Error.pptx" append="false"/>
       </target>
      </NotificationList>
     </property>
    </action>
   </actions>
  </service>
 </services>
</jbossesb>
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/749137#749137]

Start a new discussion in JBoss ESB Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2032]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120719/56554e78/attachment.html 


More information about the jboss-dev-forums mailing list