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 2

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 contex

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 wrote: > I have a route with a CXF endpoint like this here: > > http://localhost:8090/myService1..."; > serviceClass="CXF1Impl"/> > > > > > Is it possible t

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

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, wrote: > Hi *, > > We have have a rath

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 wrote: > Hi > > What version of Camel are you using? > This has been fixed in 2.9.2.

Re: ScheduledPollConsumer leaving threads around during removal

2012-04-20 Thread Claus Ibsen
Hi What version of Camel are you using? This has been fixed in 2.9.2. On Fri, Apr 20, 2012 at 6:42 PM, Jeff Segal wrote: > I created a custom Component which extends ScheduledPollConsumer. I've > found that when I stop and remove its Routes at runtime, the Routes are > removed but two threads o

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 wrote: > For some reason when I try that and the error is attempted to be captured I > am getting an error in the simple expression.  I am not s

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 ke

Re: Using XML Catalog with XPath

2012-04-20 Thread Claus Ibsen
On Thu, Apr 19, 2012 at 12:24 PM, Jens 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 an > xpath

Re: Camel XSLT Problem

2012-04-20 Thread Claus Ibsen
On Thu, Apr 19, 2012 at 4:05 PM, Michael Szalay 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 > org.apache.camel.util.ResourceHelper.resolveMandatoryResourceAsUr

Re: How to determine whether an exchanged has failed

2012-04-20 Thread Bengt Rodehav
I've tried the approach specified below and it seems to work. I'm just interested to know if it works "by accident" or if this is the way the property "Exchange.FAILURE_HANDLED" should be used. Can someone verify this? /Bengt 2012/4/19 Bengt Rodehav > I'm using Camel 2.9.1 in our integration p

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

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 u

Re: Gracefull shutdown timeouts due to NotifyBuilder blocks on context

2012-04-20 Thread m . schmidt
I'm attaching the stacktrace as textfile since it got accidentally wrapped. Sorry for the noise. cheers, Matthias    InterComponentWare AG: Vorstand: Peter Kirschbauer (Vors.), Jörg Stadler Aufsichtsratsvors.: Prof. Dr. Christof Hettich Firmensitz: 69190 Walldorf, Altrottstraße 31 AG

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 cla

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: http://camel.465427.n5.nabble.c

CXF endpoint - access to HTTP header fields?

2012-04-20 Thread Tristan23
I have a route with a CXF endpoint like this here: http://localhost:8090/myService1..."; serviceClass="CXF1Impl"/> http://camel.465427.n5.nabble.com/CXF-endpoint-access-to-HTTP-header-fields-tp5653839p5653839.html Sent from the Camel - Users mailing list archive at Nabble.com.

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 Trans

Re: Splitter Spring Config

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

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 To: "users@camel.apache.org" Sent: Friday, April 20, 2012 4:27 PM Subject: sun.misc.Unsafe.park CPU usage Hi, We are using Fuse servicemix 4.2.0-fuse-0

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 ha

Re: Retrieve Endpoint in Recipient List OnPrepareRef

2012-04-20 Thread Claus Ibsen
On Wed, Apr 18, 2012 at 9:07 PM, ychawla wrote: > Hello All, > Consider a simple recipient list: > > onPrepareRef="prepareMessage"> >                                 > RecipientListHeader > > > The Recipient List header has the contents: endpoint1, endpoint2 > > The endpoints are defined as: > >

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 me

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 Hua

Re: Camel 2.9 - 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 wrote: > Claus for the rescue !! > > Thank you very much for your response Claus !! > > I have temporarily used the below to resolve the original issue : > > > >                            partClass="mycontext.MyClass" /> > > > > > > > (I could have used t