Re: Apply change to a route after loading camelcontext xml using GenericApplicationContext

2013-08-20 Thread Claus Ibsen
The spring code starts the Camel since you load the app context, call refresh and getting the bean, etc. So its already started when you use the Camel main class. On Tue, Aug 20, 2013 at 2:45 AM, bonnahu bonn...@gmail.com wrote: Hi Christian, Thanks for your response. However, I don't

Re: Getting a Header property on a exception in the DSL

2013-08-20 Thread Bart Horré
Hello, I don't think there is a need to concatenate like that (header. + ... ). In my experience with using simples in log messages you can just write: Client config not found for id ${header.myHeader}. Or you could check out the docs below: http://camel.apache.org/simple.html On Tue, Aug

[Splitter] Problem with stopOnException when using threadPoolExecutor

2013-08-20 Thread Aida
Hi, I'm working with a little proof of concept because I'm having trouble managing exceptions in splitter when I combine stopOnException and the usage of a threadPoolExecutor. I have been working with documentation, and Camel In Action book and source examples but I'm not able to solve this. My

Re: [Splitter] Problem with stopOnException when using threadPoolExecutor

2013-08-20 Thread Claus Ibsen
When you use a thread pool then paralllel work happens and the order they are processed can be anyhow the JDK thread pool executes them. If you are not using thread pool then the order is sequential and only 1 work at a time. So with thread pool and stop on exception then the JDK may have

Re: CookieStore

2013-08-20 Thread Markus Wolf
Hi Claus, thank for your feedback. I've currently override the CookieStore with a noop store. I'll have a deeper look and give you an update or a patch I've I manage to create something :) Cheers Markus 2013/8/19 Claus Ibsen claus.ib...@gmail.com: I dont think this is supported. Feel free to

Re: [Splitter] Problem with stopOnException when using threadPoolExecutor

2013-08-20 Thread Aida
Hi Claus, Thank you for your response, it makes sense. I suppose than then the right way to go would be use the aggregationStrategy to propagate back the exception. As in this case I have the same behaviour and only for checking: threadPool shouldn´t interfere in this case, right? Thanks. --

Re: [Splitter] Problem with stopOnException when using threadPoolExecutor

2013-08-20 Thread Claus Ibsen
Yeah the aggregate method in AggregationStrategy is thread-safe, and its also invoked in the order, eg first splitted message, 2nd splitted message, ... N splitted message. Though stop on exception can still make a little sense if the data you split is bigger than the thread pool size + queue

Re: How to add Vendor Specific Optional Parameter in CamelSmppOptionalParameters

2013-08-20 Thread Christian Müller
Yes, you have to create a different account [1]. Afterwards you can create an enhancement request at [2]. And as you may know, we love contributions [3]. Feel free to attach your proposed solution which should include unit tests. And helping out with the documentation is also welcome [4]. [1]

Re: Getting a Header property on a exception in the DSL

2013-08-20 Thread abdiels
barthorre, First, thanks for replying and second, I do that all the time too!!! However, in this particular it does not work. Look at the code, I am passing it when throwing the exception, it is not in the regular DSL where simple will just work. You can try it and you will see. What comes

Re: Apply change to a route after loading camelcontext xml using GenericApplicationContext

2013-08-20 Thread bonnahu
Hi Claus, thanks for your reply! So do think whether there is way to set the autoStartup property to a route before the spring code starts the Camel, if I don't want to change the existing camelcontext.xml. Thanks again! -- View this message in context:

JSSE for CXF Endpoint

2013-08-20 Thread Gnanaguru S
Hi I went through Camel configuration utilities documentation, It is mentioned that it is directly supported in some components. Which I am able to understand. http://camel.apache.org/camel-configuration-utilities.html Also It is mentioned that it is indirectly supported in CXF and HTTP

Re: Apply change to a route after loading camelcontext xml using GenericApplicationContext

2013-08-20 Thread Claus Ibsen
You can use property placeholders for the auto startup option, then you can control it using that way. And dont have to change the XML. On Tue, Aug 20, 2013 at 3:41 PM, bonnahu bonn...@gmail.com wrote: Hi Claus, thanks for your reply! So do think whether there is way to set the autoStartup

Netty UDP and SNMP

2013-08-20 Thread Tyler Durvik
I am trying to develop a program that receives SNMP messages over UDP port 161. I have set up a Netty endpoint listening on port 161: from(netty:udp://127.0.0.1:161?sync=false) .log(NETTY) When I run this, I never receive any data even though wireshark shows packets coming in. I have tried the

Re: Why can not get the data

2013-08-20 Thread nandla
camel route:from( http://localhost:8080/wms/ http://localhost:8080/wms/query_all_handlover_note?type=source query_all_handlover_note?type=source http://www.cricscores1.com/teams.html ).to(file:d:/temp/outbox?fileName=data1.txt) -- View this message in context:

Issues with Camel startup...

2013-08-20 Thread Harish Shindhe (hashinde)
Hi, We are using Camel 2.9 in our application. The role of which is to read the message from one end point and pass it to another endpoint which is a POJO which takes care of processing the message. We use Spring xml based configuration to define the JNDITemplate and endpoints and things

Re: Issues with Camel startup...

2013-08-20 Thread Claus Ibsen
Hi Please do not cross post the same message to many mailing lists. The correct mailinglists for getting help with Camel is the user mailinglist. Also please do not mail the Camel team directly. Apache Camel is an open project and all discussions should happen in the open so everyone can see /

Re: Getting a Header property on a exception in the DSL

2013-08-20 Thread Claus Ibsen
This is not possible as you use the new constructor in Java that will instantiate the exception once. What you want is to create a new exception when it happens with data from the message. For that you can call a method and let it throw the exception. For throwException to work with your use

Re: Load test on camel-netty

2013-08-20 Thread Claus Ibsen
I would suggest to remove the 100 thread pool sizes as the out of the box settings from Netty is better. Netty is asynchronous and it creates thread pools based on the number of CPU cores etc. Netty creates the threads up-front so having 100+ threads take up some unnecessary memory. On Tue, Aug

Re: Netty UDP and SNMP

2013-08-20 Thread Claus Ibsen
Can you try with 2.12 SNAPSHOT and use the networkInterface to specify the network interface to join the existing multicast group. See the page about the option. http://camel.apache.org/netty On Tue, Aug 20, 2013 at 4:40 PM, Tyler Durvik phangb...@gmail.com wrote: I am trying to develop a

Re: Spring Bean represented as endpoint

2013-08-20 Thread Claus Ibsen
What version of Camel do you use? On Fri, Aug 16, 2013 at 10:35 PM, MichaelAtSAG mebevilac...@gmail.com wrote: All, I am trying to move endpoint properties into a bean, yet the endpoint is not working this way. I think it is a simple typo but can't find it: THIS WORKS ?xml

Field support for OGNL/simple

2013-08-20 Thread jamie3
The camel documentation for the simple component shows that it doesn't support fields except in 2.11 onwards for the .length in java arrays. Are fields expected to be added in the future? If not can you tell the simple component to provide a custom getter class for the object? For example

Re: MTOM message part not formatted correctly according to RFC 1341 using CRLFLF instead of CRLFCRLF

2013-08-20 Thread Clay
This bug is fixed in CXF-4482!+ -- View this message in context: http://camel.465427.n5.nabble.com/MTOM-message-part-not-formatted-correctly-according-to-RFC-1341-using-CRLFLF-instead-of-CRLFCRLF-tp5737366p5737610.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Getting a Header property on a exception in the DSL

2013-08-20 Thread abdiels
Thanks Claus...I can find many ways around it, I was just wondering if there was something I was missing or doing wrong...What you are saying makes sense and I don't think we need to add that at this point. On Tue, Aug 20, 2013 at 10:59 AM, Claus Ibsen-2 [via Camel]

Re: Spring Bean represented as endpoint

2013-08-20 Thread MichaelAtSAG
Apache Camel 2.11.0 -- View this message in context: http://camel.465427.n5.nabble.com/Spring-Bean-represented-as-endpoint-tp5737433p5737614.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Apply change to a route after loading camelcontext xml using GenericApplicationContext

2013-08-20 Thread bonnahu
Hi Claus, If I understand correctly, you are saying adding a property placeholders for the auto startup option, propertyPlaceholder id=properties location=autostartup.properties xmlns=http://camel.apache.org/schema/spring/ In autostartup.properties, define

Re: Mina Synchronous Communication

2013-08-20 Thread milltj
I am currently using Mina2 V2.11.1. My decoder looks like @Override protected boolean doDecode(IoSession is, IoBuffer ib, ProtocolDecoderOutput pdo) throws Exception { int headerSize=28; byte[] header = new byte[headerSize]; byte[] xmlBuffer = null;

AMQ DeadLetterStrategy Not Being Respected

2013-08-20 Thread nezor
I'm using the standard activemq-broker.xml which comes pre-installed with Fuse with a slight change. I have added a deadLetterStrategy for Topics and Queues as indicated by this page http://activemq.apache.org/message-redelivery-and-dlq-handling.html

RE: Load test on camel-netty

2013-08-20 Thread Flavio Magacho - M4U
Claus, Thanks for your answer, we have done that and nothing changes. Flavio Magacho Gerente de Desenvolvimento Diretoria de Tecnologia da Informação   M4U +55 (21) 2546-4050 ▪ Ramal: 4082 +55 (21) 8889-1572  Antes de imprimir, pense em sua responsabilidade e compromisso com o Meio Ambiente.

RE: Load test on camel-netty

2013-08-20 Thread Babak Vahdat
If Oracle/Sun JDK is in use then maybe ask for a heap dump as the OutOfMemoryError happens: http://docs.oracle.com/cd/E15289_01/doc.40/e15062/optionxx.htm#BABBBEAJ Then you could analyze the dump (e.g. using http://www.eclipse.org/mat/) to see where that huge memory consumption or the leak (if

RE: Load test on camel-netty

2013-08-20 Thread Flavio Magacho - M4U
Thank you Vahdat, we will check this out! Flavio Magacho Gerente de Desenvolvimento Diretoria de Tecnologia da Informação   M4U +55 (21) 2546-4050 ▪ Ramal: 4082 +55 (21) 8889-1572  Antes de imprimir, pense em sua responsabilidade e compromisso com o Meio Ambiente. O conteúdo desta mensagem é

Solace Integration with Camel

2013-08-20 Thread ganeshkumar.kanagavel
Hi, Can you please advise if Camel based Routes can be integrated with Solace channels? Any samples on TIBCO EMS or Solace channels help us a lot. Thanks Ganesh ___ This message is for information purposes only, it is not a recommendation, advice,

stream result of iterator to a file

2013-08-20 Thread anoordover
I have two questions: I would like to stream the result of an iterator to a file. I succeeded in doing that using a split with a factory class that creates my iterator. The name of the file is set dynamically in the header of the exchange. So far I have no problem at all. But I also want to write

Re: AMQ DeadLetterStrategy Not Being Respected

2013-08-20 Thread Christian Müller
You should may ask this on the ActiveMQ user mailing list... Best, Christian Am 20.08.2013 20:02 schrieb nezor kyle.eckh...@oeconnection.com: I'm using the standard activemq-broker.xml which comes pre-installed with Fuse with a slight change. I have added a deadLetterStrategy for Topics and

Re: Apply change to a route after loading camelcontext xml using GenericApplicationContext

2013-08-20 Thread bonnahu
thanks -- View this message in context: http://camel.465427.n5.nabble.com/Apply-change-to-a-route-after-loading-camelcontext-xml-using-GenericApplicationContext-tp5737541p5737628.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Solace Integration with Camel

2013-08-20 Thread Willem jiang
Hi, I think you can write a component[1] to do this kind of job. [1]http://camel.apache.org/component.html -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com

Re: Mina Synchronous Communication

2013-08-20 Thread Willem jiang
From the stack trace, it looks like the decoder cannot interpret the data length rightly. Can you double check it with your application? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)

Re: Spring Bean represented as endpoint

2013-08-20 Thread Willem jiang
I think you need to setup the CamelContext on the appWebSocket bean. BTW, what's the exception that you get when using the appWebSocket. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)

Re: Issues with Camel startup...

2013-08-20 Thread Willem jiang
Did you try to use JConsole to look up the status of camel routes[1]? From your description I double if the camel-jms can access the JMS broker rightly. [1]http://camel.apache.org/camel-jmx.html -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com

Re: reading integer values from properties file

2013-08-20 Thread Willem jiang
Can you try it with the latest Camel? As you know you don't provide community support for very old version of Camel. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com

Time to deliver a message?

2013-08-20 Thread John D. Ament
Hi, Assuming that I'm using activemq queues as my components, how quickly should a message be delivered? In a number of routes, I'm moving data from one queue to another queue, and over time the amount of time that it takes for a message to go from A to B to C is steadily increasing. Is this

Re: How to add Vendor Specific Optional Parameter in CamelSmppOptionalParameters

2013-08-20 Thread cartoondog
Hi Christ, Jira created. #CAMEL-6655. I think I have messed up the code in my last post and revised the method as below. Kindly check and advise if this can work. /* pSince it is vendor specified, so users must have the code and type, therefore users should concatenate these