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

2014-11-13 Thread Claus Ibsen
Hi No sorry I dont know how to remove those. You are welcome to dive into the source code and see if there is something we can add. Sounds like we should add some option to remove the @. I wonder if they are there so the component can reverse from json, and then know that if its a @foo then that

Re: Wiretap adds exchanges to MockEndpoint used in NotifyBuilder expression.

2014-11-13 Thread Claus Ibsen
WireTap creates a new exchange that is the purpose of it http://camel.apache.org/wire-tap On Fri, Nov 14, 2014 at 8:21 AM, wjmcdonald wrote: > My understanding is that normally you can test a route by using the > NotifyBuilder and a MockEndpoint and if you send one message into the route, > you s

Wiretap adds exchanges to MockEndpoint used in NotifyBuilder expression.

2014-11-13 Thread wjmcdonald
My understanding is that normally you can test a route by using the NotifyBuilder and a MockEndpoint and if you send one message into the route, you should be able to satisfy the mock.expectedMessageCount(1). However, it appears that the use of the wiretap component in a route adds extra exchanges

Re: Camel SQL component - Insert Operation

2014-11-13 Thread Pontus Ullgren
According to the documentation the syntax should be ":#data" so it looks like you have switched places on the : and # On Fri, Nov 14, 2014 at 3:49 AM, contactreji wrote: > Hi > > I am trying to insert a record into the camel database. I have no errors > when I hard code the value like ** > > > I

Re: Camel SQL component - Insert Operation

2014-11-13 Thread Claus Ibsen
Hi You need Camel 2.11 or better to use named parameters as said here http://camel.apache.org/sql-component On Fri, Nov 14, 2014 at 3:49 AM, contactreji wrote: > Hi > > I am trying to insert a record into the camel database. I have no errors > when I hard code the value like ** > > > I was wonde

redis project does not work for me

2014-11-13 Thread gmh
HI, We are trying to use Camel redis component when I found this following article: http://stackoverflow.com/questions/16428371/camel-redis-component-subscribe-to-a-channel-not-working I tried to run this project (https://github.com/soumyasd/camelredisdemo) and not able to see any results. I ran

Re: Multipart form data and servlet/restlet endpoint

2014-11-13 Thread navaltiger
Hi, Could do it following way. Will upload whole project at GitHub following way. -- web.xml -- Archetype Created Web Application org.springframework.web.context.ContextLoaderListener

Re: .toUpperCase() doesn't work in the simple expression below.

2014-11-13 Thread Willem Jiang
I think you can consider to set exchange property by using some other script which supports toUpperCase(). Then reference it in the simple expression. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter

Camel SQL component - Insert Operation

2014-11-13 Thread contactreji
Hi I am trying to insert a record into the camel database. I have no errors when I hard code the value like ** I was wondering why I get following error when I have following camel Spring DSL line * Samson * * org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallba

Re: Error while deploying camel proxy in tomcat

2014-11-13 Thread Willem Jiang
I guest you are using Spring Web Application context listener to watch the change of camel-config.xml.  I think you need to make sure the Spring Application close rightly before redeploy the war again. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.

Re: Multipart form data and servlet/restlet endpoint

2014-11-13 Thread Willem Jiang
I’m not sure what kind of web container that you use. Here is a link[1] about how to do it with tomcat 7. [1]http://stackoverflow.com/questions/8047173/how-to-enable-multipart-form-data-in-tomcat-7-0-8-server -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blo

Re: XPATH woes

2014-11-13 Thread Raul Kripalani
Your Envelope element is declared in a default namespace. Your XPath expression must use the namespace when referring to the element. Cheers. On 13 Nov 2014 22:32, "Gershaw, Geoffrey A." < geoffrey.gers...@credit-suisse.com> wrote: > Hi All, > > I'm trying to filter via xpath using the spring con

Re: Camel JPA - Parameterized Queries?

2014-11-13 Thread Datla, Venkata
Hi, Can u plz tell me how to use consumer.parameters to send parameters to a named query in a jpa component. Thanks, Anwesh

XPATH woes

2014-11-13 Thread Gershaw, Geoffrey A.
Hi All, I'm trying to filter via xpath using the spring config. I'm running camel 2.12.3. An example msg http://removed " xmlns:bem="http:/removed " xmlns:price="http://removed"; messageId="xx" schemaVersion="1.0" instanceId="xx" publishMessageDtm="2014-11-13T22:27:07+00:00" publishMessageD

.toUpperCase() doesn't work in the simple expression below.

2014-11-13 Thread rajivgup...@gmail.com
'{{mainframe.filename}}.$simple{$simple{file:onlyname.noext}.toUpperCase()}.$simple{date:now:'D'yyMMdd}.$simple{date:now:'T'HHmmsss}' I need to send a upper cased file name to mainframe and the expression above throws the following error. Is there a work around for this issue ? org.apache.camel.la

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

2014-11-13 Thread salemi
Hi Claus, I am using Camel version 2.14.0. As far as xmljson goes I have used the follwoing parameter tor turn that off without a luck Do you know how turn off the @ sign for xml attributes? Thanks, Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble

New to Camel, adding smtp completion notification using XML DSL

2014-11-13 Thread fidoedidoe
Hi I'm new to camel (so forgive me for asking dumb question). Having worked a few examples and successfully created some test routes - I'd like to email recipient(s) on completion. Ultimately the intent would be to email success / failure...but taking baby steps, just an email at the end of proces

Re: Ack by the end of WS chain (client WS - [WS - Camel - client WS] - WS) *image inside

2014-11-13 Thread chainbuck
For reference: It looks like they call it: * Camel CXF Proxy * You can use CXF to proxy a real web service. I found some related threads: http://camel.apache.org/cxf-proxy-example.html https://cwiki.apache.org/confluence/display/CAMEL/CXF+Proxy+Example https://access.redhat.com/documentation/e

Re: Camel JMS consumer route start / stop issues

2014-11-13 Thread Claus Ibsen
Try only use suspend/resume or stop/start and not mix and match them On Thu, Nov 13, 2014 at 10:16 AM, sushil_vsk5 wrote: > Guys, any thoughts on this > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-JMS-consumer-route-start-stop-issues-tp5758893p5759030

"When" clause not working with header element with namespace

2014-11-13 Thread miguelfdez
Hi! I'm following the "Message Router" pattern explained in https://camel.apache.org/message-router.html However, I'm having problems with conditions on headers with namespaces. The XML message I'm receiving is like this: http://schemas.xmlsoap.org/soap/envelope/";> http://mycompany/smth";>myEle

Re: Camel JMS consumer route start / stop issues

2014-11-13 Thread sushil_vsk5
Guys, any thoughts on this -- View this message in context: http://camel.465427.n5.nabble.com/Camel-JMS-consumer-route-start-stop-issues-tp5758893p5759030.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Error while deploying camel proxy in tomcat

2014-11-13 Thread Royamit
http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:camel="http://camel.apache.org/schema/spring"; xmlns:cxf="http://camel.apache.org/schema/cxf"; xmlns:context="http://www.springframework.org/schema/context";