How to contribute to documentation?

2013-11-01 Thread Carsten Ringe
Hi guys, I'm using Camel a lot in my work recently and I stumbled upon some examples in the documentation that had typos or where some lines of code were missing to have a copy-n-paste'able code snippet right from the website. Now my question is: how I can contribute to the documentation?

Re: How to contribute to documentation?

2013-11-01 Thread Claus Ibsen
Hi Yes print, sign, and email a scan of the ICLA to Apache. Then your name will show up on this page http://people.apache.org/committer-index.html And when that does, then create an account on the Camel wiki. eg click that edit button in the bottom, and create a new account (if you dont have)

Re: Namespace list - blueprint - xpath

2013-11-01 Thread Nurali Techie
Thanks Aki for your thoughts .. Yes, I should call setNamespaces() .. but I need namespace Map which I can pass to .. So, my question remain same .. is there any API or service .. which I can use to get Namespace Map .. And I hv Camel Exchange and Camel Endpoint object with me .. Parsing

Re: RejectedExecutionException from jmsProducer while using global onException handler

2013-11-01 Thread Preben.Asmussen
Forget it - just figured it out as not a problem besides on my side :-) -- View this message in context: http://camel.465427.n5.nabble.com/RejectedExecutionException-from-jmsProducer-while-using-global-onException-handler-tp5742479p5742486.html Sent from the Camel - Users mailing list archive

Re: JAX-RS and Camel - Except 1st QueryParameter all others are null

2013-11-01 Thread arunodhaya80
To add, the exchange.getIn().getHeader(start) in the processor doesn't work either. -- View this message in context: http://camel.465427.n5.nabble.com/JAX-RS-and-Camel-Except-1st-QueryParameter-all-others-are-null-tp5742470p5742487.html Sent from the Camel - Users mailing list archive at

Camel HDFS component and Hadoop 2

2013-11-01 Thread ojenikoh
Hi,I was wondering if anyone has had any success using the camel hdfs component with a hadoop 2.x cluster in servicemix. I got an IPC version misatch issue when I tried this. I forked the camel-hdfs component, modified the hadoop dependencies and with very little change to the component got it

How to create a basic camel project with mvn for eclipse (for dummies)?

2013-11-01 Thread pmp.martins
Hello all, as you can see I am quite a beginner using Camel. I am trying to create a very basic Eclipse project using Camel and Maven but somehow I always end up with errors and it simply doesn't seem to work. - I have tried copying folders from other projects and change the name but then maven

Re: JAX-RS and Camel - Except 1st QueryParameter all others are null

2013-11-01 Thread Sergey Beryozkin
Hi, Can you please double check that camelMessage.getHeader(Exchange.HTTP_QUERY, String.class) returns the complete query string ? I wonder if it's an issue with SimpleCxfRsBinding#bindParameters ? Raul, can you please comment ? Thanks, Sergey On 01/11/13 02:53, arunodhaya80 wrote: Hi, I

Re: JAX-RS and Camel - Except 1st QueryParameter all others are null

2013-11-01 Thread Sergey Beryozkin
Hi, Can you please double check that camelMessage.getHeader(Exchange.HTTP_QUERY, String.class) returns the complete query string ? I wonder if it's an issue with SimpleCxfRsBinding#bindParameters ? Raul, can you please comment ? Thanks, Sergey On 01/11/13 02:53, arunodhaya80 wrote: Hi, I

Re: Migrate Apache Camel Endpoints

2013-11-01 Thread pmp.martins
Thanks, I am working on it. I have a few questions however, why do I need to use ActiveMQ? I can I not simply use the JMS? And do I really need fuse? I know my processes may be in different machines, but isn't Camel supposed to be able to deal with that? -- View this message in context:

Re: JAX-RS and Camel - Except 1st QueryParameter all others are null

2013-11-01 Thread Sergey Beryozkin
By the way, the workaround is to access all the query parameters from JAX-RS UriInfo; we'll still need to resolve this issue though Cheers, Sergey On 01/11/13 12:44, Sergey Beryozkin wrote: Hi, Can you please double check that camelMessage.getHeader(Exchange.HTTP_QUERY, String.class)

Re: How to contribute to documentation?

2013-11-01 Thread Carsten Ringe
Am 2013-11-01 09:33, schrieb Claus Ibsen: And when that does, then create an account on the Camel wiki. eg click that edit button in the bottom, and create a new account (if you dont have) So when your name is on the ICLA list above, then we can grant your account edit rights. Ok, this happened

Re: How to contribute to documentation?

2013-11-01 Thread James Carman
It helps when you have someone on the Camel PMC that does the ICLA filings. :) On Fri, Nov 1, 2013 at 9:35 AM, Carsten Ringe cars...@kopis.de wrote: Am 2013-11-01 09:33, schrieb Claus Ibsen: And when that does, then create an account on the Camel wiki. eg click that edit button in the

Re: Camel-HTTP4:2.11.2:ContentType does not returns multipart/form-data;boundary=---------------------------j2radvtrk

2013-11-01 Thread Amit
I have created a JIRA ticket CAMEL-6926 and attached a patch. Thanks, Amit Patel -- View this message in context: http://camel.465427.n5.nabble.com/Camel-HTTP4-2-11-2-ContentType-does-not-returns-multipart-form-data-boundary-j2radvtrk-tp5742407p5742496.html Sent from the Camel - Users

Re: How to create a basic camel project with mvn for eclipse (for dummies)?

2013-11-01 Thread John Dubchak
Hi Pedro, Assuming you're using maven3, you can use the interactive create archetype process: $ mvn archetype:generate -Dfilter=org.apache.camel.archetype: This will allow you to pick the type of camel project you want to create, the version of camel you're using and set the group,

Re: How to create a basic camel project with mvn for eclipse (for dummies)?

2013-11-01 Thread Babak Vahdat
Hi Welcome to the Camel community. Actually there's nothing you should do manually, e.g. creating a pom.xml by yourself. Take a look at the documentation to see how to make use of the Camel archetypes: http://camel.apache.org/camel-maven-archetypes.html Googling a bit you would also find bunch

Re: How to create a basic camel project with mvn for eclipse (for dummies)?

2013-11-01 Thread pmp.martins
I am reading the Camel in Action book, however it doesn't teach me how to create projects. The code is all done for me and all I have to do is to run it. I have never used Camel not Maven before, so I have no idea on how to use such tools. As for archtypes, I have no idea what that is. Do you

Java DSL and OSGi Question

2013-11-01 Thread John Dubchak
Hi, I am in the process of building routes, starting with the interactive archetypes, and was wondering why there are archetype projects for camel-blueprint, spring-dm, and cxf-contract-first-blueprint that are all OSGi ready, but nothing for a Java DSL project. Is it possible to create an

Re: How to create a basic camel project with mvn for eclipse (for dummies)?

2013-11-01 Thread John Dubchak
Pedro, To simplify it, initially think of maven as a black box - the interactive archetype will help you create the projects you need without having to learn the details of maven. This will give you the opportunity to focus on Camel. You may also want to consider picking up a copy of

Re: How to create a basic camel project with mvn for eclipse (for dummies)?

2013-11-01 Thread Claus Ibsen
Welcome to the community. Just a comment on the CiA book. Yeah somehow the chapter about how to create new projects landed as chapter 11. Though we did give a little hint in the preface that readers should check out this chapter earlier if they are not familiar with Maven etc. So a Maven

Re: JAX-RS and Camel - Except 1st QueryParameter all others are null

2013-11-01 Thread arunodhaya80
Thanks a lot for helping out and the heads-up. Yes, you are right. I could get the query portion alone using: String query = exchange.getIn().getHeader(Exchange.HTTP_QUERY, String.class); Taking up from your hint, I am doing the following and my flow looks complete : ***Interface ***

Re: Java DSL and OSGi Question

2013-11-01 Thread Claus Ibsen
Yeah When you use OSGi its recommended to use the blueprint archetype that creates a blueprint xml file. This is needed as then you let blueprint bootstrap the application. If you dont have that, its much more manual work to do that in OSGi where you need to use an OSGi Service Activator and 10

Re: How to contribute to documentation?

2013-11-01 Thread Claus Ibsen
Hi Karma granted. So thanks for wanting to help with the documentation. Hope that its jus the first step for helping in other areas as well. On Fri, Nov 1, 2013 at 2:35 PM, Carsten Ringe cars...@kopis.de wrote: Am 2013-11-01 09:33, schrieb Claus Ibsen: And when that does, then create an

Re: Migrate Apache Camel Endpoints

2013-11-01 Thread Willem Jiang
Camel doesn't provide any JMS broker, if you use the camel-jms component, you need to setup a JMS broker (server) to let camel-jms connect. Fuse provides the HA and Failover feature which camel doesn't provide. Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web:

Re: How can I avoid setting namespace prefixes in xpath expressions in camel?

2013-11-01 Thread toomanyedwards
I thought I made it clear in my original question, but I guess not. What I'm trying to is *not* have to specify in my xpath. /nsprefix:book/nsprefix:chapter is extremely cluttered and redundant. It be much better if we could just specify: /book/chapter and tell the processor what the

Re: How to create a basic camel project with mvn for eclipse (for dummies)?

2013-11-01 Thread pmp.martins
Hey, thanks for all the help guys! I am now reading chapter 11 of the book but I am having some problems using the m2e eclipse plugin. The problem is that when I try to create a maven project, the camel archetypes don't appear. I decided to take 4 screenshots to save your time and and so you can

Re: How can I avoid setting namespace prefixes in xpath expressions in camel?

2013-11-01 Thread Claus Ibsen
Hi You cannot do that, as its not supported by the xpath expression api that comes with java. Many before you have tried. You can google/search the web about this. Though you can use local-name() in the xpath expression, then you can avoid the namespace prefix binding. But it clutters the xpath

Re: How to create a basic camel project with mvn for eclipse (for dummies)?

2013-11-01 Thread Claus Ibsen
Hi It may take a while for Eclipse to index the maven archetypes I think. You can also try on that filter wizard page, to change the catalog. And btw what version of Eclipse do you use? The later release have the m2e plugin out of the box, so you didnt have to install it. On Fri, Nov 1, 2013

Re: JAX-RS and Camel - Except 1st QueryParameter all others are null

2013-11-01 Thread Sergey Beryozkin
Hi, thanks for making it work; You might want to reuse (CXF) JAXRSUtils.getStructuredParams(query, ), this will return JAX-RS MultivaluedMap which will hold list values, and will take care of parameters having multiple values (a=1a=2, etc). I'm still not sure how it can be resolved with

Re: JAX-RS and Camel - Except 1st QueryParameter all others are null

2013-11-01 Thread arunodhaya80
Wow. Thanks for the JAXRSUtils pointer. Works like a charm. For the benefit of everybody : class ParameterProcessor implements Processor { @Override public void process(Exchange exchange) throws Exception { MultivaluedMapString, String stringStringMap =

Re: How to create a basic camel project with mvn for eclipse (for dummies)?

2013-11-01 Thread pmp.martins
Well, as stated in my previous images, I am using eclipse Kepler, which I think it is the latest version if I remember correctly. This is not a loading time problem, eclipse loads all the available archetypes almost instantly. I have no idea why eclipse is simply being stubborn :S -- View this

Re: How to create a basic camel project with mvn for eclipse (for dummies)?

2013-11-01 Thread pmp.martins
Alright, now I am getting desperate. After trying (and failing) with Eclipse I decided to be a good boy and follow the Maven section in the Camel in Action book. So, I created a new project with Maven using: mvn archetype:create \ -DarchetypeGroupId=org.apache.camel.archetypes \

Re: How to create a basic camel project with mvn for eclipse (for dummies)?

2013-11-01 Thread Claus Ibsen
It may affect what JDK version you use. Camel 2.5.0 doesn't support Java 7. So I suggest to use the latest Camel release instead. It support Java 6 and 7. -DarchetypeVersion=2.12.1 \ On Fri, Nov 1, 2013 at 5:53 PM, pmp.martins pmp.mart...@campus.fct.unl.pt wrote: Alright, now I am getting

Re: JAX-RS and Camel - Except 1st QueryParameter all others are null

2013-11-01 Thread Raul Kripalani
Hey Sergey, I'll take a look. Thanks for providing a workaround to the user so quickly! ;-) Regards, *Raúl Kripalani* Apache Camel PMC Member Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani

Re: How to create a basic camel project with mvn for eclipse (for dummies)?

2013-11-01 Thread pmp.martins
It still doesn't work. Now when I use the command: mvn archetype:create -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-java -DarchetypeVersion=2.12.1 -DgroupId=camelinaction -DartifactId=order-router I get the following ERRORS

Re: JAX-RS and Camel - Except 1st QueryParameter all others are null

2013-11-01 Thread Raul Kripalani
Ok, I see what's happening here. The SimpleConsumer binding style is truly injecting the parameters into Camel IN message headers with names: q, start, size. If you add a log all endpoint just after the CXFRS consumer, you will see the parameters sitting there as message headers:

Re: JAX-RS and Camel - Except 1st QueryParameter all others are null

2013-11-01 Thread Sergey Beryozkin
Thanks Raul for your help Cheers, Sergey On 01/11/13 17:18, Raul Kripalani wrote: Hey Sergey, I'll take a look. Thanks for providing a workaround to the user so quickly! ;-) Regards, *Raúl Kripalani* Apache Camel PMC Member Committer | Enterprise Architect, Open Source Integration

preserve headers properties in split?

2013-11-01 Thread javamonkey79
With following: split tokenize token=\r\n / setOutHeader headerName=caseCountconstant42/constant/setOutHeader setHeader headerName=caseCountconstant42/constant/setHeader

Re: Camel transacted route

2013-11-01 Thread Baris Acar
 the issue is that the Transaction Handling not happening and is rolling back the transactions on exceptions. What behaviour do you want/expect? Rolling back on exception is a feature of using transactions. That's the behaviour  that's usually wanted. — Sent from Mailbox for

Re: How to create a basic camel project with mvn for eclipse (for dummies)?

2013-11-01 Thread pmp.martins
Well, I want to thank everyone for their hard work in helping me. I am posting here because I found a solution to the problem of creating a Camel project using Maven. I have to admit, I pretty much lost an entire day around something that should have taken only a few minutes to achieve. Even

Re: Namespace list - blueprint - xpath

2013-11-01 Thread Nurali Techie
Hi All, I have got the solution .. :) I have used xpath expression to get all namespace.  Here is the part of code:         String searchAllNamespacesXpathExpr = //namespace::*;    // xpath expr to search all namespace         XPathExpression nsXpath = new

Re: Migrate Apache Camel Endpoints

2013-11-01 Thread pmp.martins
Alright, so let me check if I understand. Camel needs a JMS implementation. For that I can either choose ActiveMQ or the camel-jms-component correct? Well, I am working in a project that uses ActiveMQ, so I will stick with that. Now, if I have a Camel project with ActiveMQ, I will have the

Re: Migrate Apache Camel Endpoints

2013-11-01 Thread Willem Jiang
First, camel-jms component works as a JMS client not the JMS Broker implementation. Camel LoadBalancer provide a failover feature , but it doesn’t support master/salver feature out of box. Willem Jiang Red Hat, Inc. Web: http://www.fusesource.com | http://www.redhat.com Blog: