Re: Camel without Spring. Limitations?

2013-06-04 Thread Willem Jiang
Camel and CXF support Blueprint which can do the same thing as Spring does. Did you have a chance to try it? 发自我的 iPhone 在 2013-6-3,下午6:59,Jose jagavi...@gmail.com 写道: Hi, I am trying to use Camel without Spring and I am wondering if there are some limitations. I guess the configuration

Transaction Management in Camel

2013-06-04 Thread srikanthsettivari
HI, My route like this from(jms:queue:firstqueue) .transacted() .processor(new MyProcessor()) .to(jms:queue:out) --- in Myprocessor calss i am creating exchange message, and creating some dealy like thread.sleep() at the time of Thread sleeping i am stopping the server. Then again i started

Re: Graceful shutdown not working

2013-06-04 Thread miljenko
I've tested with versions 2.10.3 and 2.11.0. This is just a short example that can reproduce described problem. You can put anything else in the splitter, it will not be reached. Reducing unnecessary code showed that example worked if seda was replaced with direct or maximumRedeliveries removed,

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 miljenko.br...@2e-systems.com

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:

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:

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

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 hilde.sch...@yahoo.de wrote: Hello Everybody, How can I model a nested content based router via the java dsl? The following trial was

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

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

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

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 cn.oke...@gmail.com wrote: Hi Guys, I've been trying to work

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 shashiski...@gmail.com 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

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-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: rootapsalertthis is a test

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*

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: camelContext xmlns=http://camel.apache.org/schema/spring;

Re: SPeL in tag attributes when using Spring context

2013-06-04 Thread Claus Ibsen
Hi No this is not possible in the from. 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

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

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 ikob...@hotmail.com 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

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

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=trueexchangePattern=InOut, new Processor() { public void process(final Exchange exchange) throws Exception { ListSource

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

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

Transactional test assertions timing issue

2013-06-04 Thread Alex Sherwin
When unit (integration) testing a transacted route, such as (pseudo): route from uri=activemq:some queue/ transacted/ camel:process ref=someBeanProcessor/ /route Where someBeanProcessor does some DB work and participates in a JTA transaction with the JMS message on this route The problem

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

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

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 key, value 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)

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 ben.o...@initekconsulting.com 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

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 -

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

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

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:

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:

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.