Re: Camel 2.9 - convertbodyto fails to converts a XML JMS Body to Java Bean

2012-04-20 Thread Claus Ibsen
On Thu, Apr 19, 2012 at 4:03 PM, Neo ratheet...@gmail.com wrote: Claus for the rescue !! Thank you very much for your response Claus !! I have temporarily used the below to resolve the original issue : from uri= unmarshal            jaxb prettyPrint=false contextPath=mycontext            

Re: using filter inside when?

2012-04-20 Thread Claus Ibsen
Hi Have you seen this FAQ. http://camel.apache.org/why-can-i-not-use-when-or-otherwise-in-a-java-camel-route.html Also if you put the predicate inside the filter as a parameter then it helps the DSL as well. filter( ) instead of filter().() On Thu, Apr 19, 2012 at 7:06 PM, Xuan

How to find out the total no of message for from the endpoint

2012-04-20 Thread hotta
Here are the two questions I have: 1.How to find out the total no of message for from the endpoint 2. Is there any way to direct to another endpoint when there is no messages from a from endpoint or take some action when there are no messages from from endpoint thanks, Hotta -- View this message

Re: Retrieve Endpoint in Recipient List OnPrepareRef

2012-04-20 Thread Claus Ibsen
On Wed, Apr 18, 2012 at 9:07 PM, ychawla premiergenerat...@yahoo.com wrote: Hello All, Consider a simple recipient list: camel:recipientList delimiter=, parallelProcessing=false onPrepareRef=prepareMessage                                 camel:headerRecipientListHeader/camel:header

sun.misc.Unsafe.park CPU usage

2012-04-20 Thread Pham Ngoc Hai
Hi, We are using Fuse servicemix 4.2.0-fuse-02-00 In this SMX, we use multiple camel components like cxf, ativemq, file, ftp, smtp, xslt... Some time JVM CPU usage jumps up to 250% and stays there for a few hours and gets back to normal. Once in a while when the system becomes irresponsive we

Re: sun.misc.Unsafe.park CPU usage

2012-04-20 Thread Pham Ngoc Hai
We are using Java HotSpot(TM) 64-Bit Server VM version 17.1-b03 on CentOS 5.5 64bits From: Pham Ngoc Hai pngoc...@yahoo.com To: users@camel.apache.org users@camel.apache.org Sent: Friday, April 20, 2012 4:27 PM Subject: sun.misc.Unsafe.park CPU usage Hi, We

Re: Splitter Spring Config

2012-04-20 Thread Claus Ibsen
On Thu, Apr 19, 2012 at 11:45 PM, Gershaw, Geoffrey geoffrey.gers...@credit-suisse.com wrote: Hello All, I am trying to use my pojo to do the splitting as mentioned http://camel.apache.org/splitter.html http://camel.apache.org/splitter.html  under Using a Pojo to do the splitting. There is

write TransactionManagerLookup with geronimo for hibernate

2012-04-20 Thread DEPREZ Arnaud AWL-IT
Hi all, I use ServiceMix 4.3.1 with the felix framework. I would like to use the JTA TransactionManager from Geronimo with hibernate. Regarding to the documentation, it seems that we have to redefine our own TransactionManagerLookup class in order to tell to hibernate how to get the right

CXF endpoint - access to HTTP header fields?

2012-04-20 Thread Tristan23
I have a route with a CXF endpoint like this here: cxf:cxfEndpoint id=CXF1 address=http://localhost:8090/myService1...; serviceClass=CXF1Impl/ from uri=cxf:bean:CXF1 / to ... some more stuff ... a processor e.g. to access HTTP header fields Is it possible to have access to the HTTP header

URL parameter in SOAP WS call

2012-04-20 Thread Tristan23
I expose a* CXF endpoint* in a route. This endpoint gets called with URL parameters, e.g. like this: http://localhost:8080/myService*?id=23* Is there a way in Camel to access this URL parameters? I know it's kinda non standard ... -- View this message in context:

Gracefull shutdown timeouts due to NotifyBuilder blocks on context

2012-04-20 Thread m . schmidt
Hi *, We have have a rather annoying issue of a camel shutdown hanging when an exception happens in a processor. See an abbreviated, numbered stack below. Seems like a race condition, since it doesn't happen all the time. We could provoke this simply by having a processor like this: public

Using the Context Component in ServiceMix...

2012-04-20 Thread James Carman
What I'm trying to do is have a bunch of bundles containing camel routes that only use local endpoints. Then, I plan on putting together a wiring bundle which connects all my local/logical endpoints from the other bundles using the actual middleware (WebSphere MQ in our case). I'm trying to use

Context Component and Transactions...

2012-04-20 Thread James Carman
We are planning to write a bunch of camel contexts which contain routes using only local endpoints (the vm component). To get everyone talking to one another, we'll create a wiring context which connects the dots. I was wondering how this will work with transactions. Suppose I have a few routes

Re: Camel XSLT Problem

2012-04-20 Thread Claus Ibsen
On Thu, Apr 19, 2012 at 4:05 PM, Michael Szalay michael.sza...@basis06.ch wrote: Now there is the same error, the message is Caused by: java.io.FileNotFoundException: Cannot find resource in classpath for URI: com/mycompany/test.xsl          at

Re: Using XML Catalog with XPath

2012-04-20 Thread Claus Ibsen
On Thu, Apr 19, 2012 at 12:24 PM, Jens smix...@dzbank.de wrote: Hi, is it possible to make Camel use a given XML catalog when using xpath in a route? I'm encountering a problem where an incoming document includes a DTD declaration with an invalid or unavailable SYSTEM ID. When I try to use

Re: How to find out the total no of message for from the endpoint

2012-04-20 Thread Claus Ibsen
Hi You have to be more specific. Ad 1) Camel offers JMX statistics, where you can dive in a get numbers such as total messages etc a route has processed. Ad 2) That would be component specific, how it would no there is no more messages. The Camel routing engine has a in-flight registry which

Re: Trapping Errors Help

2012-04-20 Thread Claus Ibsen
Hi Ah it could be because getClass is from java.lang.Object which we filter out usually. Could you log a JIRA? On Wed, Apr 18, 2012 at 7:26 PM, Castyn eric.ben...@gmail.com wrote: For some reason when I try that and the error is attempted to be captured I am getting an error in the simple

Re: ScheduledPollConsumer leaving threads around during removal

2012-04-20 Thread Jeff Segal
Oops. I'm using 2.9.1. I'm guessing this is the issue: https://issues.apache.org/jira/browse/CAMEL-5072. I'll go ahead and upgrade and re-run my test. Thanks Claus. On Fri, Apr 20, 2012 at 12:47 PM, Claus Ibsen claus.ib...@gmail.com wrote: Hi What version of Camel are you using? This has

Re: Gracefull shutdown timeouts due to NotifyBuilder blocks on context

2012-04-20 Thread Claus Ibsen
Hi What version of Camel are you using? What are you using the NotifyBuilder for? Its intend is for testing purposes. But it seems maybe NotifyBuilder should possible ignore events when the CamelContext is shutting down. On Fri, Apr 20, 2012 at 2:22 PM, m.schm...@icw.de wrote: Hi *, We

Re: ScheduledPollConsumer leaving threads around during removal

2012-04-20 Thread Jeff Segal
Success! My threads are now being cleaned up properly after Route removal upon upgrading to 2.9.2. Thanks again. On Fri, Apr 20, 2012 at 1:41 PM, Jeff Segal jeffrey.se...@gmail.com wrote: Oops. I'm using 2.9.1. I'm guessing this is the issue: https://issues.apache.org/jira/browse/CAMEL-5072.

Re: CXF endpoint - access to HTTP header fields?

2012-04-20 Thread Christian Müller
Yes. exchange.getIn().getHeaders(); Or is there a header you couldn't find? Best, Christian On Fri, Apr 20, 2012 at 12:09 PM, Tristan23 tristanlst...@gmail.com wrote: I have a route with a CXF endpoint like this here: cxf:cxfEndpoint id=CXF1 address=http://localhost:8090/myService1...;

Re: Context Component and Transactions...

2012-04-20 Thread Christian Müller
It depends... ;-) Camel relays on SpringPlatformTransactionManager which is bound to the current thread, If you use the direct protocol/component, this will be part of this transaction. If you use the seda or vm protocol/component (which will use a different thread), the route in your context

Re: Original message

2012-04-20 Thread Raul Kripalani
Yes, that kind of looks correct, but you need to add the stopOnException=true option on your multicast element. By default, the overall output of the multicast will be the output of the last endpoint. You can modify that by setting a Strategy on the multicast. Hope that helps, Raúl. On 19 Apr