java - Mule: Closing stream and queued-asynchronous -


I have a flow that I have changed from synchronous to queue-asynchronous. At some time in a foreach, I am opening a file and setting FileInputStream is as follows:

  Public class FileAsStream {// Return a file InputStream Public FileInputStream fileAuststream (string filename) { File file = new file (filename); FileInputStream fis = null; {Fis = Try New FileInputStream (File); } Hold (IOException e) {e.printStackTrace (); } Finally {efis; }}  

FileInputStream then my payload becomes, and I'm sending it at http or sftp endpoints. When the flow was synchronous, then I could run # [payload.close ()] and could close the current. But now it is asynchronous, it does not seem that I can do it. When I try to close the stream, it fails. My question is whether I close this stream or not. Does the mule wrap things made in terms of flow? Or do I need to stop the stream after sending someone to the end point?


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -