Is there a Method to Determine if Mock Endpoints are Real?

2013-09-17 Thread Simmons Jr, Robert
Greetings, I have some camel tests using TestNG and CamelTestSupport. The problem I am having is that I can get mock endpoints that don't exist. This makes it a pain to debug the tests with complex routes. I was wondering if there is something like assertIsReal() to determine if a mock

Re: JAXB partial unmarshalling

2013-09-17 Thread hutao722
Thank you all. I tried many times, but the partial unmarshalling still failed for me. Instead, the Claus's two blogs bring me another two solutions. They both work for me. http://www.davsclaus.com/2011/11/splitting-big-xml-files-with-apache.html

Re: Problem in converting Cron expression into proper date format.

2013-09-17 Thread loganathan
Thanks for your response.while i am using the below code(with spring) the problem i am getting is suppose if today is tuesday but its showing date format for next included time as Wed Sep 18 10:55:00 IST 2013 But our requirement is not showing next included time our need is to show exact date

Re: Is there a Method to Determine if Mock Endpoints are Real?

2013-09-17 Thread Claus Ibsen
You can use the hasEndpoint method on CamelContext On Tue, Sep 17, 2013 at 5:34 AM, Simmons Jr, Robert rsimmon...@ea.com wrote: Greetings, I have some camel tests using TestNG and CamelTestSupport. The problem I am having is that I can get mock endpoints that don't exist. This makes it a

Re: Camel V2.12 HttpConnectionParams

2013-09-17 Thread Willem jiang
It is caused by the patch of CAMEL-6296 which will override the setting of myHttpConnectionManagerParams. I will do a quick fix for it. At the mean time, you can workaround by using the prefix httpConnectionManager. to setup the HttpConnectionManager through the URL like

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

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 https://issues.apache.org/jira/browse/CAMEL-6759 Best Regards, Hrvoje - -- HrvojeM -- View this message in context:

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

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ý martin.stibor...@gmail.com wrote: Ok I'm finally digging there, so far no mystery, fun! :) On Fri, Aug 23,

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

2013-09-17 Thread vsmahesh
Hi .. I am getting error when adding marshall tag to my route my camel-context is given below camelContext xmlns=http://camel.apache.org/schema/spring; dataFormats jaxb id=input prettyPrint=true contextPath=xyz.pi.mes.id59.xxx

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(

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 aneesh_...@yahoo.co.in wrote: Hi .. I am getting error when adding marshall tag to my route my camel-context is given below camelContext xmlns=http://camel.apache.org/schema/spring; dataFormats

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

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

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 this

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

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

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 camelContext xmlns=http://camel.apache.org/schema/spring; dataFormats jaxb id=input prettyPrint=true contextPath=abcd.pi.mes.id59.powerconsumption/

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:

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

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:

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 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

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

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:

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

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=truemoveFailed=.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

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 -

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 ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0;

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)

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: 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