0 Replies Latest reply on Dec 17, 2009 1:27 PM by Steven Whyte

    Sending File to JMS and Have NotifyFTP upload without changing name

    Steven Whyte Newbie

      I am trying to put a file on a JMS queue that a esb listener will get and via ftps send the file to our partners servers, but when the file is removed from the message (as a byte[]) it is stored in a temporary file (/tmp/jbossesb-NotifyFTP4722526407988847272.tmp), I would like to keep the name it was placed to the queue and uploaded to our partner and not have a rename occur. Is this possible?

       

       

      Section of jboss-esb.xml

      <services>
        <service category="BankWire"
         description="BankWire Listener Service" name="BankWireListener">
         <listeners>
          <jms-listener busidref="bank-wireGwChannel"
           is-gateway="true" name="BankWire_JMS_Gateway"/>
          <jms-listener busidref="bank-wireEsbChannel" name="BankWire_Listener"/>
         </listeners>
         <actions mep="OneWay">
          <action class="org.jboss.soa.esb.actions.SystemPrintln" name="StartingTransfer">
           <property name="message" value="Beginning Bank transfer"/>
          </action>
          <action class="org.jboss.soa.esb.actions.Notifier" name="notificationAction">
           <property name="okMethod" value="notifyOK"/>
           <property name="notification-details">
            <NotificationList type="ok" >
             <target class="NotifyFTP">
              <ftp URL="ftps://username:password@domain.com/outbox"
               certificate-passphrase="changeit" filename="test.xls"
               inputSuffix="testsuffix" passive="true" port="5031"
               postDelete="false" postDir="/outbox/nonedi"
               postRename="false" postSuffix=".xls" work-suffix=".esbWorking"/>
             </target>
             <target class="NotifyConsole"/>
            </NotificationList>
           </property>
          </action>
         </actions>
        </service>
       </services>
      

       

      Thanks