Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ESB FSProvider redundant direcories  RSS feed

M Handa
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have an fsprovider set up with a configured input directory which is on a network share say /mnt/mhanda1 (Suppose mhanda1 is shared using smb on

I have specified an input suffix as .txt.

So whenever i put a file in /mnt/mhanda1 directory, my service action reads that file and prints out the contents of the file to the stdout.

Now the problem is, if for some reasons or the smb server running on that machine goes down, I want to use a backup server, which say is running on and is mounted on my file system on /mnt/mhanda2

Whenever i unmount /mnt/mhanda1 I get the following error in my server logs

Now I do not understand how I can catch this IOException in my fs-listener code, because it is being caught and dealt with in a layer which I think is beyond my control. So I do not understand how I would know when to use /mnt/mhanda2.

Any suggestions will be appreciated.
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!