Re: FileConsumer in a route is not stopped when the route is stopped

2013-09-17 Thread Claus Ibsen
Hi How do you stop the route? You should use the API on CamelContext, it has a stopRoute / remoteRoute you can use to first stop and remove. On Tue, Sep 17, 2013 at 11:27 PM, rodgersh wrote: > Hello - > > I create a camel route dynamically at runtime that is like: > > from("file://inbox?delet

Re: Camel Console - Not able to bring it up

2013-09-17 Thread Claus Ibsen
Hi See the warning on top of the page http://camel.apache.org/web-console For example the hawtio web console can be installed separately or co-located with your application. Though if you install it seperately it can work as console for all your Camel applications deployed in Tomcat. I encourage

Re: Concurrency problem with Netty and producerPoolEnabled=false

2013-09-17 Thread Claus Ibsen
I am adding a note to the docs about you should not turn it off. On Tue, Sep 17, 2013 at 8:59 PM, Claus Ibsen wrote: > Dont turn off the producer pool. Its not designed to work with concurrent > request and being turned off > > tirsdag den 17. september 2013 skrev fbarbat : > >> Just to be clear,

Re: org.apache.cxf.binding.soap.SoapFault: Can't find the BindingOperationInfo with operation name

2013-09-17 Thread Willem jiang
You don't need to specify the SAAJOutInterceptor and SAAJInInterceptor in your cxf endpoint if you are using CXF_MESSAGE data formate. camel-cxf already sets the saaj interceptor for you. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://wil

Re: Dynamic route not started when OSGi bundle it is in is uninstalled and then reinstalled

2013-09-17 Thread Andreas Gies
Hi, I am not sure we are looking at a Camel poblem. I am doing something similar in OSGi. I listen to changes in a config directory. Any value changes gp into the Config Admin Service and most of my routes are implemented as Managed Services. As far as I can see config changes are picked up d

Re: Camel V2.12 HttpConnectionParams

2013-09-17 Thread ramrubio
Thanks Willem. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-V2-12-HttpConnectionParams-tp5739596p5739698.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: FileConsumer in a route is not stopped when the route is stopped

2013-09-17 Thread Willem jiang
Which version of Camel were you using? How did stop the route? If you stop the route, the FileConsumer should be stopped at the same time. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http

Re: Camel and Sockets

2013-09-17 Thread Willem jiang
Current camel component doesn't provide this kind of feature. I think you can do it by handling the socket receiving and sending logical in your code and delegate the request and response to the camel route. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blo

Camel Console - Not able to bring it up

2013-09-17 Thread srinivasks22
I imported camel-example-servlet-tomcat-2.12.1-SNAPSHOT into my workspace and I am trying to add the webconsole within this web application on a tomcat server and I am not able to get it through. pom.xml http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins

Re: Dynamically Creating/Deploying Camel Routes

2013-09-17 Thread rodgersh
Hello - We are doing something very similar, except we have a single camel context per OSGi bundle, which can have multiple camel routes dynamically created and added to the camel context. Did you ever figure out how to create a new camel context for each dynamically created route? Thanks - Hugh

FileConsumer in a route is not stopped when the route is stopped

2013-09-17 Thread rodgersh
Hello - I create a camel route dynamically at runtime that is like: from("file://inbox?delete=true&moveFailed=.errors").to("content://framework") The route works fine. If I drop a file in the /inbox directory it is processed by the route. Then when I delete the OSGi managed service factory that

Aggregator lock

2013-09-17 Thread Baris Acar
Hi, I'm seeing some surprising behaviour with my camel route, and was hoping someone in this group could help, as my trawl through the docs and Camel In Action book have not found the answers I'm looking for. Apologies if this question has been clearly answered elsewhere :-/ I have a route that l

Re: Concurrency problem with Netty and producerPoolEnabled=false

2013-09-17 Thread Claus Ibsen
Dont turn off the producer pool. Its not designed to work with concurrent request and being turned off tirsdag den 17. september 2013 skrev fbarbat : > Just to be clear, the original problem remains. What was wrong was the > "extension" of the problem. > > > > -- > View this message in context: >

Camel and Sockets

2013-09-17 Thread fbarbat
Is it possible to treat a single socket like two different routes (inbound and outbound)? I want to handle the messages independently, asynchronously and with correlation ids. Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-and-Sockets-tp5739687.html Sent from

Customised Logging of Camel Route Errors and Exceptions

2013-09-17 Thread fordm
Hi, We use pattern matching to tail our log files for error messages of the form: matching on "MY_ERROR_CODE_", emails are then sent automatically. I therefore need any exceptions in a camel route to be log in such a format. I'd be interested in your views on the following solution: Create an

Re: Concurrency problem with Netty and producerPoolEnabled=false

2013-09-17 Thread fbarbat
Just to be clear, the original problem remains. What was wrong was the "extension" of the problem. -- View this message in context: http://camel.465427.n5.nabble.com/Concurrency-problem-with-Netty-and-producerPoolEnabled-false-tp5739679p5739683.html Sent from the Camel - Users mailing list arch

AW: Route with more uris e.g. .to(uri1, uri2 .. ), uris are processed sequential?

2013-09-17 Thread jhm
I would avoid having multiple uris in that case and rewrite that: fromF("sql:...") .to("direct:delete") .to("direct:insert") .process(new StopCamel()); Jan > -Ursprüngliche Nachricht- > Von: kalber [mailto:karlheinz.al...@swslt.com] > Gesendet: Dienstag, 17. September 2013 15:50

Re: Concurrency problem with Netty and producerPoolEnabled=false

2013-09-17 Thread fbarbat
I continued looking at the code and I realized I was wrong. When using a pool, channel is returned to the pool when response is received and processed. So that case works ok. -- View this message in context: http://camel.465427.n5.nabble.com/Concurrency-problem-with-Netty-and-producerPoolEnable

Concurrency problem with Netty and producerPoolEnabled=false

2013-09-17 Thread fbarbat
Hi, If producerPoolEnabled=false and there are two concurrent requests, the netty producer doesn't know which response is from what request and it assumes both responses are from the last request sent. This is because when producerPoolEnabled is false, the channel is used concurrenty, as opposed t

Re: Route with more uris e.g. .to(uri1, uri2 .. ), uris are processed sequential?

2013-09-17 Thread kalber
I substitute from with fromF, thanks. This route works, but i'm not sure if delete finish before insert starts ? So the question is are this uris processed sequential ? - kh -- View this message in context: http://camel.465427.n5.nabble.com/Route-with-more-uris-e-g-to-uri1-uri2-uris-are-p

Marshalling:getting the error javax.xml.bind.JAXBException: class org.apache.cxf.message.MessageContentsList nor any of its super class is known to this context.

2013-09-17 Thread vsmahesh
Hi I am getting the following error when i try to marshal the incoming pojo My camel-context is like this http://camel.apache.org/schema/spring";> partClass="abcd.pi.mes.id59.powerconsumption.DTPowerConsumption"

Re: Using ManagedServiceFactory to dynamically deploy routes

2013-09-17 Thread rodgersh
Hi Declan - I have implemented a similar use case where we have a managed service factory (MSF) created for each directory a user wants to monitor for files deposited in it. When the MSF is created a camel route is dynamically configured to forward the file to our custom camel component that proce

Re: File Endpoint consumption of file once message arrives on seda

2013-09-17 Thread Claus Ibsen
Hi See this. You can start instead of stop. Also you can configure a route to not atuo start on startup etc. http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html You can also use control bus http://camel.apache.org/controlbus.html On Tue, Sep 17, 2013 at 3:12 PM, bharathramesh wrote

File Endpoint consumption of file once message arrives on seda

2013-09-17 Thread bharathramesh
Hi I have the following requirement ROUTE 1 from(some endpoint) to("seda:test") ROUTE 2 from("file://C:\Temp") .process(Some Processor) I want ROUTE 2 to start consuming from the file endpoint only when a message is dropped on seda:test in ROUTE 1 Could you tell me how to achieve th

Re: Components with query [?options].

2013-09-17 Thread Christian Posta
Robert, I believe you were correct. All of the components you listed didn't have extra options except eventadmin: I've updated them to have [?options] in the URI (as Claus suggested) and updated eventadmin: to have the properties it has. On Sun, Sep 15, 2013 at 6:56 AM, Claus Ibsen wrote: >

AW: Route with more uris e.g. .to(uri1, uri2 .. ), uris are processed sequential?

2013-09-17 Thread jhm
AFAIK all _routes_ are started directly - meaning, that they are available for incoming exchanges. If an exchange come in, the desired route consumes that exchange and routes through a pipeline of processors until it ends or sends to another route (another pipeline of processors). I cut some str

Re: Getting the error Invalid content was found starting with element 'marshall'.

2013-09-17 Thread Bilgin Ibryam
You have a typo, it has to be "marshal" with one L Cheers, On 17 September 2013 12:17, vsmahesh wrote: > Hi .. > I am getting error when adding tag to my route > my camel-context is given below > > http://camel.apache.org/schema/spring";> > > contextPath="xyz.pi.mes.

Route with more uris e.g. .to(uri1, uri2 .. ), uris are processed sequential?

2013-09-17 Thread kalber
I setup route below where in to method i call first the direct:delete and after direct:insert. direct:delete cleans and direct:insert populates a table. My question is, direct:insert starts after direct:delete has finish ? Are the to uris processed sequential ? // route from(String.format( "sq

Getting the error Invalid content was found starting with element 'marshall'.

2013-09-17 Thread vsmahesh
Hi .. I am getting error when adding tag to my route my camel-context is given below http://camel.apache.org/schema/spring";> The error is like org.springframework.beans.factory.xml.XmlBeanDefinitionStoreExc

Re: http4 component and preemptive authentication

2013-09-17 Thread Claus Ibsen
Hi Martin Great to hear. Looking forward to your contribution(s). Hope to see more in the future. Fell free to log a JIRA ticket etc. On Tue, Sep 3, 2013 at 9:26 PM, Martin Stiborský wrote: > Ok I'm finally digging there, so far no mystery, fun! :) > > > On Fri, Aug 23, 2013 at 11:08 AM, Claus I

Re: camel-cdi status?

2013-09-17 Thread Claus Ibsen
Hi I have said this many times. We love contributions http://camel.apache.org/contributing.html Surely it would be great if people who have need for and use CDI a lot would dig in and help fix/improve/maintain the camel-cdi component. And surely helping with documentation and examples is also mu

Re: [camel-hazelcast] CamelEntryListener limits usage of Hazelcast maps

2013-09-17 Thread HrvojeM
So, I have created an issue in Jira and attached a patch. https://issues.apache.org/jira/browse/CAMEL-6759 Best Regards, Hrvoje - -- HrvojeM -- View this message in context: http://camel.465427.n5.nabble.com/camel-hazelcast-CamelEntryLi

Re: SQL component issue - infinite loop

2013-09-17 Thread richie.rivi...@gmail.com
Hi, I've posted the small project to github and you can grab a zip of it at... https://github.com/rriviere/camel-example-sql Really appreciate your help. regards -- View this message in context: http://camel.465427.n5.nabble.com/SQL-component-issue-infinite-loop-tp5739486p5739620.html Sent