Mule File Inbound Polling Configuration -


I want to select 10 files at a time from a particular directory at a fixed time interval. If 250 files are present in that directory, then they should take 250 to 10 files in their file inbound and then re-execute them on 10 files. I have the voting frequency value of "10000"

I tried to apply the maximum thread application like this but it does not work

   org.mule.transport.file.filemessageReceiver , especially the  listFiles ()  method.  
  The public class MyFileMessageReceiver expands the file message receiver {personal fixed last MAX_FILES = 10; @ Override list & lt; File & gt; ListFiles () throws MuleException {try {list & lt; File & gt; Files = New Arreelist & lt; File & gt; (); This.basicListFiles (redirects, files); If (files.isEmpty ()) return NO_FILES; Return files (files.size ()> MAX_FILES). IBLIIS (0, MAX_FILES); Return other files; } Hold (exception e) {new default mauley expression (file message .errorist listing files), e); Then create a connector that will use your message receiver  
  & lt; File: connector name = "inboundFileConnector" & gt; & Lt; Service-Override Message Receiver = "org.mule.transport.file.MyFileMessageReceiver" /> & Lt; / File: Connector & gt;   

Finally you can use this connector in any of your configurations with any file inbound endpoint. You just have to specify the voting frequency and you have done it.

HH

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -