Need help with Camel + JPA + Atomikos

2012-05-25 Thread dmhatre
Hi Folks, I have successfully integrated transaction manager(Atomikos) with Camel SQL + JMS using SPRING. But I wish to use JPA instead of sql component. I have hooked atomikos with DATASOURCE and JMS. But dont know how to hook atomikos to JPA. I am attaching my source and stacktrace below. Plea

Re: Camel EAI patterns vs. BPEL processes

2012-05-25 Thread Hadrian Zbarcea
One of my previous answers on the topic may help: http://camel.465427.n5.nabble.com/Orchestration-with-Camel-td5587114.html I hope this helps, Hadrian On 05/25/2012 03:16 PM, Danny wrote: How to choose? I'll use orchestration as a generic term below that is synonymous with route in camel and p

Re: splitter without aggregator?

2012-05-25 Thread Hadrian Zbarcea
Hi Tyler, Yes, you can use the splitter without an aggregator. I would venture to say that this is actually the default case. An aggregation strategy with the splitter will generate one exchange in the end (and yes, there is a default strategy and also there is no way around it). However if yo

splitter without aggregator?

2012-05-25 Thread Tyler Durvik
I would like split a message and have the message flow through my routes. At the end of my route processing I want the split messages to go back via JMS queue. I can split message, but appears that Camel is aggregating the messages back together. Is there a method to prevent split messages from

Camel EAI patterns vs. BPEL processes

2012-05-25 Thread Danny
How to choose? I'll use orchestration as a generic term below that is synonymous with route in camel and process in BPEL. REQUIREMENTS: 1. Orchestration of a series of web service calls. (WSDL and REST) 2. Orchestration engine must support asynchronous calls to an external web service. 3. Change

Re: xslt error with document('')

2012-05-25 Thread 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 message in context: http://camel.465427.n5.nabble.com/xslt-error-with-document-tp5713535p5713572.html Sent from the C

Re: Best Practice for splitting on header?

2012-05-25 Thread ychawla
Hi, Do you need to use a bean/producer template to do this? Some of this might be built right in to the Recipient List EIP. For example, in Spring: endpointsToCall In the above snippet, you set a header with your endpoints, a delimiter of '|' and a strategy to aggregate all your responses

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

2012-05-25 Thread sengland
Hello, Using Camel 2.9.2 I was not able to recreate your error. To verify, I created a JUnit test that used a pair of schemas where one was in a child directory and referenced an XSD file in the directory above just as you have presented below. As to why it worked in 2.0 and not in 2.9.2, I can

Re: Camel FTP/SFTP check instead of download

2012-05-25 Thread Nestor Urquiza
Thanks Clous. Your answers brought me back to earth. I think I missed the point about what the ftp components and any other Camel component is about (Producer/Consumer). I was trying to activate a route from a seda component and then only at that point try to test for the existence of a file in th

RE: Unit testing a method with Exchange as a Param

2012-05-25 Thread Gershaw, Geoffrey
Yeah, I figured that one out Geoffrey A. Gershaw Credit eTrading Dev - RDO 1 919 994 6412 -Original Message- From: Christian Müller [mailto:christian.muel...@gmail.com] Sent: Friday, May 25, 2012 9:44 AM To: users@camel.apache.org Subject: RE: Unit testing a method with Exchange as a Pa

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

2012-05-25 Thread sengland
Sorry RE version. I see it now. sengland wrote > > Just for completeness, did you try the absolute paths to see if that > worked correctly? > > Also, what version of Camel are you using? > > > pitani wrote >> >> I have 2 schema files. Sabre_OTA_Profile.xsd and >> Sabre_OTA_ProfileOrchestrat

Re: Camel OSGi services component

2012-05-25 Thread Sergey Zhemzhitsky
Hello Michael, To call the listeners asynchronously you can use the following uri: osgi:multicast:myEndpoint?parallelProcessing=true. Here is some docs aboutpredefinedparametersfor osgi:multicast producers: https://github.com/szhem/camel-osgi#multicasting-to-multiple-osgi-bund

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

2012-05-25 Thread sengland
Just for completeness, did you try the absolute paths to see if that worked correctly? Also, what version of Camel are you using? pitani wrote > > I have 2 schema files. Sabre_OTA_Profile.xsd and > Sabre_OTA_ProfileOrchestratedReadRQ.xsd. > Sabre_OTA_ProfileOrchestratedReadRQ.xsd is inside orch

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

2012-05-25 Thread pitani
I have 2 schema files. Sabre_OTA_Profile.xsd and Sabre_OTA_ProfileOrchestratedReadRQ.xsd. Sabre_OTA_ProfileOrchestratedReadRQ.xsd is inside orchestrated folder. EX: ./Sabre_OTA_Profile.xsd ./orchestrated/Sabre_OTA_ProfileOrchestratedReadRQ.xsd In Sabre_OTA_ProfileOrchestratedReadRQ.xsd, I have..

Re: Validation error after upgrade from Camel 2.8.3 to 2.9.0

2012-05-25 Thread Claus Ibsen
On Fri, May 25, 2012 at 3:56 PM, pitani wrote: > Hi, I am also getting similar problem. > Is this issue resolved in Camel 2.9.0 or 2.9.2? > As we say on this page http://camel.apache.org/support You should try upgrading the releases, to see if its solved there. > > > -- > View this message in

Re: Validation error after upgrade from Camel 2.8.3 to 2.9.0

2012-05-25 Thread pitani
Hi, I am also getting similar problem. Is this issue resolved in Camel 2.9.0 or 2.9.2? -- View this message in context: http://camel.465427.n5.nabble.com/Validation-error-after-upgrade-from-Camel-2-8-3-to-2-9-0-tp5472816p5713551.html Sent from the Camel - Users mailing list archive at Nabble.co

RE: Unit testing a method with Exchange as a Param

2012-05-25 Thread Christian Müller
You are welcome. And replace in my last post CamelContext ctx = new CamelContext(); with CamelContext ctx = new DefaultCamelContext(); It was a bit too late yesterday... ;-) Best, Chrostian Sent from a mobile device Am 25.05.2012 14:15 schrieb "Gershaw, Geoffrey" < geoffrey.gers...@credit-suisse.

Re: Handling exception when routes are processed

2012-05-25 Thread Nafees
Thanks for your quick response as usual, I am trying to work on this. -- View this message in context: http://camel.465427.n5.nabble.com/Handling-exception-when-routes-are-processed-tp5713541p5713545.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Handling exception when routes are processed

2012-05-25 Thread Claus Ibsen
Hi See this FAQ. http://camel.apache.org/why-do-my-file-consumer-not-pickup-the-file-and-how-do-i-let-the-file-consumer-use-the-camel-error-handler.html On Fri, May 25, 2012 at 1:41 PM, Nafees wrote: > HI.. > > I am using the following route to consume files from FTP server and store in > a lo

RE: Unit testing a method with Exchange as a Param

2012-05-25 Thread Gershaw, Geoffrey
Christian, You are a gentleman and a scholar. I need to be a better Camel Rider. I didn't realize how easy it is to Unit test. I thought I'd have to launch the whole Spring dependency. Thanks again Geoffrey A. Gershaw Credit eTrading Dev - RDO 1 919 994 6412 -Original Message- From:

Handling exception when routes are processed

2012-05-25 Thread Nafees
HI.. I am using the following route to consume files from FTP server and store in a local folder. When the directory name is not correct, it raises this exception - org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed: 550. I want to handle them. from(ftpUrl

Re: zip file best practices

2012-05-25 Thread Tyler Durvik
I am working on a solution for this that I can contribute to Camel. I have the files being unzipped in a processor. The processor then sets a header value which is a comma-separated string listing the files. The problem I see is that I want the splitter to generate a new Camel Message object for

Re: Camel OSGi services component

2012-05-25 Thread Michael Süess
Hi very cool component to implement the observer pattern in camel blueprint just a small question: how can i have a async calling of the listeners? (mutlicast is sync per definition)? On 23.05.2012 18:29, szh.s...@gmail.com wrote: Hi James, s are perfect if you have a single processo

Re: Overwrite blueprint properties in camel blueprint tests

2012-05-25 Thread Michael Süess
Hi Yes, this solves the problem of restarting the route after a config change in karaf/servicemix. But my problem is how to set the properties in a junit test using CamelBlueprintTestSupport. - where to put my config file? - or can i set the properties programmatically in the junit test cl