Setup of JMS message listener failed Exception JmsComponent

2012-11-09 Thread javaxmlsoapdev
My config looks as below for connecting to IBM WebSphere MQ.

Setup of JMS message listener invoker failed for destination

2012-11-09 Thread javaxmlsoapdev
My config looks as below for connecting to IBM WebSphere MQ.

Re: Exception handling with JPA and integrity constraints

2012-11-09 Thread Christian Müller
Yes definitely. Using the JpaTransactionManager for the JMS route is wrong. Best, Christian On Fri, Nov 9, 2012 at 4:29 PM, James Carman wrote: > We're actually using Camel 2.9.x, since we're on Fuse Enterprise ESB > 7.0.1, so I don't think the bridging is available on that version, > correct? >

Re: Forcefully shutting down routes...

2012-11-09 Thread Christian Müller
The JavaDoc of a method is always a good source of information... Why do you set the timeout to 0 seconds? It force Camel to interrupt the shutdown immediately because it timed out. Try the stopRoute method without a timeout (or at least only after a few seconds). On you shut down the route from an

RE: Forcefully shutting down routes...

2012-11-09 Thread Ramkumar.Iyer
I haven't looked at source code but looks like you don't want a "graceful shutdown" but rather a "kill" of the route (which can get complicated with transactions). -Original Message- From: Vishal Changrani [mailto:vishal.changr...@ericsson.com] Sent: Saturday, November 10, 2012 12:57 AM

RE: Camel performance tuning

2012-11-09 Thread Ramkumar.Iyer
No attachment From: Gonzalo Vasquez [mailto:gvasq...@altiuz.cl] Sent: Saturday, November 10, 2012 12:55 AM To: users@camel.apache.org Subject: Re: Camel performance tuning Please see attached image from profiler, which shows the two method that get the 80% of CPU time. Also included again the ho

Forcefully shutting down routes...

2012-11-09 Thread Vishal Changrani
Hi, I am trying to shutdown a route by calling route. Camelcontext.stopRoute(routeId, 0, TimeUnit.SECONDS, false / true); //tried both true and false However the route continues to persist sometimes and I get the following messages.. DEBUG - Route: Publisher_21 suspended and shutdown deferred,

Re: Problem with pollEnrich

2012-11-09 Thread Babak Vahdat
Am 09.11.12 16:45 schrieb "Claus Ibsen" unter : >On Thu, Nov 8, 2012 at 7:12 AM, Claus Ibsen wrote: >> On Wed, Nov 7, 2012 at 9:08 PM, Babak Vahdat >> wrote: >>> >>> >>> Am 07.11.12 09:28 schrieb "Babak Vahdat" unter >>> : >>> Hi There's a routing use case currently I'm stuck with

Re: Camel performance tuning

2012-11-09 Thread Gonzalo Vasquez
Ok, I've included an aggregator in the splitter, as follows: ${date:now:mm}:${date:now:ss}.${date:now:SSS}

Re: Configuring HTTPS for CXF

2012-11-09 Thread Christian Müller
Can you test it without the "http:destination" configuration? It works for us without it. Best, Christian On Fri, Nov 9, 2012 at 5:47 PM, peter.berkman wrote: > I am still struggling with this HTTP vs HTTPS issue. The exception I get > is: > org.apache.camel.RuntimeCamelException: java.lan

Re: JMS - Shared fixed reply queue doesn´t consume all the messages

2012-11-09 Thread Christian Müller
I cannot reproduce your issue with the provided unit test. Could you have a look on it and create a new one? It would be great if this test works without an external broker so we can include this test in out test suite (use the vm protocol or start an embedded broker). Best, Christian On Fri, Nov

Re: Camel performance tuning

2012-11-09 Thread Christian Müller
Using Hypersonic, Hadoop or Mongo for such a use case is "over engineering" the requirement and will end up in much more complicated solution - IMO. Best, Christian On Fri, Nov 9, 2012 at 6:57 PM, wrote: > You may also want to check out Hadoop and map reduce > > > > http://camel.apache.org/hdf

Re: JMS - Shared fixed reply queue doesn´t consume all the messages

2012-11-09 Thread Christian Müller
I'm looking at that... Best, Christian On Fri, Nov 9, 2012 at 11:46 AM, anaCortes wrote: > nothing about this replyToCacheLevelName problem? ;) > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/JMS-Shared-fixed-reply-queue-doesn-t-consume-all-the-messages-tp5721700p

Fwd: Trouble when combining cxf server services and cxf-over-camel transport for a client service

2012-11-09 Thread David Karlsen
Cross-posting to camel as this is camel related. -- Videresendt melding -- Fra: "David Karlsen" Dato: 9. nov. 2012 16:19 Emne: Trouble when combining cxf server services and cxf-over-camel transport for a client service Til: Hi. I have a cxf based client service which I use the

RE: Camel performance tuning

2012-11-09 Thread Ramkumar.Iyer
You may also want to check out Hadoop and map reduce http://camel.apache.org/hdfs.html with respect to point a and b. You can have an index on the record and the "reduce" job can serialize on the index. From: Gonzalo Vasquez [mailto:gvasq...@altiuz.cl] Sent: Friday, November 09, 2012 10:16 PM

Re: Multiple Wiretap's in a Camel Route

2012-11-09 Thread Christian Müller
Edwin, I'm not sure whether I got your scenario in the right way. Is it possible to share your route? Do you execute the DB insert/update in the same thread or asynchronously? What's with something like: from("sead:start") .transacted() .multicast(aggregationStrategyWhichReturnsTheFirstExchang

Re: Camel performance tuning

2012-11-09 Thread Claus Ibsen
Hi Okay I have added some tests to Camel to see the performance for such use-case. https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/stress/ This test uses the Camel file producer https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/

Configuring HTTPS for CXF

2012-11-09 Thread peter.berkman
I am still struggling with this HTTP vs HTTPS issue. The exception I get is: org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: Protocol mismatch for port 9002: engine's protocol is http, the url protocol is https I'm running the latest version of Camel and CXF on Glassfish 3

Re: Camel performance tuning

2012-11-09 Thread Claus Ibsen
Hi The file component forces the write, to ensure its persistent on disk. See IOHelper.force method So when you do so many writes, then that ought to impact the performance. We could though allow to configure the behavior of force, so people can turn it off. On Fri, Nov 9, 2012 at 4:01 PM, Go

Re: Camel performance tuning

2012-11-09 Thread Claus Straube
Hi Gonzales. Take a look at this: http://www.catify.com/2012/07/09/parsing-large-files-with-apache-camel/ perhaps it solves your issue. Best regards - Claus I'm running a route that basically adds a character per line to a plain text file, but it's taking to long, and it seems that it's due

RE: Camel performance tuning

2012-11-09 Thread Ramkumar.Iyer
I am really new to Camel but here are some options you can try a) Can you load the 5 MB file to memory before splitting it ? That way IO will not be a problem. Probably put it in something like Hypersonic or Mongo b) Why is parallel processing false ? Are the records related to each

Re: xslt: component

2012-11-09 Thread Christian Müller
For XSLT transformation you need a XSLT file. For validation, you can use the XSD file. You can use maven to check which version of the dependency the camel-xslt component use. Sent from a mobile device Am 09.11.2012 13:23 schrieb "anakin59490" : > Ok ! > > Do you think that i could transform m

Re: Rollback and redeliver JMS message between Websphere and MQ via Camel

2012-11-09 Thread David Karlsen
Configure number of redeliveries to be 0. You might also be interested in looking into the docs for the transactional error handler which is default for transacted routes. Den 9. nov. 2012 10:09 skrev "De Backer Frederik (Belfius)" < frederik.debac...@belfius.be> følgende: > Hello, > > I have a me

Re: Problem with pollEnrich

2012-11-09 Thread Claus Ibsen
On Thu, Nov 8, 2012 at 7:12 AM, Claus Ibsen wrote: > On Wed, Nov 7, 2012 at 9:08 PM, Babak Vahdat > wrote: >> >> >> Am 07.11.12 09:28 schrieb "Babak Vahdat" unter >> : >> >>>Hi >>> >>>There's a routing use case currently I'm stuck with which goes as the >>>following: >>> >>>- Download an index fi

Re: Exception handling with JPA and integrity constraints

2012-11-09 Thread James Carman
We're actually using Camel 2.9.x, since we're on Fuse Enterprise ESB 7.0.1, so I don't think the bridging is available on that version, correct? Also, if I change things up a bit (added a test case to github) and use the JmsTransactionManager for my JmsComponent and the JpaTransactionManager on th

Re: Stop JMS message reception on exception

2012-11-09 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html On Fri, Nov 9, 2012 at 2:51 PM, De Backer Frederik (Belfius) wrote: > Hello, > > I am receiving JMS message in an MDB that is deployed inside a WAS 8.0 > application server. In order to prevent out of order process

Re: Exception handling with JPA and integrity constraints

2012-11-09 Thread Claus Ibsen
You can possible bridge the error handler on the jpa consumer http://camel.apache.org/why-does-my-file-consumer-not-pick-up-the-file-and-how-do-i-let-the-file-consumer-use-the-camel-error-handler.html Then it will trigger a new exchange into the Camel error handler with the caused exception, from

Re: Exception handling with JPA and integrity constraints

2012-11-09 Thread James Carman
I wasn't talking about whether the JPA stuff was expected. I know that's how it's supposed to work. I was talking about the camel side of things. Is this just what I'm going to have to do, put flush() calls in all my code so that my error handling will kick in? Is that what other folks do? Am

Re: Exception handling with JPA and integrity constraints

2012-11-09 Thread Claus Ibsen
On Fri, Nov 9, 2012 at 3:30 PM, James Carman wrote: > I have created a little sandbox project to exhibit the behavior I am seeing: > > https://github.com/jwcarman/camel-transaction > > Right now, I only have two test cases in there and the only difference > between the two is that I'm using this c

Re: Bridge Property Loading Order

2012-11-09 Thread Claus Ibsen
Hi Thanks for sharing this. Nice to see improvements in 3.1 and 3.2 of Spring in regard to property placeholders and environment settings and whatnot. And hopefully someday they open up so this is accessible for 3rd party namespace handlers. So we can have seamless Spring property placeholder inte

Exception handling with JPA and integrity constraints

2012-11-09 Thread James Carman
I have created a little sandbox project to exhibit the behavior I am seeing: https://github.com/jwcarman/camel-transaction Right now, I only have two test cases in there and the only difference between the two is that I'm using this code for the passing one: https://github.com/jwcarman/camel-tra

Re: Stop JMS message reception on exception

2012-11-09 Thread chris . odom
Programmaticly you could use the CamelContext object to access all Components with in that context. At that level you should be able to accomplish what you are looking to do. http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/CamelContext.html Chris O. On 2012-11-09 07

RE: Configuring camel routes using xml and DSL

2012-11-09 Thread Ramkumar.Iyer
You can use either DSL or fluent APIs or mix and match. Camel does not mandate any one over the other. -Original Message- From: Elezabeth [mailto:elezabeth.greg...@ibsplc.com] Sent: Friday, November 09, 2012 5:05 PM To: users@camel.apache.org Subject: Configuring camel routes using xml an

Re: Access camel context from BundleActivator.stop() ?

2012-11-09 Thread Bernard Ligny
Great idea...that i previously tried ;-). Unfortunately, I need also stuff from other bundles...which may have been shut down in the meantime. Therefore, I need to intervene a bit earlier in the shutdown process. Up to now, the most satisfying found solution is this one: public class StatsPersist

Re: xslt: component

2012-11-09 Thread anakin59490
Ok ! Do you think that i could transform my xml in another xml (the same without specifics tags) with Xalan and a xsd file ? Do you use xalan 2.7.1 ? (i found this version on maven repository...) thank you -- View this message in context: http://camel.465427.n5.nabble.com/xslt-component

Re: xslt: component

2012-11-09 Thread Bob Jolliffe
On 9 November 2012 11:46, anakin59490 wrote: > Thank you very much Bob !! > > It works !! > > In fact check, was my first step, but i used xslt: component because i must > transform my xml file in an other xml file (the same without specifics > tags). > > But i thought that it could do both (chec

Re: xslt: component

2012-11-09 Thread anakin59490
Thank you very much Bob !! It works !! In fact check, was my first step, but i used xslt: component because i must transform my xml file in an other xml file (the same without specifics tags). But i thought that it could do both (check and transform). I work with camel version 2.9. I've read o

Configuring camel routes using xml and DSL

2012-11-09 Thread Elezabeth
Hi , Is there anything like we should configure all our routes in either fully in xml file ,say camel-context.xml , or the routes should be fully in the Java DSL form. ?? Or can I configure one or two routes in xml file and the rest in JAVA file ??/ .. Will it work or is that possible?? Any hel

Re: xslt: component

2012-11-09 Thread Bob Jolliffe
Hi I think you are confusing processing/transforming xml file with xslt and validating it with xsd. It looks like this describes what you need: http://camel.apache.org/validation.html Bob On 9 November 2012 10:28, anakin59490 wrote: > Hello, > > I would like to check a xml file with a xsd

Re: JMS - Shared fixed reply queue doesn´t consume all the messages

2012-11-09 Thread anaCortes
nothing about this replyToCacheLevelName problem? ;) -- View this message in context: http://camel.465427.n5.nabble.com/JMS-Shared-fixed-reply-queue-doesn-t-consume-all-the-messages-tp5721700p5722393.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to send a mail containing an exception caught with onException?

2012-11-09 Thread Claus Ibsen
On Fri, Nov 9, 2012 at 10:54 AM, zzkozak wrote: > Hi, > > given the route: > > > > if the /orderRequestCreator/ throws an exception, I would expect an email > to be send to fo...@br.com containing the exception. Instead, the mail > component throws me an exception telling the body were null.

xslt: component

2012-11-09 Thread anakin59490
Hello, I would like to check a xml file with a xsd file. I try to use the xslt: component but it doesn't work. this is my xml file: 90 80 99 this is my xsd file : http://www.w3.org/2001/XMLSchema"; elementFormDefault="qualified"> and this is m

Multiple Wiretap's in a Camel Route

2012-11-09 Thread Edwin
Hi Folks, I have a route that consumes from a seda endpoint, sends the exchange to a processor and then to jms topic. I need to persist the message in a DB after I send the exchange to the processor. After the message has made it to the topic - I take another trip to the DB to update a status fl

Re: Access camel context from BundleActivator.stop() ?

2012-11-09 Thread Claus Ibsen
On Fri, Nov 9, 2012 at 9:42 AM, Bernard Ligny wrote: > > > Willem.Jiang wrote >> Did you create the camel context in the BundleActivator or using >> Blueprint, Spring to create the camel context? > > It is created using Spring, > (but my osgi bundle activator is registered through the manifest, no

Rollback and redeliver JMS message between Websphere and MQ via Camel

2012-11-09 Thread De Backer Frederik (Belfius)
Hello, I have a message driven bean deployed in a Websphere 8.0 server that is consuming messages from a Websphere MQ message broker. I would like to replace the MDB by a Camel JMS component but I have some issues regarding the proper handling of message rollback and XA transactions. The messag

Re: Access camel context from BundleActivator.stop() ?

2012-11-09 Thread Bernard Ligny
Willem.Jiang wrote > Did you create the camel context in the BundleActivator or using > Blueprint, Spring to create the camel context? It is created using Spring, (but my osgi bundle activator is registered through the manifest, not by Spring) Willem.Jiang wrote > Why do you need to access the