Re: route information is not coming with camelContext.getRoute(route1)

2014-11-03 Thread bharadwaj
The old option shouldStartContext have been removed and replaced with this new autoStartup option instead. What it allows is to configure Camel to not auto start when Spring starts. So how do you start Camel then? The autoStartup option on the camelContext is only used once, so you can manually

Re: Master/Slave failover for camel routes

2014-11-03 Thread gilboy
Unfortunately AMQ cluster,Zookeeper etc are not an option as I am constrained by internal approved tech stack. Joe -- View this message in context: http://camel.465427.n5.nabble.com/Master-Slave-failover-for-camel-routes-tp5758438p5758445.html Sent from the Camel - Users mailing list archive

Re: Master/Slave failover for camel routes

2014-11-03 Thread gilboy
Done a little more digging round this and I take if I invoke the following: *exchange.setProperty(Exchange.ROUTE_STOP, CustomFaultToleranceAPI.isInActive()); * From RoutePolicy.onExchangeBegin() this will ensure the exchange on the warm instance will not be processed and yet the route will stay

Re: CXF with WS-Security using JAAS

2014-11-03 Thread garethahealy
I've also added the code my to github account @ https://github.com/garethahealy/jboss-fuse-examples - ws-security-* -- View this message in context: http://camel.465427.n5.nabble.com/CXF-with-WS-Security-using-JAAS-tp5758345p5758447.html Sent from the Camel - Users mailing list archive at

Re: Adding jaas authentication to a cxf endpoint in karaf

2014-11-03 Thread Hilderich
Hello Christian, I did exactly as you described above but no authentication mechanism is triggered. I have tried your two approaches as well and no authentication mechanism ever came into action. Maybe there is something wrong with my versions: Apache Karaf 2.3.2 Apache CXF 2.7.6 Apache Camel

Re: camel-jetty [2.10.7] resends message after 200 secs

2014-11-03 Thread Christoph Schmid
I found the solution, I had to change the parameter maxIdleTime. JettyHttpComponent jettyComponent = camelContext.getComponent(jetty, JettyHttpComponent.class); jettyComponent.addSocketConnectorProperty(maxIdleTime, (60 * 60 * 1000)); -- View this message in context:

Re: Adding jaas authentication to a cxf endpoint in karaf

2014-11-03 Thread Sergey Beryozkin
Hi Can CXF JAASLoginInterceptor help ? CXF endpoint declaration in Spring or Blueprint with its interceptors section referencing JAASLoginInterceptor (with one or two properties set) is all what is needed to have a user authenticated against JAAS, be it in Karaf or Tomcat.

Re: CXF Inteceptor Error handling with Camel-CXF, JMS and ActiveMQ

2014-11-03 Thread g8torPaul
Thanks, Willem. I had already started down this route, but had some trouble. I finally got it to work. The trick was to make sure that when the exception thrown/caught by CXF, that I propagated that exception back into the Camel route using another interceptor. The interceptor uses the following

Re: Adding jaas authentication to a cxf endpoint in karaf

2014-11-03 Thread Hilderich
Hello Sergey, Thank your for your help. I've tried as here: In /karaf_home/etc/users.properties/ is one entry: *karaf=karaf,admin* I think this should be okay, isn't it? If I understand JAAS correctly any login is referenced to users.properties and if a match exist you are authorized.

Re: Adding jaas authentication to a cxf endpoint in karaf

2014-11-03 Thread Sergey Beryozkin
Hi On 03/11/14 14:09, Hilderich wrote: Hello Sergey, Thank your for your help. I've tried as here: In /karaf_home/etc/users.properties/ is one entry: *karaf=karaf,admin* I think this should be okay, isn't it? If I understand JAAS correctly any login is referenced to users.properties and

Re: Adding jaas authentication to a cxf endpoint in karaf

2014-11-03 Thread Hilderich
Hello Sergey, First of all what you have suggested I have done as you can see above. But this incorporation of an interceptor has no effect and no one requires a login if I do a request to the address in my browser. My question about JAAS was intended to get a feedback from you if I have grasp

Re: Adding jaas authentication to a cxf endpoint in karaf

2014-11-03 Thread Sergey Beryozkin
Hi On 03/11/14 14:42, Hilderich wrote: Hello Sergey, First of all what you have suggested I have done as you can see above. But this incorporation of an interceptor has no effect and no one requires a login if I do a request to the address in my browser. My question about JAAS was intended to

Exception in the bean after onException

2014-11-03 Thread Vadim Vararu
Hi, I have a global error handler that passes the exchange to a processor. I wonder why the exception attribute of the injected Exchange is null in this case? //GLOBAL ERROR MANAGEMENT onException(Throwable.class) .process(new GlobalLoggerProcessor()); I can find the message

Re: Exception in the bean after onException

2014-11-03 Thread Claus Ibsen
Hi This is by design. As the on exception routes the exchange, so the exchange needs to not have the exception in getException as that is used to detect if a new exception is thrown during routing with onException. So you can grab the caused exception from the exchange property, or if you use a

Re: Adding jaas authentication to a cxf endpoint in karaf

2014-11-03 Thread Daniel Kulp
I’ll let Sergey handle most of this, but….. On Nov 3, 2014, at 6:12 AM, Hilderich hilde.sch...@yahoo.de wrote: Last week I have commenced with an update to Karaf 3.0.2 but so far I am not able to start my bundle because cxf bus in blueprint cannot initialized (this part in bluprint.xml:

Re: Camel 2.14 breaks our test

2014-11-03 Thread Christian Müller
Can you provide a test case which is showing the regression? Best, Christian On Fri, Oct 31, 2014 at 4:06 PM, James Green james.mk.gr...@gmail.com wrote: We just upgraded from 2.13.2 to 2.14.0 and our test now hangs using the producerTemplate to send to an ActiveMQ (5.10.0) endpoint. The

There is a problem with the dataFormat MESSAGE and an XSLT transformation?

2014-11-03 Thread aioria3077
Good day to all I have the following request: soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:ws=http://ws.ampersand.mx; xmlns:mod=http://modelo.ampersand.mx; soapenv:Header/ soapenv:Body ws:PointsExchangeFR2CPCion ws:request

ERROR MESSAGE: org.apache.camel.component.file.GenericFileOperationFailedException: Cannot write null body to file:

2014-11-03 Thread xeni
Hello, I have one problema. In one folder I have more tar files. I want to untar this files and move them in other folder. route id=route-archive-folder1 from uri=timer://tm?fixedRate=trueamp;period=3s/ setHeader headerName=folderNumber

Camel - JDBC

2014-11-03 Thread smilevasu6
Hi, I am very new to camel. I am trying to establish the oracle connection and fetch the results from the Data base like select * from emp. I have a searched a lot but i couldn't find any solution or any source code from scratch. Can you please help me out. Regards, Srinivas T -- View

Re: Camel - JDBC

2014-11-03 Thread Claus Ibsen
Hi There is a camel-sql example at http://camel.apache.org/sql-example.html And also a similar example using MyBatis instead http://camel.apache.org/mybatis-example.html And more examples you can find in the component documentation, and the unit tests of the components which you can find in the

Re: Camel - JDBC

2014-11-03 Thread smilevasu6
Thanks Claus Ibsen for quick reply. I already tried those links but it could not worked. And that is for Insertion. I am looking for select. Is there any example for the same start to end. Please. -- View this message in context:

Re: Camel - JDBC

2014-11-03 Thread smilevasu6
Claus Ibsen, if i write these configuration xml files in eclipse (i am using) how can i run these from eclipse as there is no Java class to call these. Could you please help? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-JDBC-tp5758485p5758488.html Sent from the

Re: Exception in the bean after onException

2014-11-03 Thread Vadim Vararu
Yes, that works, but as i've observed, i get this way only the cause message, and not the whole stacktrace. On Mon, Nov 3, 2014 at 6:55 PM, Claus Ibsen claus.ib...@gmail.com wrote: Hi This is by design. As the on exception routes the exchange, so the exchange needs to not have the exception