Re: SSH using dynamic slip

2013-06-04 Thread Gvvenkat
I found a work around for this... Thanks, if anyone had spent any time on it. -- View this message in context: http://camel.465427.n5.nabble.com/SSH-using-dynamic-slip-tp5733752p5733822.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using jetty component for http producer : Weird behavior

2013-06-04 Thread anand_tech
Someone, any pointers over here ?? -- View this message in context: http://camel.465427.n5.nabble.com/Using-jetty-component-for-http-producer-Weird-behavior-tp5733303p5733833.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: No bean named 'CamelBeanParameterMappingStrategy' is defined

2013-06-04 Thread salemi
Camel 2.10 - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/No-bean-named-CamelBeanParameterMappingStrategy-is-defined-tp5733753p5733832.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Sending to remote WMQ queue.

2013-06-04 Thread Matt Pavlovich
Hello- I just saw this message on the Camel mailing list and wanted to let you know that we have a solution for processing MQ XMIT messages from Transmit queues. If you are still in need of a solution, let me know. Thanks! Matt Pavlovich Founding Partner Media Driver P: (512) 284-4330 E: m...@

Setting SOAPHeaders for CXF Endpoint using Processor

2013-06-04 Thread ajaysam
I am having problems while setting SOAPHeader using camel processor the main objective of this flow is expose REST endpoint, get the REST request, convert it to SOAP message, set SOAP headers and make SOAP request, after getting the response, convert it back to REST json. And I am facing problem is

Re: how to pass an XML string to the unmarshal in the route definition

2013-06-04 Thread Willem jiang
If you are using JAXB to do the unmarshal work, you need to define a adapter in the map class[1], as JAXB doesn't support the map directly. Once you finished your map class, you can set it into your JAXB data format context and your route should work as expected. [1]http://javaevangelist.blogs

Re: No bean named 'CamelBeanParameterMappingStrategy' is defined

2013-06-04 Thread Willem jiang
I don't know which version of camel you are using. But you can try to use class org.apache.camel.component.bean.DefaultParameterMappingStrategy -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blog

Re: A little problem with annotation @CsvRecord

2013-06-04 Thread wpeirone
Hi guys, I´m using camel bindy 2.8.0-fuse-07-16 in equinox I tried some of the solutions in this post, but without good results. I´m still getting java.lang.IllegalArgumentException: The separator has not been defined in the annotation @CsvRecord or not instantiated during initModel. must be spe

Issues with ftp in the 2.11.0 version of camel.

2013-06-04 Thread jhart98169
I am having performance issues with the ftp component in the 2.11.0 version of camel. When I load the camel xml route below in 2.10.4 it downloads the files quickly(5-10 seconds for 5 files), but in the 2.11.0 version it is really slow(minutes for 5 files) http://camel.apache.org/schema/spring";>

Re: No bean named 'CamelBeanParameterMappingStrategy' is defined

2013-06-04 Thread salemi
Thank you for your answer. Do you know where it gets instantiated and which class is referring to it? - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/No-bean-named-CamelBeanParameterMappingStrategy-is-defined-tp5733753p5733821.html Sent from the Camel - U

Re: Quick question on Exchange

2013-06-04 Thread Cristiano Costantini
Yes! I was confused and scared to be missing something, Thank you! 2013/6/4 boday > the end of the route will handle that for you...if you need to explicitly > stop the Exchange processing before the end of the route, you can do this > by > setting exchange.setProperty(Exchange.ROUTE_STOP, Bool

how to pass an XML string to the unmarshal in the route definition

2013-06-04 Thread Vegi, Vamsi (MAN-Corporate-CON)
Hello I have the exchange body as a hashmap The hashmap has several pairs, of which one needs to be unmarshalled. How can I pass that particular value (which is XML String) to the unmarshal In the following route from(INB_Q_URI) .routeId(ROUTE_ID_INB_RID) .log( "

Re: Quick question on Exchange

2013-06-04 Thread boday
the end of the route will handle that for you...if you need to explicitly stop the Exchange processing before the end of the route, you can do this by setting exchange.setProperty(Exchange.ROUTE_STOP, Boolean.TRUE)... Cristiano Costantini wrote > Hi All, > > at the end of a route I process excha

Quick question on Exchange

2013-06-04 Thread Cristiano Costantini
Hi All, at the end of a route I process exchanges coming from a CxfEndpoint. Until now I had only InOut exchanges, of which I process the input and set the getOut().setBody(...) to the new value (which goes back to the client). Now I have also a InOnly exchange, of which I process the input only

Transactional test assertions timing issue

2013-06-04 Thread Alex Sherwin
When unit (integration) testing a transacted route, such as (pseudo): Where "someBeanProcessor" does some DB work and participates in a JTA transaction with the JMS message on this route The problem is, what is a reliable way to apply an assertion on the work that "someBeanProcessor"

Setting a requestTimeout for a shared/Exclusive reply does not take effect for multiple concurrent users

2013-06-04 Thread Siva B
Setting requestTimeout of 1 second and receiveTimeout of 250 milliseconds timing out right after 1 second for a single request if there is no response. But if I fire multiple concurrent requests, then it's again waiting indefinitely rather than timing out (for both SHARED/EXCLUSIVE modes). Please c

Re: Camel Jetty - Performance Issue

2013-06-04 Thread WPk
Hi, I would look out in my code for any new instance of the producerTemplate being created and inject as mentioned in your post. I would run the Load Test again and keep you posted. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Jetty-Performance-Issue-tp5733133p573381

Re: Camel Jetty - Performance Issue

2013-06-04 Thread WPk
Thank you, let me make this change and run the Load Test again.. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Jetty-Performance-Issue-tp5733133p5733809.html Sent from the Camel - Users mailing list archive at Nabble.com.

RE: camel-xmljson

2013-06-04 Thread Surendra
Thanks Raul. Saved me ton of time. Appreciate your help. Date: Tue, 4 Jun 2013 03:06:33 -0700 From: ml-node+s465427n5733786...@n5.nabble.com To: surendrapam...@hotmail.com Subject: Re: camel-xmljson Hi Surendra, My tests show that the underlying json-lib is very sensitive to whitespac

Re: Add routes to existing Camel context using Spring

2013-06-04 Thread ikoblik
This simple static function solves the issue for me: public static CamelContext addRoute(CamelContext camelContext, RouteBuilder routeBuilder) throws Exception { Preconditions.checkNotNull(camelContext, Utils.NPE_TEMPLATE, "Camel context"); Preconditions.checkNotNull(routeBuilder,

Re: the namespace on the "IReportServiceExecuteRequest" element, is not a valid SOAP version

2013-06-04 Thread sunita
Here is my code: Exchange exchange = template.send("cxf:bean:xdrReceiverEndpoint?synchronous=true&exchangePattern=InOut", new Processor() { public void process(final Exchange exchange) throws Exception { List elem

Re: Add routes to existing Camel context using Spring

2013-06-04 Thread ikoblik
Hello Claus, Thank you for quick replies! Linked example looks interesting but I'd have to fall back to Java which is a pity if you try to stick to XML for configuration. Maybe I can come up with a pseudo bean that would add routes to the existing context? I'll post here if I decide to go this wa

Re: How to build a nested content based router?

2013-06-04 Thread Hilderich
Thank you very much! I see! -- View this message in context: http://camel.465427.n5.nabble.com/How-to-build-a-nested-content-based-router-tp5733708p5733799.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Add routes to existing Camel context using Spring

2013-06-04 Thread Claus Ibsen
Hi See this cookbook example http://camel.apache.org/loading-routes-from-xml-files.html On Tue, Jun 4, 2013 at 3:20 PM, ikoblik wrote: > Hi All, > > Is it possible to add routes to existing spring context? All examples [1] > show how to declare routes and then create Camel Context with them, I c

Add routes to existing Camel context using Spring

2013-06-04 Thread ikoblik
Hi All, Is it possible to add routes to existing spring context? All examples [1] show how to declare routes and then create Camel Context with them, I could not find any example of how to do it in the reverse order. Thank you, Ivan. [1] http://camel.apache.org/spring.html -- View this messag

Re: SPeL in tag attributes when using Spring context

2013-06-04 Thread Claus Ibsen
Hi No this is not possible in the . You can use property placeholders. Or use java code or some programming language to do it. XML is not a programming language so it has limitation. And for dynamic uris, then you can do it in "to" as this FAQ shows how to do it http://camel.apache.org/how-do-i-

SPeL in tag attributes when using Spring context

2013-06-04 Thread ikoblik
Hi All, I'm trying to configure routes using spring context based on examples from here: http://camel.apache.org/spring.html It seems that it is not possible to use SPeL in certain fields, for example I try to specify uri as follows: http://camel.apache.org/schema/spring";>

Re: Camel always sending MQRFH2 headers to target WebsphereMQ queue.

2013-06-04 Thread shashi.kant
Not a advanced user .. i have seen that link before. can't figure out how do just that from camel. If u can just give some idea regarding that *Shashi Kant * ***"Think positive and find fuel in failure"* *+917259733668 * http://thinkndoawesome.blogspot.com/ *System/Software Engineer* *Hewlett-P

Re: camel-xmljson

2013-06-04 Thread Raul Kripalani
Hi Surendra, My tests show that the underlying json-lib is very sensitive to whitespaces in the input XML. Removing inter-element whitespaces / XML indentation / pretty-print does the trick. So if you marshal this XML into JSON: this is a test messagevalue3value2value1 You get: {"root":{"aps":

Re: Camel without Spring. Limitations?

2013-06-04 Thread Charles Moulliard
There is one limitation until now when you need to work with Camel Transactional Routes as Camel uses TransactionErrorHandler ( http://camel.apache.org/transactionerrorhandler.html). This TxErrorHandler uses behind the scene Spring to handle the Transactions and need to be changed in the future to

Re: Camel always sending MQRFH2 headers to target WebsphereMQ queue.

2013-06-04 Thread David Karlsen
Does this help? http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/index.jsp?topic=%2Fcom.ibm.mq.doc%2Fmi21980_.htm 2013/6/3 shashi.kant > I have been trying to send message to a IBM websphere MQ queue which has to > be in IBM500 charset, MQFMT_STRING format and encoding 273 from a Camel > 2.1

Re: ActiveMQ Component: Stop route when no more messages are being received

2013-06-04 Thread Claus Ibsen
You can use the inflight repository to know how many in-flight messages a route has. http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/spi/InflightRepository.html On Mon, Jun 3, 2013 at 4:24 PM, Okello Nelson wrote: > Hi Guys, > > I've been trying to work on this. Time has

Body type problem on CXF component with CXF_MESSAGE dataFormat`

2013-06-04 Thread liugang594 Liu
Hi All: I have a question about the expect body type of CXF compoent when using CXF_MESSAGE dataFormat. My CXF version is 2.7.5 and Camel version is 2.10.4. for example, I have a route:timer -> setBody (constant string content) -> CXF It works fine, if dataFormat of this cxf component is RAW, POJ

Kryo Data format

2013-06-04 Thread Cristiano Costantini
Hello all, I was playing with the Kryo (https://code.google.com/p/kryo/) serialization library, comparing it to Java default serialization and Marshalling/Unmarshalling with JaxB. Taking aside Java Serialization, which would require me to implement Serializable and I can't, I like the fact that K

Re: How to build a nested content based router?

2013-06-04 Thread Claus Ibsen
You can use another route for the 2nd choice, and call that route using direct. That is easier and you make the routes smaller and easier to manage / test / understand etc. Just like java code with many if .. else nested is not a good idea. On Mon, Jun 3, 2013 at 4:05 PM, Hilde wrote: > Hello Ev

Re: How to build a nested content based router?

2013-06-04 Thread Claus Ibsen
See this FAQ about the endChoice https://camel.apache.org/why-can-i-not-use-when-or-otherwise-in-a-java-camel-route.html On Mon, Jun 3, 2013 at 4:05 PM, Hilde wrote: > Hello Everybody, > > How can I model a nested content based router via the java dsl? > The following trial was not successful: >

Re: the namespace on the "IReportServiceExecuteRequest" element, is not a valid SOAP version

2013-06-04 Thread Willem jiang
Where did you call the exchange.getOut() ? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javae

Re: Camel 2.9.2, CXF 2.6.2 - How should the response look for CXF producer using Payload dataformat

2013-06-04 Thread Willem jiang
Hi, Please don't send the same question into two different users mailing list. I already answer you question in the cxf users mailing list. The answer is you the response should be wrapped with soap envelope. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.f

Re: No bean named 'CamelBeanParameterMappingStrategy' is defined

2013-06-04 Thread Willem jiang
If you don't use APM, can your camel context be started rightly? It looks like you are missing the definition of CamelBeanParameterMappingStrategy somewhere. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://wil

Re: Graceful shutdown not working

2013-06-04 Thread Claus Ibsen
Hi Thanks for reporting and providing the thread dumps. I logged a ticket and have a potential fix in the works. Would be great if you could test the fix in your system https://issues.apache.org/jira/browse/CAMEL-6421 On Tue, Jun 4, 2013 at 8:52 AM, miljenko wrote: > I've tested with versions