Re: How to Disable AUTH for camel mail smtp component?

2016-07-28 Thread sfbayperson2016
Answering my own question. Setting "mail.smtp.auth=false" as a smtp uri query
param worked. I had problems getting it to work due to a typo which
prevented that from triggering.



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-Disable-AUTH-for-camel-mail-smtp-component-tp5785598p5785599.html
Sent from the Camel - Users mailing list archive at Nabble.com.


How to Disable AUTH for camel mail smtp component?

2016-07-28 Thread sfbayperson2016
I'm able to connect to my smtp server directly without a user/password. But
camel-mail seems to require it? As I keep getting a
javax.mail.AuthenticationFailedException camel is passing back from
javamail.  Basically I want camel-mail to pass a javamail seesion property
"mail.smtp.auth=false" to javamail somehow. 



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-Disable-AUTH-for-camel-mail-smtp-component-tp5785598.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: SFTP delete=true not deleting file after downloading a file

2016-07-01 Thread sfbayperson2016
No there's no permission errors. I found the problem. I misunderstood the
proper usage of the classes that extend GenericFileProcessStrategy. They're
not named for the main file operation but for what you want the begin(),
commit(), abort() hooks to do. I extended my custom processStrategy off of
GenericFileDeleteProcessStrategy and its working now.



--
View this message in context: 
http://camel.465427.n5.nabble.com/SFTP-delete-true-not-deleting-file-after-downloading-a-file-tp5784608p5784644.html
Sent from the Camel - Users mailing list archive at Nabble.com.


SFTP delete=true not deleting file after downloading a file

2016-06-30 Thread sfbayperson2016
I added a custom GenericFileProcessStrategy that calls a derivative of
ZooKeeperElection.isMaster() in its begin() method then calls super.begin().
Now the SFTP "delete=true" attribute no longer works. It seems the route
runs to completion (downloads the file, inserts to DB, deletes a local
copy). But the remote file is no longer deleted from the remote directory
after a sucessful GET, when the route completes. Any ideas what's wrong?



--
View this message in context: 
http://camel.465427.n5.nabble.com/SFTP-delete-true-not-deleting-file-after-downloading-a-file-tp5784608.html
Sent from the Camel - Users mailing list archive at Nabble.com.


good or bad practice to implement a custom GenericFileProcessStrategy?

2016-06-29 Thread sfbayperson2016
Hi, is this good or bad?
I'm going to implement a custom GenericFileProcessStrategy for an SFTP
"from" endpoint. The custom strategy's GenericFileProcessStrategy.begin() is
going to check if the node is the master of the cluster and if not, abort
processing. This is to work around the SFTP endpoint when it tries to GET
the file before ever trying to evaluate route policies (such a
run-on-master-only). 

Is this kosher? Will this cause issues with future releases of camel to have
this custom code? I'd like to do this, as camel (currently allows for it and
explicitly has hooks to let you do it), but an architect prefers we don't
have this custom code. But this seems to be the proper most concise camel
way of doing this.



--
View this message in context: 
http://camel.465427.n5.nabble.com/good-or-bad-practice-to-implement-a-custom-GenericFileProcessStrategy-tp5784568.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Acess to the Route's list of RoutePolicies from a custom GenericFileProcessStrategy

2016-06-24 Thread sfbayperson2016
Hi,
I'm trying implement a custom GenericFileProcessStrategy for an SFTP "from"
endpoint. I figure I just need to write the class then append
"=MyCustomGenericFileProcessStrategy" to the end of the from
uri. Is this correct?

The main question is when GenericFileProcessStrategy.begin() is called I
need to be able to iterate through all the route policies for the route that
the endpoint belongs to, and check if its a specific type of RoutePolicy. Is
this possible from that context? It doesn't look obvious but is there some
way I can do that indirectly through the Endpoint or the Exchange that's
available in that context?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Acess-to-the-Route-s-list-of-RoutePolicies-from-a-custom-GenericFileProcessStrategy-tp5784389.html
Sent from the Camel - Users mailing list archive at Nabble.com.