How to create a ldap restletRealm to manage restlet route authentication using LDAP

2014-07-23 Thread long
Name, char[] password) { logger.debug("Start authenticating login user : " + userName); long startTime = System.currentTimeMillis(); StringBuffer pd = new StringBuffer();

Re: Spring vs Java DSL

2011-10-14 Thread Brendan Long
On 2011-10-14 11:59 AM, diwakar wrote: > Which is better? Can everything be done in both. > One drawback with Java is, it can not be opened in Fuse > Camel Editor. I've found the Java one easier to use, because Eclipse will auto-complete and show JavaDocs. There are also some things that require

Re: Non polling based file consumer

2011-10-11 Thread Brendan Long
On 2011-10-11 6:26 AM, szaruba wrote: > We have also thought about the most of your solutions, but we aren't > satisfied about most of them, > because, this will destroy our nice written routes. :( We can't imagine, > that there isn't any > non-polling file consumer, but if there really is none

Re: Move does not work with file polling

2011-10-11 Thread Brendan Long
On 2011-10-10 1:19 PM, ebinsingh wrote: > context.addRoutes(new RouteBuilder() { > public void configure() { > > from("quartz://myTimer?trigger.repeatInterval=2000&trigger.repeatCount=-1") > .setBody().simple("I was fired at ${header.fireTime}") >

Re: Non polling based file consumer

2011-10-10 Thread Brendan Long
On 2011-10-10 8:20 AM, szaruba wrote: > Hi everybody, > > In our project we have to grab lots of files out of a directory and copy > them into another directory. > The time, when we start the file consumption is fixed and given, we just > have to grab all files from > the directory.(What I have to

Re: camel 2.8.0 with spring 2.5.6?

2011-09-16 Thread Brendan Long
On 2011-09-16 10:49 AM, Davis Ford wrote: > Hi Camel users, > > I built a standalone maven project using camel 2.8.0 core, spring, and jms > components. The camel deps pull in spring 3.0.5-RELEASE as a dependency. > > Now, I want to use this new project in another larger, more legacy project > t

Re: AWS-Component (S3) => Best way to set the CamelAwsS3Key Header?

2011-08-29 Thread Brendan Long
It doesn't look like there is an automatic way of setting the S3 key, so I'm not sure why it worked the first time. I think what you're trying to do would be this: Message in = exchange.getIn(); in.setHeader(S3Constants.KEY, in.getHeader(Exchange.FILE_NAME)); On 2011-08-29 11:11 AM, megachucky w

Re: Problem with AWS-Component => accessKey + secretKey Parameters not working

2011-08-29 Thread Brendan Long
You'll need to URL encode any +'s in your secret key (otherwise, they'll be treated as spaces). + = %2B, so if your secretkey was "my+secret\key", your Camel URL should have "secretKey=my%2Bsecret\key". "Within the query string, the plus sign is reserved as shorthand notation for a space. Therefor

Is ActiveMQComponent automatically pooled?

2011-07-20 Thread Brendan Long
The ActiveMQ section of the help isn't clear on this. In one of the examples, it looks like this: Just giving the brokerURL. Later on we get this (PooledConnectionFactory): My question is wha

Re: Having trouble with an InOut route

2011-07-06 Thread Brendan Long
Sorry it looks like my problem was fairly simple. My producer side looks like this: Exchange exchange = this.producerTemplate.send(this.endpoint, ExchangePattern.InOut, new Processor() { @Override public void process(Exchange exchange) throws Exception { exchange.s

Re: Having trouble with an InOut route

2011-07-06 Thread Brendan Long
The splitting and aggregation is working fine. I already got the splitting working a while ago (other code depends on it and works fine), and the "printStuff" processor prints out the message I want returned (so the aggregation strategy is working too). My problem is that the exact message I send

Having trouble with an InOut route

2011-07-05 Thread Brendan Long
I've been working on this for a couple days and can't seem to get it working. What I want is to send a message using a ProducerTemplate, have it go to JMS, then another Camel route, then return a response (through the ProducerTemplate). This page seems to indicate that the last message send in the

Re: Problem with type converters in unit tests

2011-07-05 Thread Brendan Long
I figured this out right after posting. I needed to add src/main/resources as a source folder in Eclipse (so it would pick up META-INF/services/org/apache/camel/TypeConverter). On 2011-07-05 1:43 PM, Brendan Long wrote: > I'm trying to do some unit tests on my type converters in what seem

Problem with type converters in unit tests

2011-07-05 Thread Brendan Long
I'm trying to do some unit tests on my type converters in what seems like an obvious way: public class MyObjectTest extends CamelTestSupport { public void testCamelSerialize() { Exchange exchange = new DefaultExchange(this.context); MyObject object = new MyObject(); exc