Re: IBM MQ and CAMEL

2012-05-29 Thread David Karlsen
2085 == Object not found, which means the qmgr and/or queue is undefined. Please see WMQ documentation. 2012/5/30 newbiee : > I am trying to connect to IBM MQ following the settings, that "Ashwin Karpe" > has placed in the following link: > > http://camel.465427.n5.nabble.com/Can-Camel-communicate

Splitting a stream from a servlet

2012-05-29 Thread erstanl
All, I have a camel servlet that is consuming an XML stream. I currently have it splitting that stream successfully. The problem is that I need to split it multiple times. There are 2 sections in the stream that I am interested in. Once I have those split out, I intend to forward them as JMS messag

Re: HOW-TO: Jetty, JSON, and Restful Services

2012-05-29 Thread Willem Jiang
Did you need to do some transformation on the request? If not you can use the http endpoint to send the request without letting cxf endpoint do the addition work. On 5/30/12 12:01 AM, gramanero wrote: I am "very" new to FuseESB and the underlying technology stack, so I apologize up front if I

Re: IBM MQ and CAMEL

2012-05-29 Thread newbiee
I am trying to connect to IBM MQ following the settings, that "Ashwin Karpe" has placed in the following link: http://camel.465427.n5.nabble.com/Can-Camel-communicate-over-IBM-MQ-sender-receiver-channels-td4429050.html However, I am getting the following error: [ltMessageListenerContainer-102]

Re: HOW-TO: Jetty, JSON, and Restful Services

2012-05-29 Thread gramanero
Thank you for the tip about removeHeaders. I was wondering if there was an easier way to accomplish that. Very much appreciated! What I noticed when initially trying to route the message from jetty to the restulf svc is that the CamelHttpUrl was incorrect. What was logged in the servicemix.log fil

Re: HOW-TO: Jetty, JSON, and Restful Services

2012-05-29 Thread Castyn
Just a note, you can remove more than one header at once with or even Using wildcards and such. I don't think the headers that are populated off of the jetty endpoint are going to be causing the issue. If you are just trying to pass along the JSON string straight through to the CXF producer

Re: Splitter Question - ArrayList

2012-05-29 Thread Christopher Love
Guys Thanks for the recommendations. I took a step back and did a split on a string, rather than an object. Smaller payload in the activemq queues. Claus An ArrayList is inbound to the split. I should not have listed it in the split. Should split() just work, or do I need to list the object t

Re: splitter without aggregator?

2012-05-29 Thread Tyler Durvik
So I am receiving data (A) via JMS that I break down into separate messages (A1, A2, A3) using a splitter. I want to send each message (A1, A2, A3) back to the client with data analysis results. My test client always gets back the original data message (A). I have a temp queue on the client that

HOW-TO: Jetty, JSON, and Restful Services

2012-05-29 Thread gramanero
I am "very" new to FuseESB and the underlying technology stack, so I apologize up front if I am not using the correct terminology when trying to describe the issues we are running into. We are working on a proof of concept to determine if FuseESB is the direction we want to go for some internal pro

Re: org.apache.camel.RuntimeCamelException: java.io.FileNotFoundException: Cannot find resource in classpath for URI

2012-05-29 Thread pitani
Scott, Keeping Schema files in separate jar file is working in Camel 2.0.0, But not working in 2.9.0. Thanks, Ramesh Pitani -- View this message in context: http://camel.465427.n5.nabble.com/org-apache-camel-RuntimeCamelException-java-io-FileNotFoundException-Cannot-find-resource-in-classpaI-tp

Re: org.apache.camel.RuntimeCamelException: java.io.FileNotFoundException: Cannot find resource in classpath for URI

2012-05-29 Thread pitani
Hi Scott, Thank you very much for your help and working on my problem with me. I have executed your Test class and this is working fine. If you try keeping these schema files in separate jar files and referencing schema jar file in pom.xml. Then This Test class is failing. you can try this. Ple

Re: doTry/doCatch with original message

2012-05-29 Thread Jens
Claus Ibsen-2 wrote > > Hi > > Have you tried enabling stream caching? > http://camel.apache.org/stream-caching.html > Yes, and I also tried converting the message to a String right away but neither change helped. This is with Camel 2.8.3, by the way. Jens -- View this message in context:

Re: doTry/doCatch with original message

2012-05-29 Thread Claus Ibsen
Hi Have you tried enabling stream caching? http://camel.apache.org/stream-caching.html On Tue, May 29, 2012 at 4:19 PM, Jens wrote: > Hi list, > > I'm trying to route a message to a SOAP service via a CXF endpoint like > this: > > from("cxf:bean:..."). >  doTry(). >    to("cxf:bean:primary"). >

doTry/doCatch with original message

2012-05-29 Thread Jens
Hi list, I'm trying to route a message to a SOAP service via a CXF endpoint like this: from("cxf:bean:..."). doTry(). to("cxf:bean:primary"). doCatch(IOException.class). to("cxf:bean:secondary"). end(); So basically, send the message to the first service, and if that doesn't work

how to stop route?

2012-05-29 Thread xiangqiuzhao
i stop the consumer route, but why can't execute the doStop() method? i use camelContext.stopRoute("routeId"); the consumer route bind the port 6, but when i stopRoute, it's listened on 6 yet. why can't execute the component's doStop() method on Consumer? because i start the route it

Re: Cycle polling

2012-05-29 Thread tooheavymental
Thank you, this can remove some boilerplate for my code. -- View this message in context: http://camel.465427.n5.nabble.com/Cycle-polling-tp5713670p5713687.html Sent from the Camel - Users mailing list archive at Nabble.com.

using aggregator - camel 2.6.0

2012-05-29 Thread greendaycriss
Hello. i am trying to use the aggregator pattern in a route and i get this error: "Cannot find class [org.apache.camel.processor.aggregate.AggregationStrategy]" i also added camel-core dependency in pom.xml : org.apache.camel camel-core

Re: Cycle polling

2012-05-29 Thread tooheavymental
BTW, I think header did not help here. They lost on return from "restlet", no? But property can help. -- View this message in context: http://camel.465427.n5.nabble.com/Cycle-polling-tp5713670p5713689.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: "Singleton bean creation not allowed while the singletons of this factory are in destruction" during shutdown

2012-05-29 Thread Pascal
Hello Claus, thanks for your very rapid reply! I guess I could do that, but I'd prefer to keep my beans decoupled from Camel itself. Also because I'm using Spring component scanning to have my beans instantiated so then I'd have to annotate my beans with the @Depends-on annoation which is kinda u

Re: ClassCastException using cxf:bean

2012-05-29 Thread Claus Ibsen
On Tue, May 29, 2012 at 3:17 PM, cgiera wrote: > > Claus Ibsen-2 wrote >> >> On Tue, May 29, 2012 at 2:44 PM, cgiera wrote: >> >> You use an old version of Camel. You can upgrade to have this fixed. >> >> >> When Camel start the routes it initializes the resources and thus also

Re: ClassCastException using cxf:bean

2012-05-29 Thread cgiera
Claus Ibsen-2 wrote > > On Tue, May 29, 2012 at 2:44 PM, cgiera wrote: > > You use an old version of Camel. You can upgrade to have this fixed. > > > When Camel start the routes it initializes the resources and thus also > bean / beanRef, where it will setup this logic. > Th

Re: Retrieve computed filename according to move or moveFailed

2012-05-29 Thread s.rocca
Thank you very much Henryk! Since each route has its own moveFailed and move settings, I followed your advice in this way: Original route: ... Modified route: .done/${header.breadcrumbId}_${file:onlyname} .error/${header.breadcrumbId}_${file:onlyname

Re: "Singleton bean creation not allowed while the singletons of this factory are in destruction" during shutdown

2012-05-29 Thread Claus Ibsen
In the Spring XML you can set a depends-on attribute on the . And then make them depend on Camel by its id from the On Tue, May 29, 2012 at 3:04 PM, Pascal wrote: > Hello, > > I'm currently experiencing the following; when shutting down my Camel > application I regularly receive "Singleton bea

"Singleton bean creation not allowed while the singletons of this factory are in destruction" during shutdown

2012-05-29 Thread Pascal
Hello, I'm currently experiencing the following; when shutting down my Camel application I regularly receive "Singleton bean creation not allowed while the singletons of this factory are in destruction" exceptions. The exceptions are thrown for beans used by my routebuilders, reference by the "be

Re: multicast and setting header

2012-05-29 Thread Henryk Konsek
> I'm having an issue as well, for which I have implemented the > AggregationStrategy but am still facing issues. This is how you can collect exchanges multicasted to the several endpoints. from("direct:multicastMe") .multicast(new GroupedExchangeAggregationStrategy()).parallelProcessing()

Re: ClassCastException using cxf:bean

2012-05-29 Thread Claus Ibsen
On Tue, May 29, 2012 at 2:44 PM, cgiera wrote: > > Claus Ibsen-2 wrote >> >> When using .bean in the DSL, then the bean is looked up / created once >> / etc when the route is being initialized / started. >> And thus there is no thread safe issue at runtime, as the beans is >> already created. >> >

Re: Cycle polling

2012-05-29 Thread Henryk Konsek
> That only rough idea, but real solution should be more complicated. > It need to take in account the max number of attempts, > also the > otherwise().to("direct:beginPollQ") construction will send the "fail result" > to begin, not the token as expected. I understand :) But I prefer to achieve my

Re: ClassCastException using cxf:bean

2012-05-29 Thread cgiera
Claus Ibsen-2 wrote > > When using .bean in the DSL, then the bean is looked up / created once > / etc when the route is being initialized / started. > And thus there is no thread safe issue at runtime, as the beans is > already created. > > When using bean with a class type, the bean is created

Re: Cycle polling

2012-05-29 Thread Christian Schneider
Sounds like a good case for the dynamic router: http://camel.apache.org/dynamic-router.html In the expression you could test if the result is ok and return null if it is ok. As long as it is not ok you would return the endpoint uri of the second service. If the expression is too complicated yo

Re: Cycle polling

2012-05-29 Thread tooheavymental
Hi, Henryk. The devil in the details, of course. That only rough idea, but real solution should be more complicated. It need to take in account the max number of attempts, also the otherwise().to("direct:beginPollQ") construction will send the "fail result" to begin, not the token as expected. --

Re: Cycle polling

2012-05-29 Thread tooheavymental
Thank you, Claus. Yes, now I use a custom code in bean. But, I thought that this pattern is too generic, to handcode it, and I thought that I overlooked something. So, still use custom bean. -- View this message in context: http://camel.465427.n5.nabble.com/Cycle-polling-tp5713670p5713675.html Se

Re: Cycle polling

2012-05-29 Thread Henryk Konsek
>  from("direct:sendQ").to("restlet://firstService").to("direct:beginPollQ"); >  from("direct:beginPollQ").delay().to("restlet://secondService") >                             .choice(). >                                          when(IS_OK).to("direct:result"). >                              .other

Re: Cycle polling

2012-05-29 Thread Claus Ibsen
On Tue, May 29, 2012 at 1:16 PM, tooheavymental wrote: > Hi, >   I have a two external services(REST for simplicity). First service > enqueued the operation and, as result, only returns the token, which I > should periodically send to the second service until I get the computation > result, or > s

Re: xslt error with document('')

2012-05-29 Thread Marco Westermann
Hi Yogesh, thank you for your suggestion. I will try that. regards, Marco Am 25.05.2012 20:42, schrieb ychawla: Hi Marco, Are you using the same XSLT processors in eclipse and in Camel? I like using Saxon and you can customize your XSLT processor like this: Thanks, Yogesh -- View this m

Cycle polling

2012-05-29 Thread tooheavymental
Hi, I have a two external services(REST for simplicity). First service enqueued the operation and, as result, only returns the token, which I should periodically send to the second service until I get the computation result, or status that computation is failed. But I can't simply describe th

Re: Retrieve computed filename according to move or moveFailed

2012-05-29 Thread Henryk Konsek
> Is it possible to retrieve the name of the file renamed/moved according to > the move and moveFailed expression at the end of the route As far as I know File component doesn't provide information about path of the moved file. However you can evaluate move directory using the interceptor and set

Retrieve computed filename according to move or moveFailed

2012-05-29 Thread s.rocca
Hi all, I have several routes like the following: java.lang.Throwable as you can see the from file uri contains both move and moveFailed complex expressions

Re: Splitter Question - ArrayList

2012-05-29 Thread Henryk Konsek
> I am not getting anything after the split.  Ideas?  What debug logging > should I tweak? Could you send us output from logger near split(body(LsaResponse.class)) ? It's hard to tell what's wrong with your routing, reasoning from the snippet we cannot execute locally and seeing no log :) . -- H

michael.planamente.aw...@atos.net

2012-05-29 Thread PLANAMENTE Michael ATO-OD
Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg - 1130 Brussels - Belgium RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872 Bankrekening-Compte Bancaire-Bank Account 310-0269424-44 BIC BBRUBEBB - IBAN BE55 3100 2694 2444 "The information contai

Re: Route in a loop

2012-05-29 Thread Claus Ibsen
On Mon, May 28, 2012 at 12:51 PM, Charpente wrote: > With your experience, don't you know a better to achieve my "split"?? > I would try to have 1 route with 1 splitter, and instead of the hardcoded number in the xpath expression, use a token or some sort, so the splitter splits on any of the num

Re: Need help with Camel + JPA + Atomikos

2012-05-29 Thread mikeplanamente
other remark(to simplify your config and to be more "JTA implementation" independent), I see you're using Atomikos pools... this is ABSOLUTELY not manatory, you can use dbcp. using DBCP, you'll have to provide dbcp the transactionManager parameter + driverClassName with an XA version of driver(orac

Re: Need help with Camel + JPA + Atomikos

2012-05-29 Thread mikeplanamente
It seems that Hibernate is not aware of Atomikos Transaction Manager. in previous version of Hibernate(3.5) there were parameters you had to provide that were called: hibernate.transaction.manager_lookup_class = com.atomikos.icatch.jta.hibernate3.TransactionManagerLookup hibernate.transaction.

Re: Splitter Question - ArrayList

2012-05-29 Thread Claus Ibsen
And are you sure LsaResponse is a Colection / Iteratable so it can be used for splitting? See the splitter docs http://camel.apache.org/splitter And use tracer to see what goes on http://camel.apache.org/tracer Or write an unit test and debug the code. On Tue, May 29, 2012 at 5:29 AM, Christop