camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SwenVogel <>
Subject Jetty Security Handler
Date Thu, 21 Jan 2010 15:30:15 GMT


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

In short my "exec" component can executes external programs and makes use of
apache-commons-exec library.

The problem is that the OnCompletition's are not called. When is use the
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

Integer exitCode = result.getOut().getHeader(
    ExecComponent.EXEC_EXITCODE, Integer.class);

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message