Re: camel xmljson add @ signs to the json output. how to remove the @ signs

2014-11-18 Thread salemi
Hi Clause, I looked at their json-lib code and based on what I read they need to have the @ sign for the attributes and # for the text elements. They need those annotations to be able to covert a json properly back to xml. The @ and # signs are hard coded in their code. Do you think I should

dynamically add routes defined in DSL to a camel routes

2014-11-18 Thread salemi
Hi All, is there a clean way to dynamically add routes defined in DSL to a running CamelContext instance. The reason I need to do this because in the production I don't want to turn of the Camel instance but be able to a new routes and remove routes that are not needed. I would like to use DSL to

Re: Camel-Hive

2014-11-18 Thread smilevasu6
Hi Charles , Thanks for such a quick response. I am able to connect to Hive from camel. I can see the Hive table data in my eclipse console. But the problem is, that data i want in a file. 22:58:17.081 [Camel (camel-1) thread #1 - timer://foo] DEBUG org.apache.camel.processor.Pipeline -

Re: camel xmljson add @ signs to the json output. how to remove the @ signs

2014-11-18 Thread Claus Ibsen
Hi Ah great to know it was hardcoded. I would suggest to ask them to add an option so you can turn that off. As there are use cases where you only need a one way transformation. They could also consider different strategies how to control this mapping. So there is a default strategy that does as

Re: dynamically add routes defined in DSL to a camel routes

2014-11-18 Thread Claus Ibsen
If you use the XML DSL you can http://camel.apache.org/loading-routes-from-xml-files.html For java its just the java api and there is methods on camel context to add/remove routes. On Mon, Nov 17, 2014 at 9:16 PM, salemi sal...@avaya.com wrote: Hi All, is there a clean way to dynamically

Re: Camel-Hive

2014-11-18 Thread Claus Ibsen
Hi From the stacktrace it looks like its the jdbc component that fails. Try set the option resetAutoCommit=false http://camel.apache.org/jdbc On Tue, Nov 18, 2014 at 8:25 AM, smilevasu6 srinivas.thu...@gmail.com wrote: Hi Charles , Thanks for such a quick response. I am able to connect to

Re: CXF webservice deployment on glassfish

2014-11-18 Thread Willem Jiang
It looks CXF doesn’t follow the @PostConstruct instruction[1]. [1]https://docs.oracle.com/javaee/7/api/javax/annotation/PostConstruct.html -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter:

camel cxf convert comma separated string to one parameter - how to escape comma

2014-11-18 Thread dermoritz
I want to send a comma separated string to simple web service (cxf based). Without comma all works fine. Camel's type converters and magic take the string and find the only method that takes a string in wsdl and generate the xml (the wsdl has only one method at all). If i send a comma separated

Re: Camel-Hive

2014-11-18 Thread smilevasu6
Thank you so much Claus Ibsen, its working. Now we can connect to hive using camel -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Hive-tp5759189p5759242.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Servlet Component with REST DSL: problem in URI query string construction?

2014-11-18 Thread Rodney van Luinen
Thanks Willem, I did try a search in Jira, when I followed the link you provided it's no surprise I didn't find the issue since I was searching on all the wrong terms! :-) I had things like servlet query string rest dsl, none of which matched. Remedial search school for me I guess ;-) In terms

After using setBody in XML DSL, my email body includes unwanted route metadata

2014-11-18 Thread fidoedidoe
Hi I'm new to camel, so forgive me for asking (more?) dumb question(s). With help from this forum I've created a Multicast route, that emails recipient(s) on completion. just baby steps for now..the logic / complexity will expand as my understanding increases. In my real code (not the pseudo

Re: After using setBody in XML DSL, my email body includes unwanted route metadata

2014-11-18 Thread Claus Ibsen
Hi Is the uri of the smtp endpoint correct? In the code you use ? to separate parameters, but you should use which should be escaped in xml, eg amp; On Tue, Nov 18, 2014 at 11:47 AM, fidoedidoe gavin.fow...@sagepub.co.uk wrote: Hi I'm new to camel, so forgive me for asking (more?) dumb

Re: After using setBody in XML DSL, my email body includes unwanted route metadata

2014-11-18 Thread fidoedidoe
Hi Claus Good spot - that's an honest typo in my pseudo, my apologies, I've corrected the original post. My actual code escapes amp; as suggested. -- View this message in context:

Re: After using setBody in XML DSL, my email body includes unwanted route metadata

2014-11-18 Thread fidoedidoe
I think I've found the answered my own question. The additional metadata is (exchange?) header information, which can be cleared from the body using removeHeaders. The final (pseudo) ends up looking like this: -- View this message in context:

Re: Servlet Component with REST DSL: problem in URI query string construction?

2014-11-18 Thread Willem Jiang
I’m afraid you have to wait for the release of Camel 2.14.1 which will be released in next month. -- 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 18,

Re: camel cxf convert comma separated string to one parameter - how to escape comma

2014-11-18 Thread Willem Jiang
You may need to put the String parameter into Object array to avoid the type converter misfire.  -- 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 18,

Camel webservice sample Error

2014-11-18 Thread dharshan
Hi I am trying to execute sample camel-example-spring-ws but is giving error as below org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 36 in XML document from ServletContext resource [/WEB-INF/spring-ws-servlet.xml 2: Attribute 'local' is not allowed to appear in

Simple email forward route

2014-11-18 Thread A.Light
Hi all, I'm going to post a question that has already been posted here http://camel.465427.n5.nabble.com/Forward-mail-via-camel-td5715953.html and here http://camel.465427.n5.nabble.com/Missing-start-boundary-exception-on-camel-mail-2-10-2-td5724769.html , without resolution. Since the

Re: Tail like File component?

2014-11-18 Thread Gonzalo Vasquez
Thanks David, I'll read about it Gonzalo Vásquez Sáez Gerente Investigación y Desarrollo (RD) Altiuz Soluciones Tecnológicas de Negocios Ltda. Av. Nueva Tajamar 555 Of. 802, Las Condes - CP 7550099 +56 2 335 2461 gvasq...@altiuz.cl http://www.altiuz.cl http://www.altiuzreports.com El

Re: Camel webservice sample Error

2014-11-18 Thread Willem Jiang
Which version of camel were you using? Did you try the latest release one  — Camel 2.14.0? -- 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 18, 2014 at

Re: camel cxf convert comma separated string to one parameter - how to escape comma

2014-11-18 Thread dermoritz
Thanks this is working! List is working too, i use Arrays.asList(one,parameter). In meanwhile i tried to send the real payload object (used the generated code), this is working on another CxfProducer in our project (no data mode set!). But in this case camel tries to convert the xml-object back

camel-hbase dependency inconsistency

2014-11-18 Thread Mark Webb
Sorry for the cross-post, I'm not sure if this is a ServiceMix or Camel problem. I am working on some data routes that will push data to HBase within ServiceMix. My development environment depends on Apache Camel 2.13.2, specifically the camel-hbase component version 2.13.2 depends on avro

direct-vm in OSGI - how to handle context updates?

2014-11-18 Thread Thomas Weinschenk
Hi folks, I am using direct-vm to link different camel contexts (environment is Karaf 2.3.3 and Camel 2.12.2). Everything works fine until I update one of the routes acting as the direct-vm cosumer. This leads to 'No consumers available ...' exceptions. The problems seems to be the fact, that the

Re: direct-vm in OSGI - how to handle context updates?

2014-11-18 Thread Claus Ibsen
Hi You can use the block option to allow some time to wait for the update to be complete. On Tue, Nov 18, 2014 at 3:36 PM, Thomas Weinschenk thomas.weinsch...@infoserve.endress.com wrote: Hi folks, I am using direct-vm to link different camel contexts (environment is Karaf 2.3.3 and Camel

Re: direct-vm in OSGI - how to handle context updates?

2014-11-18 Thread Thomas Weinschenk
Hi Claus, Thank you for your answer. If I add a block it works. But I need the refresh/restart the context in the correct order. In my example route1, route2 and then route3. This works if I do it manually but I have no glue how this could work automatically in production. I deploy and update

How to propagate the HTTP response headers from the Camel route to the cxfrs:bean

2014-11-18 Thread Ton Swieb
Hi, I am using CXFRS bean in combination with Camel and I would like to set a custom HTTP response from within the Camel route, but without making my own CXF Response object. I have a route like: from(cxfrs:bean:restService?binding=#cxfrsBinding)

Re: Simple email forward route

2014-11-18 Thread Paul McCulloch
You may be able to work around this (which may hide a real underlying problem!) with -Dmail.mime.multipart.allowempty=true On 18 November 2014 12:21, A.Light angelo.leg...@axiossystems.com wrote: Hi all, I'm going to post a question that has already been posted here

Re: direct-vm in OSGI - how to handle context updates?

2014-11-18 Thread Claus Ibsen
Hi The deploy folder is not as good to use. So if you want to refresh in specific order, then copy the files in the given order, but make sure to have delay between to give time to pickup the files one by one. I am not sure if the felix fileinstall sorts the files first or something when it

Re: camel-hbase dependency inconsistency

2014-11-18 Thread Filippo Balicchia
Hi Mark, did you try servicemix 5.14 to check if with camel 2.13.3 the problem is resolved ? Regards --Filippo 2014-11-18 15:09 GMT+01:00 Mark Webb elihusma...@gmail.com: Sorry for the cross-post, I'm not sure if this is a ServiceMix or Camel problem. I am working on some data routes that

Re: camel-hbase dependency inconsistency

2014-11-18 Thread Sobkowiak, Krzysztof
Hi Mark There was a problem with camel-avro included in ServiceMix 5.1.2 (https://issues.apache.org/jira/browse/CAMEL-7655). The same problem probably was for camel-hbase as it uses avro too. ServiceMix 5.1.4 includes the Camel version which fixes this problem. You should use the new version.

Multiple property placeholders?

2014-11-18 Thread Gary Kennedy
I'm using Camel 2.14.0, with Karaf 3.0.1, and in the blueprint I have a couple of property 'bags'. One is the usual configuration admin property placeholder, the other is a custom property bag, which gets it's values from runtime scanning. How can I use both property sets in the same camel

How to get Spring System Environment variables in camel properties

2014-11-18 Thread harmohan.singh
i want to pass environment variables (O/S environment variables) to camel routes. something like, route id=route1 prop:autoStartup={{env.shoudIStart}} / similar to how the values are set for configuring properties location: location=file:${env:APP_HOME}/etc/foo.properties but, since that

Re: Multiple property placeholders?

2014-11-18 Thread Gary Kennedy
Urgh, I'm stupid. propertyPlaceholder location=bag1,bag2/ And I don't even have to explicitly state the configuration admin properties. Cheers, Gary On 19 Nov 2014, at 11:29 am, Gary Kennedy g...@apnic.net wrote: I'm using Camel 2.14.0, with Karaf 3.0.1, and in the blueprint I have a

Re: How to get Spring System Environment variables in camel properties

2014-11-18 Thread harmohan.singh
Work around: set jvm variable from environment variable so, my config was -DshoudIStart=${shoudIStart} route id=route1 autoStartup={{shoudIStart}} / -- View this message in context:

Temporary queues, or, jms uri from camel uri?

2014-11-18 Thread Gary Kennedy
So I want to talk to a system that will send back several reply messages for a given command message. The general idea is to have a specific route that will process the reply messages. (maybe behind an aggregator/resequencer, maybe not) Since the plan is to (eventually) use this in a

Re: Camel-Hive

2014-11-18 Thread smilevasu6
Hi, Again there is problem with camel hive. As i am able to connect to hive and able fetch the data from hive table. Now i want to load the data in another hive table. when i try to do the same some times i am getting invalid path and some times there is no errors but data is not moving to

Re: dynamically add routes defined in DSL to a camel routes

2014-11-18 Thread salemi
Hi Claus, thank you for your respond. I used the code but is shows as deprecated. Is there a new way to do the loading of new routes from XML file? Thanks, Ali - Alireza Salemi -- View this message in context:

Re: Camel webservice sample Error

2014-11-18 Thread dharshan
Yes i have added latest version its working finw thanks lot -- View this message in context: http://camel.465427.n5.nabble.com/Camel-webservice-sample-Error-tp5759250p5759272.html Sent from the Camel - Users mailing list archive at Nabble.com.

Polling consumer from Aggregator

2014-11-18 Thread shishya
Hi, I am creating an elasticsearch component. I would like to aggregate individual requests in to a bulk request with 1000 entries. Since I do not know if elasticsearch is available, I would like for the component to poll the aggregator at regular intervals, when the elasticsearch is available.

Re: dynamically add routes defined in DSL to a camel routes

2014-11-18 Thread salemi
great. thank you. - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/dynamically-add-routes-defined-in-DSL-to-a-camel-routes-tp5759221p5759273.html Sent from the Camel - Users mailing list archive at Nabble.com.

weather endpoint throws exception

2014-11-18 Thread salemi
Hi, I am using the weather endpoint from uri=weather:sams-elix?consumer.delay=1000/ and it throws the following error. Any idea why? Thanks, Ali 11:06:11.423 [main] INFO org.apache.camel.main.MainSupport - [S:]Apache Camel 2.14.0 stopping org.apache.camel.TypeConversionException: Error

Re: Camel webservice sample Error

2014-11-18 Thread dharshan
I will check and let you know as soon as posible. On Tue, Nov 18, 2014 at 6:18 PM, Willem.Jiang [via Camel] ml-node+s465427n575925...@n5.nabble.com wrote: Which version of camel were you using? Did you try the latest release one — Camel 2.14.0? -- Willem Jiang Red Hat, Inc. Web:

Re: How to get Spring System Environment variables in camel properties

2014-11-18 Thread Claus Ibsen
Hi See the info box on the top of this page http://camel.apache.org/using-propertyplaceholder.html On Wed, Nov 19, 2014 at 3:31 AM, harmohan.singh harmohan.si...@news.com.au wrote: i want to pass environment variables (O/S environment variables) to camel routes. something like, route

Re: dynamically add routes defined in DSL to a camel routes

2014-11-18 Thread Claus Ibsen
Hi Yeah unfortunately those methods on camelcontext was marked as deprecated to refer people to ModelCamelContext. Frankly I think we should remove those as it confuses people much more than the goal. So to avoid the deprecation then type cast ModelCamelContext mcc = (ModelCamelContext)

Re: weather endpoint throws exception

2014-11-18 Thread Claus Ibsen
Hi I guess its a connectivity issue with http://freegeoip.net/json/ If you try that url in a web browser its not online On Tue, Nov 18, 2014 at 7:14 PM, salemi sal...@avaya.com wrote: Hi, I am using the weather endpoint from uri=weather:sams-elix?consumer.delay=1000/ and it throws the

Invocation of a Spring bean method at a scheduled time when using Camel routing

2014-11-18 Thread usj
Hi, Here is the use case. I need to use Camel Routes to: a)invoke a Spring bean method, at certain time intervals or specific scheduled time b)delegate the result of the bean invocation to a Camel processor to handle the result My approach as at now is: - Use CronScheduledRoutePolicy for

Re: weather endpoint throws exception

2014-11-18 Thread Claus Ibsen
To avoid the geo lookup, then use the location parameter location=london,uk Then there is no geo location lookup and the weather works. This is the direct api its using http://api.openweathermap.org/data/2.5/weather?q=london,uk On Wed, Nov 19, 2014 at 7:23 AM, Claus Ibsen claus.ib...@gmail.com

route synchronization in camel

2014-11-18 Thread cool_rk
Hi I am creating a route to aggregate messages from jms queue. I want to aggregate messages after some fix count let's say i want to aggregate after 100 messages. So is their any way to stop jms queue lookup route when i aggregating my 100 messages in aggregator route. And after aggregation