Re: Camel-Hazelcast: How to setup multiple nodes?

2014-03-18 Thread doug5791
I started up a cluster of nodes running from localhost and then started my camel-hazelcast route which appeared to join into the existing cluster with no problem. After populating a List in Hazelcast I wrote a quick Hazelcast client to check that the data was stored properly. It was. Thanks for

Camel-Hazelcast: Adding values into a Map

2014-03-18 Thread doug5791
I am dealing with data in a route where the body of the exchange is a single string. I have been able to add this string from the body of the exchange to the Hazelcast grid, however, I would like to add the string to a Map instead of a list. The documentation I found here

Re: update HTTP request using previous response

2014-03-18 Thread Claus Ibsen
Hi You likely need to reset the stream cache to be able to re-read it again org.apache.camel.StreamCache#reset On Tue, Mar 18, 2014 at 3:43 AM, aidatechinc hfao...@aidatech.com wrote: Thanks for taking the time to respond. We did write a bean to handle the message, but we realize that since

Re: Camel-Hazelcast: Adding values into a Map

2014-03-18 Thread Stephan Burkard
On the page you mentioned is an example request that is done with a producer template: template.sendBodyAndHeader(direct:[put|get|update|delete|query], my-foo, HazelcastConstants.OBJECT_ID, 4711); my-foo = message body HazelcastConstants.OBJECT_ID = message header name 4711 = message header

Re: how to catch Errors?

2014-03-18 Thread sekaijin
Hi. sorry for the late reply. This is the code that I wrote. but I have not been able to verify that it worked. Thank A + JYT -- View this message in context: http://camel.465427.n5.nabble.com/how-to-catch-Errors-tp5748279p5749018.html Sent from the Camel - Users mailing list archive at

Question about end of life date for camel library

2014-03-18 Thread Wai Lik Chong
Hi, I have been using camel 2.1.0 in my project. I would like to know when is the end of life support for the library version I am using. I have been checking from the homepage https://camel.apache.org but not able get any information. In addition, I would also like to know the end of life date

Re: Question about end of life date for camel library

2014-03-18 Thread Claus Ibsen
Hi See http://camel.apache.org/download When Camel 2.13.0 is released (soon) then Camel 2.11.x is retired and no longer active supported. The rule of thumb is that we support 2 patch branches back. If you are looking for a longer support timeframe, you can try commercial support

Camel routing using Predicates

2014-03-18 Thread arko1983
My code are as follows. public void camelRedirect(String Rqvalue,String oprcode) { final String urlOprn=oprcode;// final CamelContext context = new DefaultCamelContext(); try {

Re: Camel routing using Predicates

2014-03-18 Thread Claus Ibsen
Hi ${oprcode} is not a valid simple function. http://camel.apache.org/simple On Tue, Mar 18, 2014 at 10:24 AM, arko1983 arko1...@gmail.com wrote: My code are as follows. public void camelRedirect(String Rqvalue,String oprcode) { final String urlOprn=oprcode;//

JMS Message Expiration period

2014-03-18 Thread Jose
Hi, I am sending messages to a queue using Camel jms component. I want to specify an expiration period so that if a message is not consumed within that period then the message should be sent to an error queue. I have been investigating on Internet but it is still not very clear to me. Do I

Re: Question about end of life date for camel library

2014-03-18 Thread Claus Ibsen
On Tue, Mar 18, 2014 at 11:31 AM, Wai Lik Chong wailik.mo...@gmail.com wrote: Hi Claus, Thanks alot for answer. Is this rule of thumb will always apply to all other apache library such as apache abdera, axiom etc? No each Apache projects has their own policy. Some projects only support

Testing new ScheduledBatchPollingConsumer

2014-03-18 Thread SteveCam
Hello, I am trying to write a new Camel Component by extending the ScheduledBatchPollingConsumer. Its for the Amazon MWS Orders API, I now want to test it with a Mock provided by Amazon in their download. I cannot figure what I need to do to achieve this. In my test class I have a setUp as

JavaFX + Spring + Camel + Maven

2014-03-18 Thread Maurice
Dear Community, i am trying to build a JavaFX standalone application using Spring as DI an Camel for routing. The application is working fine with Spring only using a modified FXML Loader: This is the context XML : As soon as i uncomment the camelcontext tags i get the following exception:

Re: JavaFX + Spring + Camel + Maven

2014-03-18 Thread Maurice
To answer my own question, i am missing the entries from the spring.handlers and spring.schemas files from the camel-spring jar in my application Jar. Now how do i do that? -- View this message in context: http://camel.465427.n5.nabble.com/JavaFX-Spring-Camel-Maven-tp5749039p5749040.html Sent

Re: sjms and multiple threads

2014-03-18 Thread Bengt Rodehav
Here is some feedback. It seems like Weblogic is not the bottleneck. I can write about 300 messages per second and read about 1400 messages per second. In fact, as long as I use at least three threads, Camel does not seem to be the problem. It's the unmarshalling of the XML file that takes 100

Seeing Info message all over log file related to Woodstox

2014-03-18 Thread Nair, Madhu
Hi, I see the following info message all over the log file and it occurs only in one environment and not in the other. I am assuming it occurs in one environment because of the randomness with which the server loads the jar files. The message is:- 2014-03-06 22:23:47,401 | INFO |

Re: Question about end of life date for camel library

2014-03-18 Thread Wai Lik Chong
Hi Claus, Thanks for your information. That is awesome! Yes, i am currently still using camel 2.1.0 in the project (never been upgraded since about 5 years ago). I'm looking into the camel upgrade now, therefore i want assess which camel version should go for based on the impact and support

Polling Email Component - Runtime Error

2014-03-18 Thread contactreji
Hi I have a route as follows * route from uri=imaps://imap.gmail.com?username=mygmai...@gmail.comamp;password=mypasswordamp;delete=falseamp;unseen=trueamp;consumer.delay=6amp;mapMailMessage=trueamp;delete=true /

Re: JavaFX + Spring + Camel + Maven

2014-03-18 Thread Maurice
The solution is not a beauty but works with maven and Netbeans sofar: -- View this message in context: http://camel.465427.n5.nabble.com/JavaFX-Spring-Camel-Maven-tp5749039p5749046.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Polling Email Component - Runtime Error

2014-03-18 Thread Claus Ibsen
Because you use seda to hand off processing the mail. Use direct instead, or use wait=always for seda to ensure the mail has been processed, when you at the end is marking the mail as deleted etc. That work must happen on same thread and after you have processed the mail. On Tue, Mar 18, 2014 at

Re: Polling Email Component - Runtime Error

2014-03-18 Thread contactreji
Hi Claus Thanks for that quick help. I have modified my route file as follows and passed the Exchange into a processor class where I process the contents. * route from

RE: Seeing Info message all over log file related to Woodstox

2014-03-18 Thread Nair, Madhu
Thanks for the quick response. I do have the woodstox jar in the classpath but still get this message. Do I force Camel to use the woodstox parser by setting the system property javax.xml.stream.XMLInputFactory to the Woodstox parser? -Original Message- From: Claus Ibsen

Re: Seeing Info message all over log file related to Woodstox

2014-03-18 Thread Claus Ibsen
Hi Yeah Camel uses javax.xml.stream.XMLInputFactory#newInstance() to get the factory, and that uses that system property to lookup the factory. So you can switch to use woodstock then. Though that is for the entire JVM. Otherwise it ought to fallback to JAR classpath scanning. But I guess

Re: Is RAW() required in message endpoint URI with percent-endcoded special characters?

2014-03-18 Thread Phil Mocek
On March 13, 2014, Phil Mocek wrote: Must percent-encoded special characters in a Camel message endpoint URI be wrapped in RAW() in order for Camel to correctly process the URI? Nobody answered my question. Off-list last week, I e-mailed Camel contributor Claus Ibsen, who is named in relevant

Re: Polling Email Component - Runtime Error

2014-03-18 Thread Claus Ibsen
Hi Yeah that is a bug in the java mail JAR. You may try upgrading that if its fixed in a newer release. Maybe its only a single email that has this problem? You can try deleting it so you can poll the next. You can also tell Camel to not map the mail message with mapMailMessage=false, see more

Re: Is RAW() required in message endpoint URI with percent-endcoded special characters?

2014-03-18 Thread Claus Ibsen
On Tue, Mar 18, 2014 at 5:03 PM, Phil Mocek phil-li...@mocek.org wrote: On March 13, 2014, Phil Mocek wrote: Must percent-encoded special characters in a Camel message endpoint URI be wrapped in RAW() in order for Camel to correctly process the URI? Nobody answered my question. Off-list last

Re: Polling Email Component - Runtime Error

2014-03-18 Thread contactreji
Hi Claus I upgraded the Camel version as well as the camel-mail to version2.11.1/version I set the mapMailMessage=false too. I followed your advice at the link https://issues.apache.org/jira/browse/CAMEL-6154 by setting closeFolder=false Still am stuck up with the error as below *2014-03-18

Re: Polling Email Component - Runtime Error

2014-03-18 Thread contactreji
Hi Claus I am getting a new set of errors in log now.. There seems to be something different here. This happended when I had set mapMailMessage=false Have any idea whats the fix from this point onwards? * 2014-03-18 22:22:11,966 [/imap.gmail.com] WARN MailConsumer - Caused by:

RE: Seeing Info message all over log file related to Woodstox

2014-03-18 Thread Nair, Madhu
Thanks for the quick response. Will take a look. -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Tuesday, March 18, 2014 12:01 PM To: users@camel.apache.org Subject: Re: Seeing Info message all over log file related to Woodstox Hi Yeah Camel uses

Re: Polling Email Component - Runtime Error

2014-03-18 Thread Claus Ibsen
Hi In Camel 2.13 you can set context.setAllowUseOriginalMessage(false) which could help with this problem. For older releases it seems a defensive copy of the mail is done as part of UoW and there is a failure in the attachments of the mail message, from the NPE in java mail. You can try

Question: generated keys and SQL component

2014-03-18 Thread Matt Payne
Greetings! Would you please help me find an example of using the SQL[1] component and inserting into a table where the primary key is automatically generated? This is documented as possible with the JDBC component[2,3]: If you insert data using SQL INSERT, then the RDBMS may support auto

Re: camel cxf https

2014-03-18 Thread chaij
I can only get the wsdl using localhost. How can I get to it from other host? The following address works. http://localhost:9002/webservices/upload?wsdl But if I use a IP address, it won't work http://10.2.152.146:9002/webservices/upload?wsdl Thanks! -- View this message in context:

Re: camel cxf https

2014-03-18 Thread Willem Jiang
Did you try to set the address with the host 0.0.0.0?  If so you can access the service with localhost or  10.2.152.146 from you local box at the same time. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese)

Re: Question about end of life date for camel library

2014-03-18 Thread Willem Jiang
Hi, We only provide patch release the last 2 major release, which means you can at least have one year community support in Camel. If we release Camel 2.13.0, we will retire the Camel 2.11.x fix branch. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog:

Re: update HTTP request using previous response

2014-03-18 Thread aidatechinc
Geat. thanks for the tip. The loop route actually did the trick. On 03/18/2014 01:30 AM, Claus Ibsen-2 [via Camel] wrote: Hi You likely need to reset the stream cache to be able to re-read it again org.apache.camel.StreamCache#reset On Tue, Mar 18, 2014 at 3:43 AM, aidatechinc [hidden

Re: update HTTP request using previous response

2014-03-18 Thread aidatechinc
thanks that did the trick. On 03/17/2014 11:16 AM, Stephan Burkard [via Camel] wrote: You could perhaps use the Loop EIP: https://camel.apache.org/loop.html It uses the result of the previous loop iteration for the next. You have to define the criteria to stop the loop (for example as

Re: Is RAW() required in message endpoint URI with percent-endcoded special characters?

2014-03-18 Thread Willem Jiang
Hi Phil, You can find the special characters which we handled in camel here[1], maybe we need to revisit the unsafe characters again in new version of Camel. [1]  https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/util/UnsafeUriCharactersEncoder.java --

Updating state in a route.

2014-03-18 Thread Corey Nolet
I am working on a throttling system for my ingest that will check to see if my upstream JMS broker is backed up to a particular threshold and, if it is backed up, begin to route messages to disk instead of sending them to the database. I'm wondering the best way to implement this using the

Camel HDFS Component Documentation

2014-03-18 Thread Corey Nolet
I am currently looking to use the camel hdfs component so that I can have my camel route output to a sequence file. I dug around the documentation but didn't see a good way (or any useful examples) of how to format my exchange so that the output would be correclty written to the sequence file. I

Re: Camel CXF Endpoint Performance - Threading

2014-03-18 Thread Willem.Jiang
Hi, The AsyncProcessorHelper.proccess() method just provides a sync processing invocation which is based on the Async API. I need to know some detail about your route which makes camel does that change. It looks like you are using direct endpoint to route the message to next camel route, as

Re: JMS Message Expiration period

2014-03-18 Thread Willem.Jiang
timeToLive is the uri option, you can set it on the jms endpoint which you want to route the message from camel route to jms broker. Willem -- View this message in context: http://camel.465427.n5.nabble.com/JMS-Message-Expiration-period-tp5749032p5749075.html Sent from the Camel - Users

Re: JavaFX + Spring + Camel + Maven

2014-03-18 Thread Willem.Jiang
Thanks for sharing the solution with us. Do you to need wrap up a new application jar for JavaFX to use? Why does the camel-spring.jar be used directly? -- View this message in context: http://camel.465427.n5.nabble.com/JavaFX-Spring-Camel-Maven-tp5749039p5749076.html Sent from the Camel -

Re: Camel HDFS Component Documentation

2014-03-18 Thread Willem Jiang
Yeah, you are right. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On March 19, 2014 at 10:51:44 AM, Corey Nolet (cjno...@gmail.com) wrote: I am currently