Re: Unable to stop the route

2013-12-15 Thread Claus Ibsen
Then set a low timeout value so the route is stopped quicker and forced being stopped. See details at http://camel.apache.org/graceful-shutdown.html On Sat, Dec 14, 2013 at 1:48 PM, srikanthsettivari wrote: > Hi, > I have configured the route, like > > from("jms:queue:queue1") >

Re: Configuration to use camel salesforce component

2013-12-15 Thread Willem Jiang
We don’t have the salesforce share account. You need to have signup[1] first. https://events.developerforce.com/signup -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http://jnn.java

Re: Apache Camel multithread processing

2013-12-15 Thread Preben.Asmussen
You could also change the stored proc to return a batch of messages, or use a bean to call the stored proc. n times, and then return the result as a list or iterator from the bean. Use the splitter to iterate over the result for further processing. -- View this message in context: http://camel.

Re: Configuration to use camel salesforce component

2013-12-15 Thread shmahajan
Thanks Claus.I will take a look at test code. To establish conectivity with salesforce, do i need to make any configurartion in my salesforce account? Is any sample account provided by camel to test salesforce connectivity similar to what is done for twitter? I am new to camel as well as salesfor

Re: ConsumerTemplate is not fetching data in insertion Order

2013-12-15 Thread Dayakar
Hi Claus,Thanks for your reply.I want to add some more information.We are having a route which is configured with parallel Processing.from("jms:queue:jobQueue" + "?" + Constants.CONCURRENT_CONSUMERS + "=" + (Constants.CONCURRENT_CONSUMERS) + "&"

Re: Apache Camel multithread processing

2013-12-15 Thread astorath
Any updates? -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-multithread-processing-tp5741383p5744808.html Sent from the Camel - Users mailing list archive at Nabble.com.

Unable to stop the route

2013-12-15 Thread srikanthsettivari
Hi, I have configured the route, like from("jms:queue:queue1") .transacted() .process(new Processmyprocess()) .to("jms:queue:queue2"); At the time of processing the messages from queue1 to end queue2, if w

Re: IBM MQ

2013-12-15 Thread Willem Jiang
You can call the IBM MQ API in your bean. Or you can configure the JMSComponent[1] by setting up the connection for the remote IBM MQ. [1]http://camel.apache.org/jms.html -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot

Re: ConsumerTemplate is not fetching data in insertion Order

2013-12-15 Thread Dayakar
Hi Claus, We are using Camel 2.9.2 version. -- View this message in context: http://camel.465427.n5.nabble.com/ConsumerTemplate-is-not-fetching-data-in-insertion-Order-tp5744663p5744805.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Passing value from one bean to one bean

2013-12-15 Thread Claire
Hello, Thank you for your reply but I think there's something wrong with your message. I don't get any message. -- View this message in context: http://camel.465427.n5.nabble.com/Passing-value-from-one-bean-to-one-bean-tp5744722p5744804.html Sent from the Camel - Users mailing list archive at

IBM MQ

2013-12-15 Thread keepcl123
I have a spring context application. I want to use camel in order to send a text message from a bean in my application to a remote IBM MQ. can someone give me an example? Thx -- View this message in context: http://camel.465427.n5.nabble.com/IBM-MQ-tp5744802.html Sent from the Camel - Users ma

Re: How to call remote soap web service from a application using apache camel

2013-12-15 Thread Christian Müller
Did you checked our examples page? http://camel.apache.org/examples.html Check out the CXF examples... Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https://www.li

Re: camel for "short" programs

2013-12-15 Thread Romain Manni-Bucau
Not really true since it prevents from using camel consumers which doesn't support it so it makes camel not as useful as it could. Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau

Re: camel for "short" programs

2013-12-15 Thread Claus Ibsen
You can use route policy / event notifier or what not to know when there is nothing more to process and then signal to the main thread to stop camel and terminate the jvm. No hacks is needed just use the API there is already there. On Sun, Dec 15, 2013 at 6:57 PM, Romain Manni-Bucau wrote: > If

Re: ConsumerTemplate is not fetching data in insertion Order

2013-12-15 Thread Claus Ibsen
What Camel version and what JMS broker are you using? On Thu, Dec 12, 2013 at 11:11 AM, Dayakar wrote: > Hi, > > I have some messages in the JMS Queue and if i fetch the message from Queue > by using > consumerTemplate.receiveBodyNoWait("jms:queue:destinationEndPoint", > String.class); > > By i

Re: camel for "short" programs

2013-12-15 Thread Romain Manni-Bucau
If you look camel architecture it is great but not usable for batches *out of the box*. What I find "sad" is the code needed to support this (common) use case shouldn't be that important: CamelContext ctx = new ...(); ctx.setSingleShort(true); // or singleExecution(); maybe This would set the sam

Re: camel for "short" programs

2013-12-15 Thread John D. Ament
Romain, What do you mean? On Sat, Dec 14, 2013 at 4:00 PM, Romain Manni-Bucau wrote: > Hmm, so if I understand you camel will not solve it. I find it sad cause > camel pipeline and the numerous components are 2 tempting things for > batches but the fact to be able to process what is here when st

Re: How to call remote soap web service from a application using apache camel

2013-12-15 Thread contactreji
Hi Reena U need to use CXF component for doing the same. Here i am following the WSDL first approach. i.e I got the wsdl file from the service provider. The wsdl file which I got is as follows. * http://schemas.xmlsoap.org/wsdl/"; xmlns:tns="http://xmlns.example.com/1386864564116"; xmlns:soap="ht

RE: How to call remote soap web service from a application using apache camel

2013-12-15 Thread reena upadhyay
Can anybody guide me on this? > From: reena2...@outlook.com > To: users@camel.apache.org > Subject: How to call remote soap web service from a application using apache > camel > Date: Fri, 13 Dec 2013 18:36:03 +0530 > > Hi, > > I have a apache cxf soap service deployed on a web container tomca

Re: Access another CamelContext

2013-12-15 Thread Claus Ibsen
Yeah or use JMX to stop the route on the other bundle. On Sun, Dec 15, 2013 at 12:33 PM, Richard Kettelerij wrote: > If you're using blueprint the CamelContext is already automatically > registered in the OSGi Service Registry. Just type 'ls' in Karaf and you'll > notice there's a CamelContext

Re: ConsumerTemplate is not fetching data in insertion Order

2013-12-15 Thread Richard Kettelerij
A JMS queue is asynchronous by design, so it makes perfect sense insertion order isn't maintained since ordering isn't guaranteed. On Thu, Dec 12, 2013 at 11:11 AM, Dayakar wrote: > Hi, > > I have some messages in the JMS Queue and if i fetch the message from Queue > by using > consumerTemplate

Re: Access another CamelContext

2013-12-15 Thread Richard Kettelerij
If you're using blueprint the CamelContext is already automatically registered in the OSGi Service Registry. Just type 'ls' in Karaf and you'll notice there's a CamelContext service associated with each bundle. So yes, you can just lookup the CamelContext of another bundle and start/stop a particul

Re: JSR-233 and Camel-Script in OSGi environment (servicemix)

2013-12-15 Thread Richard Kettelerij
I think the issue is resolved if you just drop the camel-script dependency (feature in Karaf terms). On Sat, Dec 14, 2013 at 4:05 PM, Stephan Burkard wrote: > Hi Richard > > Yes I am referring to the Simple language. I was surprised that it tries to > load JavaScript, and if I had explicitly us

Re: Configuration to use camel salesforce component

2013-12-15 Thread Claus Ibsen
A good idea could be to take a look at some of the unit tests of camel-salesforce in the source code On Sat, Dec 14, 2013 at 7:44 PM, shmahajan wrote: > Hi, > I have created maven project to create conectivity with salesforce. > Below is my camel context file. I have set dependency for all requi

Re: Parallel processing and SQL Consumer

2013-12-15 Thread Claus Ibsen
Hi The aggregator is a stateful pattern, which means that when the message has been accepted by the aggregator, that route will continue routing; and thus why the consumer does not "wait" for the aggregator. If you want to learn more about this eip in detail then check the Camel docs, and the Cam