camel-users mailing list archives

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

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.


Mime
View raw message