Re: Not able to update entity using Camel JPA

2014-07-25 Thread Filippo Balicchia
Hi Chandu, the problem seems to be this "Caused by: org.h2.jdbc.JdbcBatchUpdateException: Timeout trying to lock table ; SQL statement: update opsBridge.status_codes set alert_name=?, severity=?, status_code=? where status_code_id=? [50200-168]" Could you check this http://stackoverflow.com/ques

Re: Convert from Fault to Message

2014-07-25 Thread Claus Ibsen
Hi Yeah you can use onException and handled = true, and then do a message translation where you convert the exception into a soap message. The caused exception is stored as a property on the exchange with key http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Exchange.html#

RE: Camel Java routes using Timer firing only once

2014-07-25 Thread Ravindra.Godbole
That is because the expression builder evaluates string to actual values during route definition. If you use the following syntax you will get new time for every timer run. from("timer://foo?fixedRate=true&period=1000").transform(simple("Time is ${date:now:HH:mm:ss}")).to("file:target/reports/?

Convert from Fault to Message

2014-07-25 Thread Matt Raible
Hello, Is it possible to convert from returning a SOAP Fault to a SOAP Message when using the CXF component? I'm developing a new system to replace one written with IBM Message Broker 6.1. When faults occur with IBM, error messages are returned that looked the following: http://schemas.xmlsoa

Re: Camel AdviceWith issues

2014-07-25 Thread Claus Ibsen
On Fri, Jul 25, 2014 at 3:18 AM, Gnanaguru S wrote: > > Thanks Claus, > > Where I can raise a bug for the adviceWith issue while using Choice ? > See here http://camel.apache.org/support > This will be a very useful feature for Camel Spring users! > > Cheers > Guru > > > > -- > View this message

RE: Camel Java routes using Timer firing only once

2014-07-25 Thread mikes300
Well that turns out to be very interesting. Setting the timer to 1s and sleep to 30s, it indeed runs the route 30 times! I am not sure I could explain why it does that as I would think the route starting would include running the timer continually, independent of code in the bean outside the rout

Re: Camel 2.13.1 MyBatis Batch Insert to Oracle 11g Table ORA-00933: SQL command not properly ended

2014-07-25 Thread sandeepreddip
Hi, Its a subquery mandatory per the syntax of Oracle INSERT ALL. Oracle Database executes each insert_into_clause once for each row returned by the subquery (SELECT * FROM dual). -- View this message in context: http://camel.465427.n5.nabble.com/Camel-2-13-1-MyBatis-Batch-Insert-to-Oracle-11

Re: Exchange Body is null while using processor

2014-07-25 Thread Claus Ibsen
Just use Camel's type converter, much easier. In your processor code write String data = exchange.getIn().getBody(String.class); On Fri, Jul 25, 2014 at 2:23 PM, Jaishankar wrote: > Using rest client POST method I'm sending Soap Envelop message. > But couldn't get it in exchange and it's null. >

Exchange Body is null while using processor

2014-07-25 Thread Jaishankar
Using rest client POST method I'm sending Soap Envelop message. But couldn't get it in exchange and it's null. //Code from("servlet:///hello?servletName=TestServlet") .log("log: ${body}") .process(new Processor() { public void

IBM MQ The data received from host is not valid ?

2014-07-25 Thread Frankiboy
I reading from a file , with the only text "Frank was here" from a file named test.txt Schold i format my data in some way or ? But on the remote MQ mashine a "AIX" there is this error in MQ log: AMQ9207: The data received from host 'BDD03240 (10.10.173.88)' is not valid. When i look this up

Re: Camel 2.13.1 MyBatis Batch Insert to Oracle 11g Table ORA-00933: SQL command not properly ended

2014-07-25 Thread Jose MarĂ­a Zaragoza
2014-07-22 17:25 GMT+02:00 sandeepreddip : > Hi, > I'm trying to insert a list of data to a table using MyBatis Batch.The query > seems to be fine as I was able to insert the data successfully from a a SQL > client, but fails with MyBatis. > > > Below are the Camel DSL Route, Mapper Query, SQL Log

Re: Stream-only reverse proxy with minimal memory footprint

2014-07-25 Thread rsteppac2
Willem, thanks for taking this up. Ralf On 25.07.14 10:30, Willem.Jiang [via Camel] wrote: > Hi, > > You just bring up an interesting topic of avoiding extra copy of > response input stream. > It could save us lots of the memory and time if the response is a big > and chunked message. > I just

Re: Chunking issue with http producer

2014-07-25 Thread Willem.Jiang
Hi Bernard, You are right, the patch has nothing to do with if the http endpoint is bridge endpoint or not. I created a JIRA[1] to keep track of this useful feature. [1]https://issues.apache.org/jira/browse/CAMEL-7638 Regards, Willem -- View this message in context: http://camel.465427.n5.

Re: Stream-only reverse proxy with minimal memory footprint

2014-07-25 Thread Willem Jiang
Hi, You just bring up an interesting topic of avoiding extra copy of response input stream. It could save us lots of the memory and time if the response is a big and chunked message. I just created a JIRA[1] to track this issue. We may create some sub tasks as we need to work on five different

Re: Only one, but difrent endpoints in same route, is this the way ?

2014-07-25 Thread Frankiboy
Thanks , just wat im looking fore, it works "); from("cxf:bean:hubws?dataFormat=MESSAGE").streamCaching() .onException(Exception.class).process(new LogError()).end() .bean(LogMq.class, "logStart") .bean(AddIpBean.class) .recipientList().method(Util.class, "getEndpo

Not able to update entity using Camel JPA

2014-07-25 Thread chanducompute
Hi, I am using cmael JPA for my persistence operations,and as part of my updates I am facing issues. In my route I am reading a row and then modifying it in a bean and adding to JPA:entity and getting errors. here is my route from("jpa:test.persistence.entity.StatusCodeMappings?consumer.namedQue

Re: Not able to define processor in Camel

2014-07-25 Thread Claus Ibsen
Hi See this example and its source code how its done http://camel.apache.org/console-example.html On Fri, Jul 25, 2014 at 9:20 AM, nettome wrote: > Yes, I'm able to read the file.. > > System.out.println(file.getName()); > InputStream in = new FileInputStream(file); > routes = context.loadRoutes

Re: Use Properties in a Predicate

2014-07-25 Thread arnoldmad
I didn't quite understand what I need to change in my statement: .when(simple('${properties:comp1URI} != 'DISABLED')) where do I need to change it it $simple ? is it then .when(simple('$simple{properties:comp1URI} != 'DISABLED')) ?? -- View this message in context: http://camel.465427.n5.na

Re: Not able to define processor in Camel

2014-07-25 Thread nettome
Yes, I'm able to read the file.. System.out.println(file.getName()); InputStream in = new FileInputStream(file); routes = context.loadRoutesDefinition(in); context.addRouteDefinitions(routes.getRoutes()); in the above code, I'm getting my route.xml file defined as below - http://camel.apache.or

Re: Use Properties in a Predicate

2014-07-25 Thread Claus Ibsen
Did you try what I said? On Fri, Jul 25, 2014 at 9:00 AM, arnoldmad wrote: > anyone can help me on that as I cannot get it working in groovy ? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Use-Properties-in-a-Predicate-tp5754392p5754429.html > Sent from the Camel

Re: Use Properties in a Predicate

2014-07-25 Thread arnoldmad
anyone can help me on that as I cannot get it working in groovy ? -- View this message in context: http://camel.465427.n5.nabble.com/Use-Properties-in-a-Predicate-tp5754392p5754429.html Sent from the Camel - Users mailing list archive at Nabble.com.