0

Quite new to the product, but looks promising. Can someone explain me two things:

  1. How do I parse credentials to an SMB inbound enpoint. I have a remote share, but I do not want the BUILTIN guest account to be enabled nor want to grant network BUILTIN account access (so everyone can just hit the share). I tried smb://user:password@host/share/folder but that didn't work.

  2. How do I point a send mediator correctly to an SMB end point? I get something like "The system cannot infer the transport information from the \host\share\folder URL", the URL I set as endpoint in the send mediator.

Community
  • 1
  • 1
Ronald
  • 1,083
  • 3
  • 13
  • 20
  • I can get it to work with Proxy services, but I understood that in a cluster config, proxy services cannot be coordinated, so multiple WSO2 servers start polling the same directory which results in trouble. Is this correct? – Ronald Nov 11 '15 at 07:48

1 Answers1

1

First of all, you'll need to enable VFS transport sender/receiver in axis2.xml (otherwise you'll get can't infer transport... error) More info here.

Then, you can connect to smb quite similar to ftp. There's a specific sample available here as well. You'll be able to define the credentials inline in the url.

In addition, if you use ESB 4.8.1 or older version, and poll the same vfs location with multiple nodes, there can be locking/concurrency issues. This is solved in new ESB 4.9.0 with File Inbound endpoints that support distributed locking.

Rajeev Sampath
  • 2,739
  • 1
  • 16
  • 19