Re: choice when check BodyType:null, Body:null

2011-03-24 Thread Tim
so based on the cause of that bug, it is impossible to set the body of a jms message to null even if it was transformed earlier. So for example if you had: jmsmessage (a) -> bean which returns (b) based on that message -> bean c which returned null based on b -> bean d.. d would get (a) again. (no

Re: choice when check BodyType:null, Body:null

2011-03-24 Thread Tim
I believe you ran into https://issues.apache.org/jira/browse/CAMEL-3354 On Thu, Mar 24, 2011 at 5:23 PM, Eric East wrote: > Thanks for response. > > I narrowed down my test case where I see the issue. > > When I initiate a route using a jms activeMQ broker (internal VM), the > exchange.setBody(nu

DSL Parser

2011-03-24 Thread Lansing, William Jeff
A while ago I read a suggestion to the effect that it would be nice if routes could be declared as strings, e.g., in a file like: from("ds-service:events") .filter().simple("${body.provider} not contains 'side-effect-of-delete'") .to("ds-soap://update?url=http://localhost/xyz/UpdateService";

Re: choice when check BodyType:null, Body:null

2011-03-24 Thread Eric East
Thanks for response. I narrowed down my test case where I see the issue. When I initiate a route using a jms activeMQ broker (internal VM), the exchange.setBody(null) does not set the body to null. I am using Camel 2.5. Actvemq 5.4.1 TEST CASE FAILS: template.sendBody("activemqVM:topic:tlm",

Re: type converter not loading

2011-03-24 Thread Donald Whytock
Tried with camel-core-2.7.0.jar and got the same error. On Thu, Mar 24, 2011 at 5:59 PM, Donald Whytock wrote: > Running Camel in an OSGi environment under Felix, with > camel-core-2.6.0.jar as a bundle.  I'm getting a stacktrace when I try > to call start() on the DefaultCamelContext singleton I

type converter not loading

2011-03-24 Thread Donald Whytock
Running Camel in an OSGi environment under Felix, with camel-core-2.6.0.jar as a bundle. I'm getting a stacktrace when I try to call start() on the DefaultCamelContext singleton I'm generating. Is there some other bundle I need to install? Thanks... Don org.apache.camel.RuntimeCamelException:

Re: Camel doesn't listen to JMS channel

2011-03-24 Thread ctapobep
Though after posting this I've tried couple of other times and seems like this log is always present, so it's not relevant. But still couldn't fight the issue - messages simply don't arrive. stanislav bashkirtsev -- View this message in context: http://camel.465427.n5.nabble.com/Camel-doesn-t-li

Camel doesn't listen to JMS channel

2011-03-24 Thread ctapobep
So if I run my very simple app that listens to the topic 10 times, 9 times camel just doesn’t receive messages. I’m looking at the log in DEBUG mode and the difference I’ve noticed is that when it does start normally there are lines like this: 2011-03-24 14:55:38,838[][INFO ][main ][nec

Re: Camel Route question

2011-03-24 Thread balajiu
Willem, Thank you for the information. Do you have any example I can refer to? Please let me know. Balaji -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Route-question-tp4258757p4263013.html Sent from the Camel - Users mailing list archive at Nabble.com.

Advice on Error Handling

2011-03-24 Thread Phil
Could someone point me to a few examples that will help me implement these types of error handling and process monitoring:* Each time a file is written via the SFTP component, a bean method is called.  If a failure occurs, the exchange is re-tried a configurable number of times.* If a bean processi

Re: Memory consumption with Camel 2.7.0

2011-03-24 Thread Xavier Coulon
Hello Hadrian, I'm running on Linux + JDK6, but my application declares/uses a lot of routes (file consuming, splitting, aggregation, unmarshalling, content base routing, jdbc). I'm going to try to isolate the one that causes troubles. I'll keep you informed. Regards, Xavier On Thu, Mar 24, 201

Re: Memory consumption with Camel 2.7.0

2011-03-24 Thread Hadrian Zbarcea
Xavier, thanks for reporting. Could you please provide more details that would help us reproduce? The camel route and config, jdk version and platform would help. Thanks, Hadrian On Mar 24, 2011, at 11:24 AM, Xavier Coulon wrote: > Hello, > > I upgraded my data integration application from Ca

Memory consumption with Camel 2.7.0

2011-03-24 Thread Xavier Coulon
Hello, I upgraded my data integration application from Camel 2.6.0 to 2.7.0 this morning as I read the release announcement and while running some benchs, I noticed that the new version of Camel *seems* not to release memory. After a few minutes of running (processing a large file), the applicatio

Re: message/exchange identification

2011-03-24 Thread Björn Bength
Hi, This is a method that may work: put logic in an event handler with this logic: if header("BertrandCorrelation") is null setHeader("BertrandCorrelation", new uuid) then add this event handler to every camel context you have. this will give you a new correlation id however the message en

Re: message/exchange identification

2011-03-24 Thread Charles Moulliard
Hi, Camel 2.7.0 supports the pattern MDC pattern (http://logback.qos.ch/manual/mdc.html) to log information related to an Application and for camel that means exchangeId, routeId --> http://camel.apache.org/mdc-logging.html routeId would be a better key + exchangeId to trace messages, isn't it ?

message/exchange identification

2011-03-24 Thread BERTRAND Antoine AWL-IT
Hi all, I'm running camel into servicemix (fuse version 4.2 and 4.3.1). All services I provide are structured like this: - 1 camel context per bundle - 1 bundle per input system - 1 or more bundles for business logic - 1 bundle per output system -

Re: Problem using iBatis in a route deployed on Karaf

2011-03-24 Thread Michael Dewitte
I took a network trace, and yes, the box try to find online the dtd... WHY ? I gave access to the net to the server (to temporaly workaround this issue) and now, I have a "No suitable driver found "... (see stacktrace bellow)... I don't know why, since the jdbc driver bundle is deployed, and impor

Camel CXF workaround with self signed certificates

2011-03-24 Thread Naira & Kobo
I have this classic ssl problem on camel cxf when trying to connect to a server, who has a self generated certificate. I have imported the cert into my keystore but is says "Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names presen

Re: Problem using iBatis in a route deployed on Karaf

2011-03-24 Thread Michael Dewitte
yes, it's what I assume too... and indeed, the box is offline (I cannot connect the server to the internet)... but why is it trying to find it online ? Do I have to setup something so that it can find a local copy in its classpath ? 2011/3/24 Willem Jiang > Is your box off line ? > It looks li

Re: Problem using iBatis in a route deployed on Karaf

2011-03-24 Thread Willem Jiang
Is your box off line ? It looks like SqlMapConfigParser try to load the schema of SqlMapConfig.xml from the internet. On 3/24/11 4:40 PM, Michael Dewitte wrote: Why is it connecting via http ? And to what ? Is it trying to find the SqlMapConfig.xml also ? Mike -- Willem --

Re: Problem using iBatis in a route deployed on Karaf

2011-03-24 Thread Michael Dewitte
Hi, I'm not sure if I understood well what you said... I tried to replace blueprint by a spring config. So, just migrating and reformating appropriately the blueprint.xml to beans.xml. The error I get is slightly different : 09:32:51,428 | ERROR | //activemq/input | DefaultErrorHandler

Re: Problem using iBatis in a route deployed on Karaf

2011-03-24 Thread Willem Jiang
The IBatisComponent is using DefaultResourceLoader to load the resource, it will try to use the thread context classloader to load the resource. It's looks like the blueprint doesn't set the thread context classloader with your bundle classloader. Can you try to define the Spring.xml to try

Re: Camel Route question

2011-03-24 Thread Willem Jiang
You can stop the route in you customer bean, and start it again 15 mins later. First you need to set the routId(), then you can call the method of stopRoute and startRoute() of the CamelContext which can be injected into your customer bean. Willem On 3/23/11 9:20 PM, balajiu wrote: Hello, I

Re: choice when check BodyType:null, Body:null

2011-03-24 Thread Willem Jiang
Which version of Camel are you using? I just add a simple unit test in Camel trunk , the test is passed. Here is the code snippet: public void testNullValue() throws Exception { exchange.getIn().setBody("Value"); assertExpression("${in.body} != null", true); assertExpress

Re: Data not rollbacked from DB - camel-jdbc

2011-03-24 Thread Charles Moulliard
Hi Christian, Your are right, we should raise a ticket to decide what to do : improve the component or update the wiki page to warn users. BTW, If we decided to improve the component, than a decision should be take about merging jdbc and sql component to keep only one ! Regards, Charles Moullia