AW: camel - xsd

2014-12-04 Thread jhm
Setting the body to a text doesnt mean to connect to a database. Or is there some to(jdbc:) or something else I havent seen? Jan -Ursprüngliche Nachricht- Von: smilevasu6 [mailto:srinivas.thu...@gmail.com] Gesendet: Mittwoch, 3. Dezember 2014 08:01 An: users@camel.apache.org

Re: Seeking understanding of Parameter Binding in Bean invocation

2014-12-04 Thread taariq
Hi I've attached a test that reproduces this in 2.11.1, but not in 2.14.0 Are you able to upgrade? BeanBindingTest.java http://camel.465427.n5.nabble.com/file/n5760124/BeanBindingTest.java -- View this message in context:

how to get the camel Exchange from spring batch

2014-12-04 Thread Maditapu Mani
Hi Claus, I am working on Camel + Spring batch Integration, I am not able to understanding how the camel will call the spring batch Job and how we will get the Camel Exchange from spring batch job. Do we need to use any Readers and Writers in Job level or else without Readers and Writers,

JPA Trace and DefaultErrorHandler

2014-12-04 Thread ariedel
Hello Forum, I've a problem with tracing routing in the DB if an error occurs. The error is traced, but only to the console, not in the DB. For me,it is very importent to get this trace in the DB. Any idea who to reallise that the error is also traced in the DB. TIA Andreas -- View this

Re: Camel file2 - get notified when the file is deleted from a directory in the idempontent mode

2014-12-04 Thread salemi
what do you think about the following solution proposed under the following link? http://anydoby.com/jblog/en/camel/1931 - Alireza Salemi -- View this message in context:

Re: ACK and NAK using MINA Component

2014-12-04 Thread madhuri@atrium
Thanks for your response. Can you please point me to right documentation for me to right custom mina codec? -- View this message in context: http://camel.465427.n5.nabble.com/ACK-and-NAK-using-MINA-Component-tp5760006p5760110.html Sent from the Camel - Users mailing list archive at

Camel CBR using OGNL

2014-12-04 Thread contactreji
Hi I am receiving data into CXF endpoint using dataFormat=POJO. I want to do some routing based on the value of object member. Suppose i get the object of class Order which as a member called currency, how can i write CBR to route this based on the currency. I am wondering if something like

Camel - Array

2014-12-04 Thread smilevasu6
Hi All, from(timer://foo?period=6) .bean(XSDToCamel.class,parseXSD(/home/cloudera/Desktop/Sample.xsd)) .setHeader(size,simple(${body.length})) With below router, i am able to store the length of array in size. But how we can

Re: Camel-smpp sharing single Smpp Connection for Consumer and Producer in single domain(or namespace)

2014-12-04 Thread pradeep
Hi, Camel smpp internally uses JSMPP library. So you can verify weather JMPP library supports for a single session communication from ESME to SMSC. I believe JSMPP creates a separate session for ESME consumer and ESME producer. So Camel smpp also created two separate connections. Regards,

Re: Duplicate Elimination

2014-12-04 Thread David Karlsen
Sure - some XSLT will do it - and it becomes a string. I opened an issue some time ago about having the possibility to make the messageId a complex object, possibly holding several keys: https://issues.apache.org/jira/browse/CAMEL-7461 2014-12-03 12:44 GMT+01:00 contactreji contactr...@gmail.com:

Re: Camel - Array

2014-12-04 Thread scottdawson
If you want to do some processing on each element in the array, you can use the Splitter pattern/component: http://camel.apache.org/splitter.html http://camel.apache.org/splitter.html Regards, Scott -- View this message in context:

AW: Camel - Array

2014-12-04 Thread jhm
.setHeader(size,simple(${body.length})) With below router, i am able to store the length of array in size. But how we can get the element from the array. ${body.length} reflects the length field of the Array. So I would try ${body[0]} ... Or transform it to a list, then simple-language

Re: Camel - Array

2014-12-04 Thread smilevasu6
Any one is there to help on the below? Please do need full -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Array-tp5760111p5760116.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel file2 - get notified when the file is deleted from a directory in the idempontent mode

2014-12-04 Thread Claus Ibsen
Hi You can likely do this out of the box with idempotentKey=${file.name}-${file.modified} On Wed, Dec 3, 2014 at 8:17 PM, salemi sal...@avaya.com wrote: what do you think about the following solution proposed under the following link? http://anydoby.com/jblog/en/camel/1931 - Alireza

PooledSession throw Exception at closing, fabric never recovers until container or bundles is restarted

2014-12-04 Thread Ayache Khettar
Hi I have a collection of bundles which all have an activeMQ endpoint deployed in fabric8 server. The issue manifests when I restart activeMA server (using remote but running locally, not embedded in a Fabric container), the PooledSession throw an Exception at closing session - see logs below.

Camel distributed transactions/XA without full J2EE container?

2014-12-04 Thread Daniel Pocock
The wiki explains the general concepts around transactions and distributed transactions. Running Camel as a standalone J2SE Spring application (using org.apache.camel.spring.Main) is a popular choice for people who don't want to use a container and I've worked on several projects where this

Re: Camel distributed transactions/XA without full J2EE container?

2014-12-04 Thread Claus Ibsen
Hi Both the Camel books - Camel in Action and the cookbook has JTA examples using atomikos as the TX manager. And the examples are standalone and can run from unit tests etc. And there is also the TX manager from Apache geronimo project - not remember its name. But I think its the one that

Re: Mail - copyTo not working and MailBoxPostProcessAction not found

2014-12-04 Thread A-Light
Hi, is there any update on this issue? Is there something I can do to help understand why this method is not invoked or in general on how to make this feature work? (reposted with the right account) Thanks, A. -- View this message in context:

A restarted websocket endpoint no longer accepts client connections.

2014-12-04 Thread sbarie
Created a simple route to consume messages from a websocket. For example: from (websocket://192.168.24.132:9101/mySocket) .to(MyBean.class) Route works great initially. But if I stop the route and restart it.the route starts but clients can no longer connect to the socket. If I restart

Re: A restarted websocket endpoint no longer accepts client connections.

2014-12-04 Thread Claus Ibsen
Hi Yeah I have logged a ticket about this a while back. For example if you try the camel-twitter example. There is also camel-ahc-ws and camel-atmospwhere for websocket, they may work better. But of course if anyone got time to dive in and fix the bug in camel-websocket. It used to work before

Re: A restarted websocket endpoint no longer accepts client connections.

2014-12-04 Thread sbarie
Thanks for the timely response Claus. It is greatly appreciated. -- View this message in context: http://camel.465427.n5.nabble.com/A-restarted-websocket-endpoint-no-longer-accepts-client-connections-tp5760156p5760158.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Mail - copyTo not working and MailBoxPostProcessAction not found

2014-12-04 Thread Claus Ibsen
Hi I suggest if you can do a new test where you dont mark an existing mail back as unseen, but try with an actual new mail. Also as camel-mail dont have an unit test for that option, it would be good to add one. And see if indeed there is a bug, though the option has been around for years. So

Unexpected behaviour of Camel Simple expression

2014-12-04 Thread welshstew
Long time lurker - first time poster! Please be nice :) I have a very simple camel route: from uri=timer://foo?period=1000amp;repeatCount=1 / process ref=populateMap / log message=SIMPLE SPRING: INSERT INTO SOMETHING

Difference between transacted and jmstx

2014-12-04 Thread Madhu Nair
Hi, I have a route that reads messages from a message queue and sends them downstream to another application. If there is a failure on that application side the message seems to get lost. I want the message to be put back on to the queue if there is an exception. I am wondering if doing

Re: Problem with getting SOAP Header from response for spring-ws

2014-12-04 Thread hanusto
Hi, whole spring-ws component is cumbersome for processing of SOAP Header - outgoing with configuration that and parsing from response. For example check it: http://leakfromjavaheap.blogspot.cz/2014/05/multiple-soap-headers-in-apache-camels.html. On project I need send multiple soap header element

Re: Unexpected behaviour of Camel Simple expression

2014-12-04 Thread Taariq Levack
Hi and welcome You don't say what myEval does, but the following expression does what you want. INSERT INTO SOMETHING (${body[VALUE_ONE]},${body[VALUE_TWO]}) Taariq On Fri, Dec 5, 2014 at 1:51 AM, welshstew stuart.winches...@gmail.com wrote: Long time lurker - first time poster! Please be

Re: Unexpected behaviour of Camel Simple expression

2014-12-04 Thread welshstew
Thanks for your response Taariq - but as you can see form the log output this isn't the case. The myEval bean actually doesn't do anything but the String it receives during the simple expression evaluation is missing the single quotes - as per the log output: INSERT INTO SOMETHING (value,'Thing