1 Reply Latest reply on Apr 16, 2007 12:41 PM by Mark Little

    NotifyFTP class for NotificationAction

    Derek Adams Newbie

      I added a new NotifyFTP class (based on work that Rex did a while back) which allows a message to be relayed to an external FTP server. For now, it does not use a provider, but instead mocks up an FTPEpr and sends the file via RemoteFileSystem. The outgoing filename can be built using message properties so that the filename is unique. For instance:

      <NotificationList type="OK" xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd">
       <target class="NotifyFTP">
       <ftp URL="ftp://user:pwd@myserver.com/home/test" filename="{jbossesb.message.id}.txt"/>
       </target>
      </NotificationList>
      


      ... will send the message contents to the the myserver.com server in the /home/test directory. The remote file will have the value for the 'jbossesb.message.id' property substituted as part of the filename.

      Hope this is useful,
      Derek