Reputation: 71
How doe we monitor a folder in Windows network from unix server using camel file component?
When I run my program from Windows it works fine but when I deploy my jar on unix server it doesnt read the windows filepath.
Upvotes: 0
Views: 660
Reputation: 201437
Per this Oracle blog post
Sun ships SAMBA with Solaris 9 & Solaris 10 and it is supported as part of the Operating System.
First, you need to enable the (Samba) Client Service
svcadm enable network/smb/client
Then create a mount-point (e.g. "/testFolder"),
mkdir /testFolder
mount -F smbfs //10.22.34.56/TestFolder /testFolder
Then you should be able to use camel to monitor "/testFolder" on your Unix server (which will actually map to the folder on your Windows share).
You should also be able to view available share names on your server (like so)
smbutil view //10.22.34.56
Upvotes: 1