Re: host multiple environment from same installation

2014-11-20 Thread arno noordover
Hi, Thanks for the replies! I think I know enough for now. Greeting Arno -- View this message in context: http://camel.465427.n5.nabble.com/host-multiple-environment-from-same-installation-tp5759379p5759408.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Exception and Velocity - Blank Values

2014-11-20 Thread Claus Ibsen
Hi A good idea is to check the unit tests of camel-velocity to see how those templates are done there, this may help you. On Fri, Nov 21, 2014 at 8:42 AM, contactreji wrote: > Hi > > I have a route as follows which consumes from a vm: endpoint. Data comes to > this endpoint from an exception han

Re: camel sql, select is returning many exchanges of type map instead of one List>

2014-11-20 Thread dermoritz
I just can say thanks! (by the way all in all camel i the best api i ever worked with) -- View this message in context: http://camel.465427.n5.nabble.com/camel-sql-select-is-returning-many-exchanges-of-type-map-instead-of-one-List-Map-tp5759374p5759406.html Sent from the Camel - Users mailing

Camel Exception and Velocity - Blank Values

2014-11-20 Thread contactreji
Hi I have a route as follows which consumes from a vm: endpoint. Data comes to this endpoint from an exception handler in another module. I am trying to send alert mails for this exception using camel velocity. I used both {in.headers.CAMEL_EXCEPTION} was well as ${exception} in the camel veloc

Quartz clustering in camel spring DSL

2014-11-20 Thread selva
I am trying to achieve "requests recovery" in fail-over scenario in two different machine with their clock also sync. My configuration as below: step 1: camel-context.xml I have defined the below route in camel-context.xml file. step 2: quartz.properties: I have enabled org.quartz.jobSto

Re: Quartz job data deletion in clustered quartz2

2014-11-20 Thread Willem Jiang
Hi Lakshmi, I just have some time to revisit the issue of clustered quartz2. It’s the scheduler work to avoid triggers the job data when the bundle is stop, camel-quartz cannot monitor the OSGi bundle event for that. But I think I can catch ObjectAlreadyExistsException to do a double check for

Not able to copy file from FTP location to local machine

2014-11-20 Thread abhishekg945
Hello Team, I was new to camel FTP, and used CamelDSL to read file from FTP location and copy to local drive. Working fine when trying to copy file from one location to another in the local machine. Find the camel context file below and error while reading file from FTP location. camel-context-

Re: Camel Component

2014-11-20 Thread Claus Ibsen
Hi For the rest component you need to use one of the support components for the http transport such as servlet / spark / servlet etc. See the top of this page http://camel.apache.org/rest-dsl And we ship some examples in the source code, https://github.com/apache/camel/tree/master/examples/camel-

Re: question about using splitter(?) and jsonpath expression

2014-11-20 Thread Claus Ibsen
Hi Maybe use camel-jackson to unmarshal the json to a java.util.Map (it does that by default) http://camel.apache.org/json.html And then you can use recipient list to call the 3 mongodb endpoints. http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html And from the java.util.Map object you c

Re: host multiple environment from same installation

2014-11-20 Thread Claus Ibsen
Hi Do you want to keep the configuration external to the deployed artifact (eg WAR)? And the only thing you do is copying the WAR with a new name, and then deploy that in Tomcat. You are not including the configuration inside the WAR file? You would need some kind of servlet init code that figure

Re: Register a new datasource from a route

2014-11-20 Thread Willem Jiang
Camel look up the DataSource object from the camel context registry. If you can change the registry dynamically, you can change the data source for the camel-jdbc component just as you said in the first mail. The key point is you need to replace the old CamelContext Registry by a new CompositeRe

Re: Camel-Restlet 2.14.0 DecodeRepresentation

2014-11-20 Thread sandp
*There is no WrappedRepresentation in the entity of the Response object. * Response response = exchange.getIn().getHeader(RestletConstants.RESTLET_RESPONSE, Response.class); Representation representation=response.getEntity(); //The representation is missing the WrappedRepresentation. I'm not sur

Camel Component

2014-11-20 Thread fmontada
Hi everyone We are using Camel + Spring + Jboss-as We want to config a REST endpoint using http://camel.apache.org/rest.html pom.xml xmlns="http://camel.apache.org/schema/spring";> class="org.apache.camel.component.rest.RestComponent"> Route @Component public class RouteBuilder

Re: weather endpoint throws exception

2014-11-20 Thread salemi
Adding a location resolved the issue. Thank you. - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/weather-endpoint-throws-exception-tp5759287p5759387.html Sent from the Camel - Users mailing list archive at Nabble.com.

dynamically add endpoint configuration to the context

2014-11-20 Thread salemi
Hi, with the following code, it is possible to dynamically add routes to a running camel context. That is great. ModelCamelContext modelCamelContext = (ModelCamelContext) camelContext ; InputStream is = new ByteArrayInputStream(routeXML.getBytes()); RoutesDefinition ro

question about using splitter(?) and jsonpath expression

2014-11-20 Thread gmh
All, I am trying to come up with a processing pattern for a business case. Assume we have something like this form a queue (ActiveMQ/Rabbbitmq) does not matter Below is the json { "name":"xyz" "address": "123 Somewhere, USA" "ssn": "1234" } For each name/value pair I want to make a call t

Re: Appending to an already existing XMl with same root node

2014-11-20 Thread Willem Jiang
It looks like a XStream issue instead of a Camel issue. -- 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 November 21, 2014 at 7:09:29 AM, karthik.subramanian2 (ka

Re: host multiple environment from same installation

2014-11-20 Thread Willem Jiang
Fabric8[1] supports it. [1]http://fabric8.io/ -- 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 November 21, 2014 at 2:55:52 AM, arno noordover (a...@noordover.net

Re: Repo and tag for the jsmpp source bundled with camel-smpp

2014-11-20 Thread Willem Jiang
When you look up the source of jsmpp, you should not compare it with camel-smpp. They are two different projects. -- 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

Re: CXF component attachment support for POJO not implemented as specified

2014-11-20 Thread Willem Jiang
The attachment is mapped by CXF into the MessageContentList. Here is an unit test[1] in camel-cxf for it, you can find the wsdl file here[2] [1]https://github.com/apache/camel/blob/master/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/mtom/CxfMtomConsumerTest.java [2]https://gi

Re: total number of messages in activemq

2014-11-20 Thread Henrique Viecili
If you absolutely need to use camel to retrieve the counters, take a look at http://camel.apache.org/jmx.html Regards, Henrique Viecili Henrique Viecili On 19 November 2014 21:57, Jan Matèrne (jhm) wrote: > I wouldnt do this "in Camel" - ask ActiveMQ. > http://activemq.apache.org/how-do-i-find

Appending to an already existing XMl with same root node

2014-11-20 Thread karthik.subramanian2
Hi, I have a scenario where i need to append an XML content to an already existing XML file . Already Existing XML : 123 Karthik New XML : 456 Subramanian I need the child nodes alone com

Re: Register a new datasource from a route

2014-11-20 Thread Camel Guy
Thanks Willem. I can make that work! It's just a headache to get a new data source instance initialized with data that is in Exchange. (Very dynamic data source..) Maybe I should instead be asking for the ability to pass a datasource to the jdbc component via a header. On Wed, Nov 19, 2014 at 11

Camel-Restlet 2.14.0 DecodeRepresentation

2014-11-20 Thread sandp
I'm trying to use GZIP with Camel-restlet, this is how I GZIP the entity in response before I send the response out. *=Processor* public void process(Exchange exchange) throws Exception { Message message =exchange.getIn(); *Representation representation = new

host multiple environment from same installation

2014-11-20 Thread arno noordover
We are in the proces of deciding what "ESB" implementation to use. Previously we used Camel. Currently we are experimenting with Mule (not my choice ). Apparently the bussiness wants to use one "ESB" installation to support multiple test environments while in production we only support one environm

Re: CXF component attachment support for POJO not implemented as specified

2014-11-20 Thread Paul McCulloch
Thanks for getting back to me Willem. I'm afraid I don't understand your reply though! What do you mean by "the POJO parameter list"? I thought you might mean that the attachments get added as additional entries to the MessageContentList - but that doesn't seem to be the case. I had a look through

Repo and tag for the jsmpp source bundled with camel-smpp

2014-11-20 Thread SwanMountain
I am trying to find the jsmpp source repository and tag that relates to the version bundled in the camel-smpp component. I am using camel-smpp component version 2.13.3 The camel source for that i find at git://git.apache.org/camel.git tag camel-2.13.3 But i am looking for the jsmpp source repo

Re: camel sql, select is returning many exchanges of type map instead of one List>

2014-11-20 Thread Claus Ibsen
Hi That is the expected behavior when using the consumer. See the useIterator option in the docs http://camel.apache.org/sql-component On Thu, Nov 20, 2014 at 5:44 PM, dermoritz wrote: > I just tried out camel-sql component (with mysql datasource). > > The documentation states that select querie

camel sql, select is returning many exchanges of type map instead of one List>

2014-11-20 Thread dermoritz
I just tried out camel-sql component (with mysql datasource). The documentation states that select queries should return one Exchange with List> with the given test: List received = assertIsInstanceOf(List.class, mock.getReceivedExchanges().get(0).getIn().getBody()); I created a simple table with

Re: Camel noob question about how to make a precisely number of GET request on a url

2014-11-20 Thread daninovac
Hi, thank you very much for your reply. Now everything is a lot more clearer. With the response I need to unmarshal it to a xml. I think i did this on a specific example (marshal & unmarshal). The problem was that, with the ID's, to get them from a txt and for each one to get a json from the get re

Re: Bindy: using a multi-character separator for marshalling

2014-11-20 Thread Claus Ibsen
Hi No its single char based currently. On Thu, Nov 20, 2014 at 4:20 PM, ozzy81 wrote: > Hello, > > We have a requirement to use a double pipe separator to decode a CSV from > the customer (||). I was able to get the unmarshalling to work by using > \\|\\| as the separator, and it works great. >

Re: Camel noob question about how to make a precisely number of GET request on a url

2014-11-20 Thread Claus Ibsen
Hi If you need to get the ids from a file first, then start with that from file split body tokenize \n (assume each id is on a new line or something) to http (*) ?? what to do with the response from the get ? end what do you need to do with the response from each get? Do you ne

Re: Camel noob question about how to make a precisely number of GET request on a url

2014-11-20 Thread Claus Ibsen
Hi And btw the http keeps looping, you can use a timer to start the route so you can call it every X second, or only 1 time etc. But it seems you need to start with the id file to get the ids to use On Thu, Nov 20, 2014 at 4:25 PM, daninovac wrote: > Hello, > I've been dealing with this problem

Camel noob question about how to make a precisely number of GET request on a url

2014-11-20 Thread daninovac
Hello, I've been dealing with this problem for some hours and after searches and searches I decided to post it here. I'm new to Apache Camel, so don't judge me, but I need a response or an idea to my issue. Ok, so I need to get a json from a GET request on a specified url. Luckily, that GET method

Bindy: using a multi-character separator for marshalling

2014-11-20 Thread ozzy81
Hello, We have a requirement to use a double pipe separator to decode a CSV from the customer (||). I was able to get the unmarshalling to work by using \\|\\| as the separator, and it works great. The problem arises while marshalling the object back into a CSV. The headers are separated by \|\|

Re: bindy: different behavior between marshal and unmarshal with pipe separator '|'

2014-11-20 Thread ozzy81
The escape characters are still added into the Header Columns when marshalling back the object. e.g. Separator = \\| Output: Header 1\|Header2\|... Version:2.13.2 -- View this message in context: http://camel.465427.n5.nabble.com/bindy-different-behavior-between-marshal-and-unmarshal-with-pi

Re: AHS-WS problem?

2014-11-20 Thread jogro
Thanks for your quick answers. I'll look into the Camel Atmosphere component and see if I can have it running within Spring Boot too. -- View this message in context: http://camel.465427.n5.nabble.com/AHS-WS-problem-tp5759334p5759356.html Sent from the Camel - Users mailing list archive at Nabb

Re: Camel hdfs2 consumer stop route when route is idle

2014-11-20 Thread Claus Ibsen
Hi We are all busy with our own jobs ;) If you want to get help faster then take a look at http://camel.apache.org/commercial-camel-offerings.html And help yourself, by searching and researching more. For example see the control bus eip pattern. On Thu, Nov 20, 2014 at 10:40 AM, er.honey2012

Re: Camel hdfs2 consumer stop route when route is idle

2014-11-20 Thread er.honey2012
I think i asked a wrong question. . Everyone is ignoring this. Can somebody tell me what is wrong in this question? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-hdfs2-consumer-stop-route-when-route-is-idle-tp5759229p5759348.html Sent from the Camel - Users mailing l