[jboss-dev-forums] [Design of JBoss ESB] - NotifyFTP class for NotificationAction

derek.adams do-not-reply at jboss.com
Thu Apr 12 14:03:18 EDT 2007


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036826#4036826

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036826



More information about the jboss-dev-forums mailing list