using field as key+value on the BeanIo

2013-09-26 Thread skumar
Hi All, I am using BeanIO for defining the file format while marshal/writing my output stream.Here each field of a particular record is some sort of a key/Value and separated by a delimiter. Here key is the Tag code(e.g. AC) and value is tag description either blank or represent a database f

[BUG?] Quartz2 - Make sure camel-quarz2.jar is on the classpath.

2013-09-26 Thread abaldoni
Hello, I'm trying to implement a polling JPA endpoint like this: from("jpa:...?&scheduler=quartz2&scheduler.cron=0+0+0+0+JAN,APR,JUL,OCT+*+*").marshal().jaxb().to("mock:xml"); I'm included the camel-quartz2 dependency in my project; however, when I run it, I get the following error: Cannot

CAmel : Using Springg DSL to fetch atom feeds. But not working

2013-09-26 Thread Ankur
Hi, I'm using *atom* component to fetch feeds using Spring DSL but getting below error. Please help me with this error hope i'm not doing anything wrong. I have already added all the dependencies required for fetching feeds. If particular version is need for any dependency kindly let me know Erro

Re: Mocking CXF service with XSLT

2013-09-26 Thread Jens
Jens wrote > Hi, > > I'm trying to "implement" a CXF JAX-WS service using an XSL > transformation, ie. > > from("cxf:bean:...").to("xslt:..."); > > The CXF endpoint has a JMSConfiguration with a replyDestination attached > and I also tried setting exchangePattern=InOut explicitly but > unfortuna

Re: Mocking CXF service with XSLT

2013-09-26 Thread Christian Posta
Put together a sample route/test case and I can dig into it for you. On Wed, Sep 25, 2013 at 8:10 AM, Jens wrote: > Hi, > > I'm trying to "implement" a CXF JAX-WS service using an XSL transformation, > ie. > > from("cxf:bean:...").to("xslt:..."); > > The CXF endpoint has a JMSConfiguration with

Re: CAmel : Using Springg DSL to fetch atom feeds. But not working

2013-09-26 Thread Christian Posta
what version of camel are you using and are there any dependency version clashes on the classpath? On Thu, Sep 26, 2013 at 4:30 AM, Ankur wrote: > Hi, > > I'm using *atom* component to fetch feeds using Spring DSL but getting > below > error. > Please help me with this error hope i'm not doing a

Re: Camel Quartz Query

2013-09-26 Thread Christian Posta
+1 idempotent consumer. that should work nicely. On Wed, Sep 25, 2013 at 10:59 PM, Taariq Levack wrote: > Hi > > Can you use an idempotent consumer[1] before sending to the web service? > http://camel.apache.org/idempotent-consumer.html > > If you did have a sort of 'busy' status, you'd have to

Re: Starting method when transfer completes

2013-09-26 Thread Christian Posta
The file component (ftp derives from it) keeps track of "batch size" and "batch index"... that is.. the number of files it grabbed per poll...you could use those numbers + and aggregator or resequencer or something to determine whether you've processed all the files, then call to a bean: component

Re: CAmel : Using Springg DSL to fetch atom feeds. But not working

2013-09-26 Thread Babak Vahdat
Hi As Christian has already said, the axiom jar version being on the classpath is clashing, e.g. camel-atom 2.12.1 uses axiom version 1.2.14, that's the jar "axiom-api-1.2.14.jar". Maybe try to find out which exact version of this jar you have on the classpath as your app is running, e.g. using '

Is it possible to retrieve a stream for a Exchange Body?

2013-09-26 Thread niels_s
Hey there, I'm experimenting and creating my own component to use Apache Tika. Now I was wondering if it's possible to retrieve a stream for a Exchange Body? I'm trying like this right now but doesn't seem to do the job: InputStream is = exchange.getIn().getBody(java.io.InputStream.class); I'm

Re: [BUG?] Quartz2 - Make sure camel-quarz2.jar is on the classpath.

2013-09-26 Thread Babak Vahdat
Hi Thanks for looking into this and raising the JIRA, yes indeed bunch of the classes of camel-quartz2.jar are missing inside the 2.12.0 / 2.12.1 jars on the central. Babak abaldoni wrote > Hello, >I'm trying to implement a polling JPA endpoint like this: > > from("jpa:...?&scheduler=quart

RE: CAMEL-SOAP uses wrong namespace

2013-09-26 Thread Ziemer, Tom
Hi, I was able to trace the problem to org.apache.camel.dataformat.soap.name.TypeNameStrategy, which is responsible to find the namespace for a given type. In my case, I had an XJC-generated class that did have an (almost empty) @XmlType and an @XmlRootElement with name and namespace. The pro

Re: CAmel : Using Springg DSL to fetch atom feeds. But not working

2013-09-26 Thread Ankur
Its a maven project and i am using 2.12.1 (camel) and 3.2.4 (spring) version. There are no dependency clashes on classpath. -- View this message in context: http://camel.465427.n5.nabble.com/CAmel-Using-Springg-DSL-to-fetch-atom-feeds-But-not-working-tp5740228p5740239.html Sent from the Camel

Dynamic generation of URI in enricher

2013-09-26 Thread Goyal, Arpit
Hi All, I would like to use enricher along with dynamic URI (See sample XML below), where the URI is my custom endpoint. I know we can't do the same in camel:to and we would need to use it camel:recipientList (http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html)

Re: [BUG?] Quartz2 - Make sure camel-quarz2.jar is on the classpath.

2013-09-26 Thread Babak Vahdat
O.K. I've fixed this both on the master as well as the the 2.12.x branch. The question is now IF and HOW FAST the Apache Camel PMC would decide to release 2.12.2. For the time being, as a temporary solution, you could of course patch the POM of this component and build the bundle by yourself. Bab

Re: [BUG?] Quartz2 - Make sure camel-quarz2.jar is on the classpath.

2013-09-26 Thread abaldoni
Thank you! Alessandro Baldoni Comune di Faenza Servizio Informatica Tel. 0546 691224 Cel. +39 334 6012463 From: "Babak Vahdat [via Camel]" To: abaldoni Date: 26/09/2013 17:00 Subject:Re: [BUG?] Quartz2 - Make sure camel-quarz2.jar is on the classpath. O.K. I've fixed thi

Failover JMS and Camel DefaultTimeoutManager failures

2013-09-26 Thread Hendley, Sam
Hello all. I am working with a large application written in camel. We have recently started noticing (it may have been occurring for a while) that in some cases a sort of death spiral occurs. Out setup: Camel 2.10.1 (unfortunately we can't upgrade) ActiveMQ 5.6.0 (unfortunately we can't upgrade

Re: Is it possible to retrieve a stream for a Exchange Body?

2013-09-26 Thread Christian Posta
Well, what exception are you getting? Or is it not throwing an exception? Camel uses type converters [1] to do that kind of conversion. Depending on the body type currently, you may have to write your own converter. [1]... http://camel.apache.org/type-converter.html On Thu, Sep 26, 2013 at 5:02

Re: Failover JMS and Camel DefaultTimeoutManager failures

2013-09-26 Thread Christian Posta
Post your route, your configs, and a description of what it does, who are its clients, etc. Also link to the bug in the current code. On Thu, Sep 26, 2013 at 8:02 AM, Hendley, Sam wrote: > Hello all. > > I am working with a large application written in camel. We have recently > started noticing

Camel multicast and exception

2013-09-26 Thread Erwin Etchart
Based on this example of a camel route aggregationKey

Re: Camel multicast and exception

2013-09-26 Thread Christian Posta
Take a look at try-catch block. Or try adding exception handlers to each individual "direct" route? On Thu, Sep 26, 2013 at 8:55 AM, Erwin Etchart wrote: > Based on this example of a camel route > > aggregationRepositoryRef="aggregator.container.2" completionSize="2" > completionTimeout="36

Re: Camel multicast and exception

2013-09-26 Thread Erwin Etchart
Thanks for your response Christian, Do you know if i try with "try catch" how can i do to define a redelivery police of this specific direct component? Regards Erwin 2013/9/26 Christian Posta > Take a look at try-catch block. Or try adding exception handlers to each > individual "direct"

Re: Camel multicast and exception

2013-09-26 Thread Christian Posta
You can specify an error handler for the specific route which is where you specify redelivery semantics: http://camel.apache.org/error-handler.html On Thu, Sep 26, 2013 at 9:33 AM, Erwin Etchart wrote: > Thanks for your response Christian, > > Do you know if i try with "try catch" how can i do

Re: Camel multicast and exception

2013-09-26 Thread Erwin Etchart
Thanks , i will try that. Regards Erwin 2013/9/26 Christian Posta > You can specify an error handler for the specific route which is where you > specify redelivery semantics: > > http://camel.apache.org/error-handler.html > > > On Thu, Sep 26, 2013 at 9:33 AM, Erwin Etchart >wrote: > > > Tha

Re: Consuming multiple JMS messages in one single transaction

2013-09-26 Thread Bengt Rodehav
What about using the "sjms" component instead of the "jms" component. The documentation says it supports "Transacted Batch Consumers & Producers". I haven't used this feature myself but I have just started to use the sjms component since I prefer not using Spring. /Bengt 2013/9/24 bacar > Hi,

Re: CAmel : Using Springg DSL to fetch atom feeds. But not working

2013-09-26 Thread Christian Müller
java.lang.NoSuchMethodError means you do not use the right Axiom version. Best, Christian - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https://www.apache.org/foundation

Re: Unreleased thread, possible in SMPP component

2013-09-26 Thread Christian Müller
This project moved to GitHub [1]. You can have a look whether this issue is already solved or not. But because there is no newer version available than Camel is using, this issue is not fixed yet in Camel... [1] https://github.com/uudashr/jsmpp Best, Christian - Software Integrat

contentObjectId in XML Security (camel-xmlsecurity)

2013-09-26 Thread atiato
Dears , Please let me know how to fill contentObjectId when signing XML messages. Please example I already searched github and sources and didn't have the luck to find any . Thanks, Omar Atia -- View this message in context: http://camel.465427.n5.nabble.com/contentObjectId-in-XML-Security

CAMEL + CXF+ ACTIVE MQ

2013-09-26 Thread pannereselvam
Hi, I have to perform all these (camel, cxf and active mq) in Fuse 7.1.0 Requirement: Retrive Customer details based on given customer id. came- Router , CXF - web service Active MQ - Message queue. Question: In webservice, How should sends the response to same endpoint where request generated ?

Camel-JmsComponent ThreadContext issues

2013-09-26 Thread ravi.4indra
Hi, we set the ThreadContext value for every request coming in and we use that value in logging. when the message is picked up from the queue (which is done by QueueReplyManager which runs in a different thread) the thread context value in that thread(QueueReplyManager thread) is remaining same f

Re: CAmel : Using Springg DSL to fetch atom feeds. But not working

2013-09-26 Thread Ankur
Hi Thanks for pointing me to the classpath clashes. Though its not on "axiom-api", it was on "slf4j-log4j". After removing that clashes i resolved that. But i started getting new error. Could you help me on this org.apache.abdera.parser.ParseException: java.lang.ArrayIndexOutOfBoundsException

Use property placeholders in CronScheduledRoutePolicy

2013-09-26 Thread berdoni
Hi, I use CronScheduledRoutePolicy to schedule the execution on a File route. CronScheduledRoutePolicy routePolicy = new CronScheduledRoutePolicy(); routePolicy.setRouteStartTime("0 0/5 * * * ?"); routePolicy.setRouteStopTime("59 0/2 * * * ?"); Is it possible to use property placeholders and lo

CamelTestSupport Needs a New Method

2013-09-26 Thread kraythe .
There is a problem with the CamelTestSupport class in that if you call getMockEndpoint on an endpoint that doesnt exist, it blithely returns you an endpoint connected to nothing. The problem is you end up chasing endless test failures when the fact is your endpoint is not even there. So I suggest a