Re: Implementing a counter in XML DSL and Simple

2015-05-15 Thread Andrew Block
Dan, Each exchange executing within the split is independent of each other. Incrementing the value of a header on one split exchange will have no effect on another.  If you want to get the number of split items, it is available after the split in Exchange.CamelSplitSize header.  In addition,

Implementing a counter in XML DSL and Simple

2015-05-15 Thread Davis, Daniel
>From Claus' 2011 blog I tried to implement a counter but I cannot get it to work inside a splitter (I need a count of only a subset of items). The example code is: ${header.myCounter}++ By itself this code fails because myCounter is not a number. So I initialized it outside the Split bu

camel spring-ws component with ws-security (username and password)

2015-05-15 Thread Ronny Aerts
Hello camel community, Does anyone of you have some knowledge/experience using ws-security with the camel spring-ws component? I want to a Security tag with username and password to the soap header but this does not work for me. I found website http://docs.spring.io/spring-ws/site/reference/h

Re: camel-parent pom properties

2015-05-15 Thread Henryk Konsek
Hi, The better practice is to import Camel parent as BOM: org.apache.camel camel-parent ${camel.version} pom import And then simply: org.apache.camel camel-core Cheers! pt., 15.05.2015 o 15:24 użytkownik Ronny Aerts napisał

camel-parent pom properties

2015-05-15 Thread Ronny Aerts
Hello camel community, I'm interested in using the maven properties which are defined in the camel-parent pom.xml. In order to inherit these maven properties, I need to set the parent in my projects to the camel-parent. The point is that my projects use other version numbers than those of camel

Re: ElasticSearch- Best practice for indexing entire JSON Files?

2015-05-15 Thread Henryk Konsek
Hi, Split the document and use the bulk insert to save documents in the batch mode. Look for the camel-elasticsearch [1] BULK_INDEX operation. Cheers! [1] http://camel.apache.org/elasticsearch.html pt., 15.05.2015 o 13:18 użytkownik James Green napisał: > If widgets.json is effectively a data

Re: how to get subject and body for mail from a properties file

2015-05-15 Thread Reji Mathews
Will this code snippet help you. {{alertEmailTo}} {{alertEmailCC}} no_re...@server.com {{amqAlertMailSubject}} Hi this is the body of the email

Re: JSON to XML Mapping/Transformation

2015-05-15 Thread Gnanaguru S
Hey, Thanks. Can you elaborate a bit ? Any samples ? References to your approach ? Regards Guru -- View this message in context: http://camel.465427.n5.nabble.com/JSON-to-XML-Mapping-Transformation-tp5767112p5767140.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: ElasticSearch- Best practice for indexing entire JSON Files?

2015-05-15 Thread James Green
If widgets.json is effectively a database of products and each product should existing as a document in an elasticsearch index you will need to split it before sending it onwards. You could use Camel, but also consider logstash. If widgets.json is one of many source files representing products tha

Re: JSON to XML Mapping/Transformation

2015-05-15 Thread sekaijin
I use a double annotation on a pojo and marshaller unmarshaller. A+JYT -- View this message in context: http://camel.465427.n5.nabble.com/JSON-to-XML-Mapping-Transformation-tp5767112p5767138.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Fop - add images to PDF

2015-05-15 Thread Claus Ibsen
Hi Yeah but Apache FOP must provide some API Camel can use to lookup the resources. So if you can try to dive into the FOP api and see if you can find such an api. eg there must be some kind of url resolver, or resource resolver, or lookup or whatnot they we can hook into. On Fri, May 15, 2015 at

Web service proxy Fault response

2015-05-15 Thread jainmcs03
Team, I have configured Dead Letter Channel for error handling on web service proxy and its works fine. In this case want to send custom Fault message(Error code/message) to the service client. Kindly share if have any solution/clues... Regards Jayendran -- View this message in context: h

Re: Camel Fop - add images to PDF

2015-05-15 Thread Laurentiu Trica
Hi, Yes, the images are referenced from the XSL file I'm applying to XML before going to the FOP processor to get me the PDF. So it would be nice to have a hook, especially since you made it possible with the userConfigURL option (http://camel.apache.org/fop.html) to be loaded from the classpath (

Re: spring-ws component 2.15.2

2015-05-15 Thread Claus Ibsen
Hi The configure method of RouteBuilder is only for setting up the Camel routes. All the code with the producer template et all should be done someplace else. http://camel.apache.org/walk-through-an-example.html On Thu, May 14, 2015 at 4:34 PM, Nick Bryan wrote: > Hi, > Trying to use spring-ws a

Re: how to get subject and body for mail from a properties file

2015-05-15 Thread Mukundha Reddy
You can use the below format for getting the properties from property file, ${some.processor.consumer.camel.email.subject} text/plain;charset=UTF-8 ${some.processor.consume

Re: camel-hipchat (15.2) using XML DSL, can't set HipchatToUser

2015-05-15 Thread shreyaspurohit
Hello, I am using hipchat component with camel 15.0 and the below route works for me. It just reads a file dropped in folder and hipchat's the filename as message. I use scala with java dsl and not XML. Few things I suggest to debug issue: 1. Try a simple java DSL like mine and see if that works 2

Re: Downloading 2.16 - Not Found

2015-05-15 Thread Claus Ibsen
Hi As said on the download page the latest release is 2.15.2 http://camel.apache.org/download.html The 2.16.x is currently in development and you cannot download it. On Thu, May 14, 2015 at 11:49 PM, edhansen42 wrote: > I'm trying to download 2.16 and am getting a not found response from all t

Downloading 2.16 - Not Found

2015-05-15 Thread edhansen42
I'm trying to download 2.16 and am getting a not found response from all the sites. I've tried multiple browsers as suggested with no luck. -- View this message in context: http://camel.465427.n5.nabble.com/Downloading-2-16-Not-Found-tp5767126.html Sent from the Camel - Users mailing list ar

ERROR: Cannot find any registered HttpDestinationFactory from the Bus.

2015-05-15 Thread jainmcs03
Team, For camel-CXF web service proxy i created a maven JAVA project to configure the jetty embedded container as described in the example and run it in eclipse and its works fine. But while delpoying as .war in tomact its giving subject Error. ERROR HTTPTransportFactory - Cannot find

Re: rapid consumption of ActiveMQ messages

2015-05-15 Thread mayur_bm
Thanks Guru, is this solution means there will be 5 concurrent connection to my message processor and each connection will be draining the ActiveMQ queue?. Regards, Mayur -- View this message in context: http://camel.465427.n5.nabble.com/rapid-consumption-of-ActiveMQ-messages-tp5767100p576

Re: Comparison of Apache Camel and IBM Integration Bus v9.0

2015-05-15 Thread jamie3
http://beertechcode.blogspot.ca/2015/05/my-first-experiences-with-camel-and-iib9.html -- View this message in context: http://camel.465427.n5.nabble.com/Comparison-of-Apache-Camel-and-IBM-Integration-Bus-v9-0-tp5766171p5767125.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Comparison of Apache Camel and IBM Integration Bus v9.0

2015-05-15 Thread jamie3
https://www.blogger.com/blogger.g?blogID=7490556759974154576#editor/target=post;postID=8340010403315101673;onPublishedMenu=allposts;onClosedMenu=allposts;postNum=0;src=postname -- View this message in context: http://camel.465427.n5.nabble.com/Comparison-of-Apache-Camel-and-IBM-Integration-Bus-

camel-hipchat (15.2) using XML DSL, can't set HipchatToUser

2015-05-15 Thread fidoedidoe
Hi, Can you help. I'm implementing a route to post messages into a HipChat room. Using XML DSL, I have successfully posted message to a HipChat Room, albeit without sending the message to specific people within the room. To achieve the latter (targeting messages to people in the hipchat room).