Camel file pick up conditionally

2014-06-23 Thread sakchakravarthi
Hi I have a scenario. I need to pick a file directory. but 1st i need to check DB record status. If it is true pick file else not. Is this kind of scenario can be implemented using camel spring dsl configuration. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-file-pic

Re: question about seda component

2014-06-23 Thread simafengyun
If I use akka-camel to do it , sample code as below.* If I set concurrentConsumers=100 then Will it stilluse 100 threads to pull messages off the queue and execute your route in parallel??* public class AkkaConsumerActor extends UntypedConsumerActor { private static final Logger logger =

question about seda component

2014-06-23 Thread simafengyun
Hi All, I have one question about the seda component. there is a parameter concurrentConsumers. I am confused about it. Sample code as below concurrentConsumers=100*"/> concurrentConsumers=100, does it means it the route publishData will us

Re: Camel hang on graceful shutdown - NOT trying to stop a route from a route

2014-06-23 Thread boday
you might try adding a "depends-on" attribute to the definition to tell Spring the order to start/stop things... http://camel.apache.org/schema/spring"; depends-on="activemq, remote.activemq"> Paul Gale wrote > Hi, > > ActiveMQ 5.9.1 > Camel 2.13.1 > Spring 3.2.5 > OS: RHEL 6.3 > Tanuki Java S

Re: question about seda component

2014-06-23 Thread boday
yep, SEDA uses a BlockingQueue and is asynchronous from the producer (the process that sends to your seda:trades endpoint)...so if you specify concurrentConsumers=100 then it will use 100 threads to pull messages off the queue and execute your route in parallel... simafengyun wrote > Hi All, > >

Re: Cannot supply CamelHttpPath to a call to a CXF endpoint

2014-06-23 Thread bocamel
Hi Willem, Thanks for the response! What we are trying to do is to send some test messages from another component (inside our application) to the cxf endpoint which uses the path to determine what logic to apply. It would be nice if we can send test messages using different path to drive the dif

RE: Only same instance of SSLContextParameters is supported

2014-06-23 Thread Willem Jiang
Hi, You may consider to setup the SSLContextParameters directly on the camel-http4 component. I just checked the change log and found out CAMEL-6417[1] may related to the exception. [1]https://issues.apache.org/jira/browse/CAMEL-6417 -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com

Re: seda not blocking when full

2014-06-23 Thread Willem Jiang
You used the asyncSend, which means it cannot block the sending thread. If you want producer is blocked, you need to use send API to send the message. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter:

seda not blocking when full

2014-06-23 Thread swwyatt
Hi, I'm am using a producer template to send to a seda endpoint and it's not blocking when full. Is there something wrong with my configuration? Using v2.12.1.

Camel hang on graceful shutdown - NOT trying to stop a route from a route

2014-06-23 Thread Paul Gale
Hi, ActiveMQ 5.9.1 Camel 2.13.1 Spring 3.2.5 OS: RHEL 6.3 Tanuki Java Service Wrapper 3.5.24 When I shutdown my broker inside which a Camel context is containing just one route (shown below) it hangs. The route connects to a topic on a remote broker and writes out the messages to a queue on the l

camel-cxf proxy failed wsdl reading with local schemaLocations

2014-06-23 Thread Michael Täschner
Hi Camel-Riders, we are (still) using SMX4.5 (Camel 2.10.7) and are trying to proxy a SOAP call to external URL (plus reading statistics from input message). For offline testing we have created a SoapUI mock target and we declare schemaLocations inside the cxfEndpoint. Unfortunately the schemata a

Re: split with bean: multithreading problem

2014-06-23 Thread cgiera
Hi, thx for your response. It's not mentioned in the documentation that stateless beans should be used. I also think that it is quite misleading that the "beanRef" functionality can be used(using the classname as string). kind regards, Christoph -- View this message in context: http://camel.4

RE: Only same instance of SSLContextParameters is supported

2014-06-23 Thread damien
Hi Stephan, Thanks for the reply. But I don't quite understand. I've only one set of ssl context parameters and it should be only one instance: Why the error says: Previous instance hashcode: 0x6523ff4a, New instance hashcode

Re: How to Implment Informative Transactional Error Handling?

2014-06-23 Thread Claus Ibsen
Hi See http://camel.apache.org/message-history You can get access to the message history yourself and do your own json output and logging or whatever you want. You should then turn off the default message history logging on the error handler. On Wed, May 28, 2014 at 6:17 PM, kraythe . wrote: >

Throw exception on Exception

2014-06-23 Thread Gnanaguru S
Hello Camel Folks, In my global error handler I am throwing a custom exception which is handled by another global handler. Is it a valid flow in camel ? When I unit tested, It throws custom exception even in positive scenario :( ** org.apache.camel.ValidationException

Re: Calculation of in-flight messages in DefaultShutdownStrategy

2014-06-23 Thread Claus Ibsen
Hi I logged a ticket https://issues.apache.org/jira/browse/CAMEL-7528 On Wed, May 7, 2014 at 7:24 AM, Claus Ibsen wrote: > Hi > > Yeah sure we love contributions. So fell free to log a JIRA ticket and > submit a patch / PR. > http://camel.apache.org/contributing > > Another solution could maybe

Re: Mocking SQL results in a route

2014-06-23 Thread Claus Ibsen
Hi You can intercept from SQL * and then use a content based router or recipient list or dynamic router or something, and use the exchange property with key: http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Exchange.html#INTERCEPTED_ENDPOINT as it holds the endpoint that

RE: Only same instance of SSLContextParameters is supported

2014-06-23 Thread Siano, Stephan
I have looked into the camel-http4 / apache httpclient 4.x coding some time ago and if I remember correctly, only one set of ssl context parameters is possible per scheme. This was always the case (but the check is probably new). Without the check the component would use any one of the two defin