dirk-olmes / mule-transport-cifs Goto Github PK
View Code? Open in Web Editor NEWMuleCIFS transport
MuleCIFS transport
Hi,
I tried to use this transport as inbound-endpoint but it seems that it is not available anymore on mule's maven repository.
Building with maven throws this:
Failed to execute goal on project test_file_tojms: Could not resolve dependencies for project com.mycompany:test_file_tojms:mule:1.0.0-SNAPSHOT: Failed to collect dependencies at org.mule.transports:mule-transport-cifs:jar:3.3.0 -> org.samba.jcifs:jcifs:jar:1.3.10: Failed to read artifact descriptor for org.samba.jcifs:jcifs:jar:1.3.10: Could not transfer artifact org.samba.jcifs:jcifs:pom:1.3.10 from/to mule-deps (http://dist.codehaus.org/mule/dependencies/maven2): dist.codehaus.org: unknown error: Unknown host dist.codehaus.org:
....
Is the project still alive? would you suggest any alternative to maven build?
Thanks in advance.
Hi, thanx for this useful tranport in win-unix mix env like ours.
One thing I noticed is
moveToPattern and moveToDir is used in SmbMessageReceiver.java but not passed . via arguments.
I have changed locally and have my own version of it and use this connector in our project.
patch is below . I quickly amend it so that i maybe not approriate way to change about it.
--- src/main/java/org/mule/transport/cifs/SmbMessageReceiver.java (revision 4700)
+++ src/main/java/org/mule/transport/cifs/SmbMessageReceiver.java (working copy)
@@ -62,14 +62,15 @@
super(connector, flowConstruct, endpoint);
this.setFrequency(frequency);
this.moveToDir = moveToDir;
this.moveToPattern = moveToPattern;
if (endpoint.getFilter() instanceof FilenameFilter)
{
Just curious if there is a plugin available for CIFS in Mule Studio. Thanks!
Hi Dirk,
One of our use case is when sending files to network share via smb, if the path/to/file doesn't exists, it should create directories in flight.
Eg. sending to smb://host/a/b/c/d/xyz.json, but in the remote drive there is only /a/b, then c/d should be created dynamically.
I found this http://stackoverflow.com/questions/24527045/how-to-create-directories-using-samba-client
from the answer it seems just add checks whenever doing new SmbFile()
and call mkdir
if path to file is n/a, is it possible you could update this?
Thanks very much
James
Hi,
We are very happy that this lib helps us to easily transporting file with smb protocol. Only one enhancement requirement:
Currently the logger is logging the user credentials in plain text:
https://github.com/dirk-olmes/mule-transport-cifs/blob/master/src/main/java/org/mule/transport/cifs/SmbConnector.java#L164
Could this be DEBUG so that we can keep the secret? We can configure the log4j from our side but still like the source code to be updated in this case.
Regards
James
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.