Hi Do you send directly to the endpoint of your custom component? Custom OnCompletion is triggered when you use a route.
On Thu, Jan 21, 2010 at 4:30 PM, SwenVogel <swen.vo...@ypsystems.de> wrote: > > Hi, > > i created a customer jetty security handler and configured the spring > configuration file accordingly. > In the security handler i use my own "exec" camel component for the > authentication. > > In short my "exec" component can executes external programs and makes use of > the > apache-commons-exec library. > > The problem is that the OnCompletition's are not called. When is use the > component > in other routes everything works fine. > > Here is the code from my "exec" producer that adds the OnCompletition: > exchange.addOnCompletion(new ExecOnCompletition(endpoint, processIO)); > > > Here the security handler code: > > String authEndpoint = "exec:authProg?dir=c:/&exitValues=0;1&args=" > + username + ";" > + credentials; > > ProducerTemplate template = camelContext.createProducerTemplate(); > Exchange result = template.send(authEndpoint, new > DefaultExchange(camelContext)); > > Integer exitCode = result.getOut().getHeader( > ExecComponent.EXEC_EXITCODE, Integer.class); > > -- > View this message in context: > http://old.nabble.com/Jetty-Security-Handler-tp27259580p27259580.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus