Re: Null Body

2013-04-25 Thread Claus Ibsen
Hi Sounds like this FAQ http://camel.apache.org/why-is-my-message-body-empty.html On Thu, Apr 25, 2013 at 11:49 PM, TonyK wrote: > I have two routes, the parent route uses jms with the inout EIP to call the > below route, and uses the transferException parameter so that exceptions get > returned

Re: JMS transaction behavior inside of route

2013-04-25 Thread Claus Ibsen
Hi Its the message broker that does the external redelivery. Camel doesn't do it. Camel just log that there was an exception thrown during routing, and its regarded as exhausted after the very first delivery attempt (eg no redelivery). So that triggers a rollback on the TX, which the TX manager h

Re: Split and Xpath

2013-04-25 Thread Claus Ibsen
You can add camel-saxon to the classpath which supports xpath 2.0 http://camel.apache.org/xpath.html On Fri, Apr 26, 2013 at 2:14 AM, RTernier wrote: > Realized Camel only supports XPath 1.0. The xpath i was using was 2.0. > Modified and it's working. > > > > -- > View this message in context: >

Null Body

2013-04-25 Thread TonyK
I have two routes, the parent route uses jms with the inout EIP to call the below route, and uses the transferException parameter so that exceptions get returned to the parent route. The problem is that in my child route I unmarshal using jaxb before calling a bean, when an exceptions occurs in tha

Re: random splitter error

2013-04-25 Thread Claus Ibsen
You uses old versions of XML libraries like xerces 2.6.x and have mixed version of jdom, spring JARs and whatnot. All that can lead to a bit "unstable" deployment. You may want to look at upgrading xerces and/or xalan etc. On Thu, Apr 25, 2013 at 10:24 PM, Christian Müller wrote: > Can you shar

Re: Expected behavior of two consecutive convertBodyTo?

2013-04-25 Thread Claus Ibsen
Hi Sounds a bit like this FAQ http://camel.apache.org/why-is-my-message-body-empty.html Also what version of Camel do you use? And how have you implemented your type converters? On Thu, Apr 25, 2013 at 3:07 PM, Al Ferguson wrote: > Hi, > > I get an Address in a format (MyAddress, jaxb annotate

Re: EIP Support for Lucidcharts

2013-04-25 Thread James Strachan
Cool. Incidentally Fuse IDE has an "Export Diagram" option (right click on the canvas), so you can export your camel route image to JPG/BMP for inclusion into PowerPoint etc. On 26 April 2013 01:36, alexb wrote: > Vote to support EIP integration in lucidchats. Good design tools will help > the p

Re: Register client when connecting to a topic?

2013-04-25 Thread PJ Walstroem
Thank you for the answers! Advisory topics seems to be just what we were looking for. I will dive into this and post my experiences here when I find out more about it. cheers, pj -- View this message in context: http://camel.465427.n5.nabble.com/Register-client-when-connecting-to-a-topic-tp573

Re: OT: Aggregation of billable data?

2013-04-25 Thread Hadrian Zbarcea
Hi James, Very good and interesting use case. You could use BPM, indeed, but I think it's way to heavy weight for what you need to do. CEP would be another idea, but I digress. Wire-tap won't help you, I believe Willem misunderstood your question. So here's what I think: you have your system

Re: OT: Aggregation of billable data?

2013-04-25 Thread Willem jiang
I'm not sure if the billing service needs the data from the business analysis. If it doesn't need those data, it could be more easy by using wire-tap[1] [1]http://camel.apache.org/wire-tap.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | h

Re: JMS transaction behavior inside of route

2013-04-25 Thread leroykendall
Hi Claus, Thank you for the link to the great page. One issue that I've stuck is how to perform JMS redelivery in Camel using Spring orchestrated transactions. My spring context is:

EIP Support for Lucidcharts

2013-04-25 Thread alexb
Vote to support EIP integration in lucidchats. Good design tools will help the product like Camel to gain traction in a corporate environment. Just hit the "Me Too!" button at the link below. http://support.lucidchart.com/entries/21544329-Support-for-Enterprise-Integration-Patterns Thanks for yo

Re: Split and Xpath

2013-04-25 Thread RTernier
I realized that it only supports XPath 1.0, I changed it so the xPath is: //v3:QUCR_IN200101BC | //v3:GetDemographics However, when I do that I get this on the output: [GetDemographics: null] [v3:QUCR_IN200101BC: null] It seems it grabbed the right nodes, but nothing under them. Thoughts? --

Re: Split and Xpath

2013-04-25 Thread RTernier
Realized Camel only supports XPath 1.0. The xpath i was using was 2.0. Modified and it's working. -- View this message in context: http://camel.465427.n5.nabble.com/Split-and-Xpath-tp5731569p5731570.html Sent from the Camel - Users mailing list archive at Nabble.com.

Split and Xpath

2013-04-25 Thread RTernier
I'm having some issues running the xpath on my split. I know the Xpath for the Choice isn't the best, but it works for now. I'm getting errors saying: Invalid xpath: //*[local-name()='QUCR_IN200101BC'], //*[local-name()='GetDemographics']. Reason: javax.xml.xpath.XPathExpressionException Here's w

Re: Headers are disapearing in RoutePolicy.onExchangeDone

2013-04-25 Thread garrydias
Hi, Claus.. sorry for delay.. I had to abandon this project for a while. I added a step after routingSlip and the problem still remains. Yes! The destination in #2 is the same as 1#. Please, see the routes I already had tested: works1.xml

Re: Expected behavior of two consecutive convertBodyTo?

2013-04-25 Thread Christian Müller
Can you share your type converter class with us? Do you provide a TypeConverter file? Best, Christian On Thu, Apr 25, 2013 at 3:07 PM, Al Ferguson wrote: > Hi, > > I get an Address in a format (MyAddress, jaxb annotated) and I want to > convert this address in another format (ExternalAddress,

Re: random splitter error

2013-04-25 Thread Christian Müller
Can you share the load test with us? Than we could may fix it if it's an issue in Camel. Best, Christian On Thu, Apr 25, 2013 at 2:07 PM, gmdavidson62 wrote: > FYIwe fixed this, changing the split strategy from an XPATH to a > tokenized split. When we "load tested" our routes with both str

RE: Setting Default JSON Provider

2013-04-25 Thread Calvert, Zach (Zach)** CTR **
Bah, solved it. ... ... -Original Message- From: Calvert, Zach (Zach)** CTR ** [mailto:zcalv...@motive.com] Sent: Thursday, April 25, 2013 2:18 PM To: users@camel.apache.org Subject: Setting Default JSON Provider I have

Re: Register client when connecting to a topic?

2013-04-25 Thread Christian Müller
Subscribing to the advisory topics and than starting/stopping routs at runtime using the Camel API should work. I also do not have hands one experience with this. Best, Christian On Thu, Apr 25, 2013 at 8:18 AM, Siano, Stephan wrote: > Hi, > > ActiveMQ supports advisory topics you could subscri

Setting Default JSON Provider

2013-04-25 Thread Calvert, Zach (Zach)** CTR **
I have a route http://0.0.0.0:8080/?matchOnUriPrefix=true&enableMultipartFilter=false"/> and a bean configured: How can I set this JSON Provider as my default provider for the cxfbean output

RE: CXF Bean, MultiPart -> Couldn't find MIME boundary

2013-04-25 Thread Calvert, Zach (Zach)** CTR **
That was it. Thank you Willem! For those who run into this, the next route looks like: http://0.0.0.0:8080/?matchOnUriPrefix=true&enableMultipartFilter=false"/> -Original Message- From: Willem jiang [mailto:willem.ji...@gmail.com] Sent: Thursda

Re: Deadlocking in Camel on Linux, ok on Windows

2013-04-25 Thread Christian Müller
Hi David! It's not a known issue. I had a short look into the code and the it happens at the following line: public Language resolveLanguage(String language) { Language answer; synchronized (languages) { // <- line 962 answer = languages.get(language); // check if the lang

Re: modifying endpoint

2013-04-25 Thread Vas
my actual endpoint is going to be change dynamically(adding "/test" automatically). org.apache.camel.component.http.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/app/jsp/second.jsp/test/ with statusCode: 404 so that getting 404. is there any solution to not

Re: modifying endpoint

2013-04-25 Thread Claus Ibsen
For the HTTP error code then the its returned by the remote server http://en.wikipedia.org/wiki/HTTP_404 On Thu, Apr 25, 2013 at 4:43 PM, Vas wrote: > Hi Claus, > i was modified my route as below. > > > > > > Bye World > > uri="htt

Handle different route types in a single method

2013-04-25 Thread Mangiameli, Josiah
Hey All, I am trying to write processor class that can process files retrieved from different routes. Originally It was designed to handle email routes but I also want to handle sftp, ftp or local file routes. However I am finding that the ftp files are not delivered as a Message like an email is

Re: modifying endpoint

2013-04-25 Thread Vas
Hi Claus, i was modified my route as below. Bye World http://localhost:8080/app/jsp/second.jsp?bridgeEndpoint=true"/> however I still get the same behavior. -- View this message in context: http://camel.465427.n5.nabble.com/modif

Re: Ambiguity in DefaultCamelContext with TypeConverter

2013-04-25 Thread lleclerc
I have picked the code from OsgiCamelContextHelper to set the osgi parts, but this helper do not apply for TypeConverter. Here is the code for OsgiDefaultCamelContext : It override the createTypeConverter() and addService is done while using a getter from DefaultCamelContext (see my first post).

OT: Aggregation of billable data?

2013-04-25 Thread James Green
This isn't to do with Camel per se but I'm hopeful I'm asking this question of the the right audience! Basically we're going to be routing event messages into some storage component where some of those messages may be billable to customers. We have an existing service that charges customers based

Expected behavior of two consecutive convertBodyTo?

2013-04-25 Thread Al Ferguson
Hi, I get an Address in a format (MyAddress, jaxb annotated) and I want to convert this address in another format (ExternalAddress, jaxb annotated) before invoking an Web service. Curiously the second conversion (MyAddress to ExternalAddress, for which I wrote a Converter) does not work. In fac

Re: 'fire and forge' from InOut exchange

2013-04-25 Thread brnzn1
Hi, I have tried something like: from("activemq:queue"). setExchangePattern(ExchangePattern.InOut). beanRef([recipients list of beans ], "route"). wireTap("direct:foo"). end(); from("direct:foo").to("bean:myBean") It looks like I still got the response (on activemq queue) only when

Embedded ActiveMQ in Camel very very start up slow...up to 10 minutes to startup

2013-04-25 Thread gcameo
We use Camel extensively in our app. The broker configuration looks like this

Re: How to replace a part of XML?

2013-04-25 Thread Bob Jolliffe
This is the type of task xslt is really well suited for. Use an identity template with a specific override, something like: http://www.w3.org/1999/XSL/Transform";> On 25 April 2013 13:03, horyna wrote: > Hi, > > i have a XML in exchange.body ( > getEx

Re: random splitter error

2013-04-25 Thread gmdavidson62
FYIwe fixed this, changing the split strategy from an XPATH to a tokenized split. When we "load tested" our routes with both strategies, we were able to recreate the errors consistently with the XPATH split. When we changed to the tokenized split we never got an error, all splits/aggregations

How to replace a part of XML?

2013-04-25 Thread horyna
Hi, i have a XML in exchange.body ( getExchanges().get(0).getIn().getBody(String.class) ) Has Camel some powerfull ability to change some elements in body? Somethink like: .transform(body().replaceValueOfElement("","new value")) -- View this message in context: http://camel.465427.n5.nabble.

Re: How to set a custom ExceptionHandler to a consumer

2013-04-25 Thread Claus Ibsen
Hi I found the issue is a bug, as the netty component need to configure the consumer when its created. So I have logged a ticket https://issues.apache.org/jira/browse/CAMEL-6312 On Thu, Apr 18, 2013 at 5:53 PM, fbarbat wrote: > Hi Valerian, > > I was talking about org.apache.camel.spi.ExceptionH

Re: recipientList not working properly

2013-04-25 Thread Nibs
its a very strange behaviour of camel don't know what went wrong for validation works fine but when i tring to do like this body become null validator:file:C:/Users/eIntegrationXml/xsd/abc.xsd

Re: mina can't receive object

2013-04-25 Thread Claus Ibsen
Hi textline=true means you use text based codecs, and not object types. So turn that option off or remove it. See details at http://camel.apache.org/mina And dive into its unit tests for further examples https://svn.apache.org/repos/asf/camel/trunk/components/camel-mina/src/test/ On Thu, Apr 25

Re: mina can't receive object

2013-04-25 Thread takidean
it means An existing connection was forcibly closed by the remote host but i'm wondering if mina can receive object from sockets , because this is the problem, when i send a String with dataoutputstrem its ok , when i use to send objects with ObjectOutputStream i get this error -- View this m

Re: DeadLetterChanel does not handle exception.

2013-04-25 Thread aram
Thank you! It really helped to solve the problem. -- View this message in context: http://camel.465427.n5.nabble.com/DeadLetterChanel-does-not-handle-exception-tp5731073p5731528.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Detect is a route is started

2013-04-25 Thread Jean Francois LE BESCONT
Thanks Claus for the link ! 2013/4/25 Claus Ibsen > Hi > > There is a getRouteStatus method > > http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/CamelContext.html#getRouteStatus(java.lang.String) > > On Thu, Apr 25, 2013 at 10:48 AM, Jean Francois LE BESCONT > wrot

Re: Detect is a route is started

2013-04-25 Thread Jean Francois LE BESCONT
I am using it because camel looks to have a strange behavior. I would like to execute code at the end of (spring/camel) context loading and if the code execution is OK then start an other route. ( First I download referential data and load it ) ( Secondly start route which process file and enrich

Re: JAXB marshal generates byte[] array instead of String

2013-04-25 Thread Claus Ibsen
Hi I logged a ticket https://issues.apache.org/jira/browse/CAMEL-6316 On Mon, Apr 22, 2013 at 8:55 AM, Claus Ibsen wrote: > Hi > > Fell free to log a ticket for such an improvement. And as usual > patches is welcome. > > > On Sat, Apr 20, 2013 at 5:00 PM, j_h_scheufen > wrote: >> I just discove

Re: Detect is a route is started

2013-04-25 Thread Claus Ibsen
Hi There is a getRouteStatus method http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/CamelContext.html#getRouteStatus(java.lang.String) On Thu, Apr 25, 2013 at 10:48 AM, Jean Francois LE BESCONT wrote: > Hey Folks ! > > Just a little post to say that it sound tricky to d

Re: Problems with sftp in Camel 2.11.0

2013-04-25 Thread Bengt Rodehav
I have now uploaded patches for fixing FileUtil and for testing the error in FileUtilTest. Like I wrote before, I think this is a really serious error since it affects (at least) ftp, ftps and sftp. I would really appreciate if a 2.11.1 bugfix release could happen real soon. I don't think that ftp

Re: DeadLetterChanel does not handle exception.

2013-04-25 Thread Claus Ibsen
If you set handled(true) on your onException then that ought to fix the issue you have. On Wed, Apr 24, 2013 at 7:44 PM, Claus Ibsen wrote: > Hi > > Yeah I can see this is a bug. I have logged a ticket. Thanks for > reporting this problem to the community. > https://issues.apache.org/jira/browse/

Re: 'fire and forge' from InOut exchange

2013-04-25 Thread Claus Ibsen
Hi You can use the wire tap to audit the response in parallel. http://camel.apache.org/wire-tap On Wed, Apr 24, 2013 at 11:48 PM, morpheus wrote: > I have similar need - I need to audit the response, so I want to do it in > parallel to sending the response: > from("activemq:queue").setExchangeP

Re: recipientList not working properly

2013-04-25 Thread Nibs
Thanks Claus and Christian for ur suggestions. Actually i am working on some old projects so currently i need a fix on camel 2.4 yeah but for sure we will upgrade taht. actually the error caused is Caused by: org.apache.camel.InvalidPayloadException: No body available of type: java.io.InputStrea