camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Walzer, Thomas" <thomas.wal...@integratix.net>
Subject Re: Cannot trigger LDAP Endpoint
Date Tue, 27 Jan 2015 13:23:50 GMT
I think that is ok. 
You could also use a timer or quartz endpoint to trigger it.

timer -> ldap -> bean works well for me. Not sure if I got your use case.

Cheers, Thomas.

> Am 26.01.2015 um 14:01 schrieb Alarm <stefschreck@yahoo.com>:
> 
> It looks like i found a solution without knowing if this is the best one:
> 
> I use the direct:start as endpoint. 
> 
> from("direct:start").to("ldap:ldapserver?base=dc=company,dc=com").process....
> 
> Then catch this endpoint and add my search criteria and send it to the ldap
> endpoint:
> 
> Endpoint endpoint = context.getEndpoint("direct:start");
> Exchange exchange = endpoint.createExchange();
> exchange.getIn().setBody("uid=user1");
> 
> Finally catch the data through the exchange in the processs() function. 
> 
> Please do let me know if there is a better solution thank this.
> 
> Thank you.
> 
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/Cannot-trigger-LDAP-Endpoint-tp5762103p5762104.html
> Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message