Re: [BLOG] Light-weight, open-source integration: Apache Camel or Spring Integration?

2013-09-30 Thread Babak Vahdat
Hi Christian, Thanks for sharing this! Last year Bilgin also blogged about something similar: http://www.ofbizian.com/search/label/Spring%20Integration Babak Am 30.09.13 19:02 schrieb "Christian Posta" unter : >Hey all, > >Thought you might be interested in my latest blog post comparing Spri

Re: dynamicly change the url of the element after the camelcontext is started

2013-09-30 Thread Babak Vahdat
Hi Ali, you could make use of the PropertiesComponent for this purpose: http://camel.apache.org/properties.html#Properties-ConfiguringinJavaDSL You can find lots of tests about using this component inside Spring DSL here: https://github.com/apache/camel/tree/master/components/camel-spring/src/t

Re: dynamicly change the url of the element after the camelcontext is started

2013-09-30 Thread Babak Vahdat
You can make use of the other PropertiesComponent method to pass over an array of locations upfront: PropertiesComponent.setLocations(String[] locations) So given your code example it would become: PropertiesComponent pc = new PropertiesComponent(); pc.setLocations(new String[] {"classpath

Re: dynamicly change the url of the element after the camelcontext is started

2013-09-30 Thread Babak Vahdat
There's a also the following unit-test which should make the idea below clear to you (check the custom MyCustomResolver implementation): https://github.com/apache/camel/blob/master/camel-core/src/test/java/org/apache/camel/component/properties/PropertiesResolverTest.java Babak Babak V

Re: dynamicly change the url of the element after the camelcontext is started

2013-10-01 Thread Babak Vahdat
You can reach/do the same there as well see the setter method: BridgePropertyPlaceholderConfigurer#setResolver Through which you can inject your own PropertiesResolver implementation. So to recapitulate, just implement you own PropertiesResolver by extending DefaultPropertiesResolver. Then implem

Re: dynamicly change the url of the element after the camelcontext is started

2013-10-02 Thread Babak Vahdat
Hi Sorry for the confusion, given your concrete use-case I just added a test showing how you can achieve this "dynamic" behaviour: http://git-wip-us.apache.org/repos/asf/camel/diff/17f9678a Babak salemi wrote > Thanks Babak. > > When Spring comes up and it tries to resolve the properties for

Re: dynamicly change the url of the element after the camelcontext is started

2013-10-03 Thread Babak Vahdat
properties/CamelSpringPropertyPlaceholderConfigurer3Test.java Spring setup: https://github.com/apache/camel/blob/master/components/camel-spring/src/test/resources/org/apache/camel/component/properties/CamelSpringPropertyPlaceholderConfigurer3Test.xml Babak Babak Vahdat wrote > Hi > > Sorry for the co

Re: dynamicly change the url of the element after the camelcontext is started

2013-10-08 Thread Babak Vahdat
Hi No you don't really need to override the first method you've mentioned below, as just overriding the second one is enough and does the job for you. See the link to the test I've already provided you in this thread. That said, in case you want to override the way how the system properties shoul

Re: Camel quartz misfires and route not getting run / triggered after exception:ObjectAlreadyExistsException

2013-10-16 Thread Babak Vahdat
Hi Thanks for getting back. Your Quartz configuration seems fine. To me this sounds like a bug in Quartz itself as Quartz claims that the trigger is null/non-existing but when we try to schedule the Job using that given trigger it blows up with ObjectAlreadyExistsException. That said there's a r

Re: Camel JPA - Parameterized Queries?

2013-10-20 Thread Babak Vahdat
Hi Since Camel 2.12 there's a 'consumer.parameters' option for this purpose: http://camel.apache.org/jpa#JPA-Options I polished it's description a bit to make it clear how to use it. Takes a while to be updated on the site. Babak chatura wrote > This may be little outdated. But I also had tha

Re: Problems when using Spring DSL with the soap dataformat

2013-10-27 Thread Babak Vahdat
-- View this message in context: http://camel.465427.n5.nabble.com/Large-objects-in-headers-and-endpoints-tp5741858p5742271.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Problems when using Spring DSL with the soap dataformat

2013-10-27 Thread Babak Vahdat
The typo was on the Camel SOAP documentation page which is corrected now. Babak Christian Mueller wrote > Could you please tell as on which page you found the outdated code > snipped!? > > Best, > > Christian > - > > Software Integration Specialist > > Apache Member > V.P. Ap

Re: JPA component - Persist 1 record working but how to persist many records?

2013-10-27 Thread Babak Vahdat
Hi See the documentation about how to pass over more than one single JPA entity objects to the producer: http://camel.apache.org/jpa#JPA-Sendingtotheendpoint Babak richie.rivi...@gmail.com wrote > Hi All, > > Well I spent a few hours on this today trying to understand how to do > this. What I

Re: How to create a basic camel project with mvn for eclipse (for dummies)?

2013-11-01 Thread Babak Vahdat
Hi Welcome to the Camel community. Actually there's nothing you should do manually, e.g. creating a pom.xml by yourself. Take a look at the documentation to see how to make use of the Camel archetypes: http://camel.apache.org/camel-maven-archetypes.html Googling a bit you would also find bunch

Re: Error in ActiveMQ documentation

2013-11-04 Thread Babak Vahdat
Hi I assume this is the documentation being mentioned: http://camel.apache.org/activemq.html Which is now corrected: http://camel.465427.n5.nabble.com/CONF-Apache-Camel-gt-ActiveMQ-td5742617.html Though it will take a while to be updated on the site itself. Babak ceposta wrote > Knut-Havard,

Re: Camel quartz misfires and route not getting run / triggered after exception:ObjectAlreadyExistsException

2013-11-13 Thread Babak Vahdat
Hi As you've already reported by your first post, only increasing the number of running VM's makes this exception to happen (from 2 to 7). This CAN be a hint for a race-condition somewhere. There was a similar problem being reported while ago: https://issues.apache.org/jira/browse/CAMEL-6686 The

Re: testing camel : ClassNotFoundException - org.apache.camel.core.xml.AbstractCamelEndpointFactoryBean

2013-11-20 Thread Babak Vahdat
Hi I myself make use of eclipse but remember one of my collegues working for the same project having problem to run the same test which used to pass for me using eclipse but not for him with IntelliJ. After some digging I found out that the problem was the directory from where IntelliJ used to lau

Re: ProducerCache/LRUCache Memory leak ?

2013-11-24 Thread Babak Vahdat
Hi Hamid, in addition to what Claus has already recommended you, please note that the Apache Camel version 2.5.0 is REALLY old and is not supported by the community anymore. There're tons of improvements & bugs-fixes being included into the codebase since then. See the supported branches/versions

Re: Maven build failure

2013-12-06 Thread Babak Vahdat
Hi that dependency of camel-kestrel is NOT resolved through the central maven repo of Apache itself but through a proprietary one: http://files.couchbase.com/maven2/spy/spymemcached/2.8.4/ See also: https://github.com/apache/camel/blob/master/components/camel-kestrel/pom.xml#L43 It could be th

Re: JVM is running out of memory during full Camel build

2014-01-17 Thread Babak Vahdat
Hi The problem is that you *only* specify the initial and maximum heap size and leave the permanent generation space to be the default. Look at the options Claus has already provided by his reply and try again (... -XX:MaxPermSize=512m). Babak Am 17.01.14 18:20 schrieb "MichaelAtSAG" unter :

Re: show ftp commands

2014-02-19 Thread Babak Vahdat
Hi What you see from the documentation is the output of Apache Ftp Server (part of Apache Mina) running embedded inside the camel-ftp unit-tests. When you run the Apache Ftp Server standalone then this is how you can configure it's logging: http://mina.apache.org/ftpserver-project/configuration

Re: WARN: Unable to register shutdown hook due to JVM state

2014-05-12 Thread Babak Vahdat
Hi I guess your problem has nothing to do with the shutdown hook of Camel itself but with another hook log4j tries to setup as well: https://github.com/apache/logging-log4j2/blob/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java#L208 Maybe verify that the Camel /

Re: Problem with ETL example

2014-06-13 Thread Babak Vahdat
Hi The reason for the same logs you see is because of the consumeDelete option being set to false: http://camel.apache.org/jpa.html#JPA-Options So that the JPA consumer polls the *same* 2 entities again and again. This is just for the demonstration purpose so that you can continuously see someth

Re: AW: Problem with ETL example

2014-06-13 Thread Babak Vahdat
se the first route doesnt move the processed files to > somewhere else ... > http://camel.apache.org/file2.html > > > Jan > > >> -Ursprüngliche Nachricht- >> Von: Babak Vahdat [mailto: > babak.vahdat@ > ] >> Gesendet: Freitag, 13. Juni 2014 12

Re: AW: Problem with ETL example

2014-06-13 Thread Babak Vahdat
This is part of how Apache OpenJPA has been setup for this example, so if you don't want to see those logs then just tweak the logging configuration a bit: https://github.com/apache/camel/blob/master/examples/camel-example-etl/src/main/resources/META-INF/persistence.xml#L27 E.g. set all the level

Re: AW: Problem with ETL example

2014-06-13 Thread Babak Vahdat
In addition to what Jan has already said, maybe you want to go through the following blog post to get a better understanding about this example: http://saltnlight5.blogspot.ch/2013/08/getting-started-with-apache-camel-using.html Babak Licia wrote > Thanks a lot ! It works now, I mean nothing ge

Re: JPA entityType always Null

2014-06-14 Thread Babak Vahdat
Hi What is your JPA provider and which version of it (Eclipselink, OpenJPA or Hibernate-EntityManager, etc.) and how do you run your app? Standalone, inside a web-app or? Can you also try with the option value consumer.namedQuery=findUnprocessed without the Locationhistory prefix? Babak robbob

RE: JPA entityType always Null

2014-06-17 Thread Babak Vahdat
> Thanks, > -Rob > > > From: Babak Vahdat [via Camel] [mailto: > ml-node+s465427n5752291h54@.nabble > ] > Sent: Saturday, June 14, 2014 12:08 AM > To: Rob Terpilowski > Subject: Re: JPA entityType always Null > > Hi > > What is your JPA provider and wh

RE: JPA entityType always Null

2014-06-18 Thread Babak Vahdat
fix and the query does > not run at all, whereas when it runs with the prefix, it executes over and > over again. > > Thanks, > -Rob > > > From: Babak Vahdat [via Camel] [mailto: > ml-node+s465427n5752291h54@.nabble > ] > Sent: Saturday, June 14, 2014 12:08 A

Re: Problems prettyPrinting JSON after camel 2.14.0 upgrade

2014-09-27 Thread Babak Vahdat
Hi, I looked a bit into the codebase regarding this and spotted some space for improvement: - First of all there's a copy/paste typo at the following line (pasted from the previous code block): https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/model/dataformat

Re: Problems prettyPrinting JSON after camel 2.14.0 upgrade

2014-09-27 Thread Babak Vahdat
-7877 Babak David J. M. Karlsen wrote > Created https://issues.apache.org/jira/browse/CAMEL-7874 > > > 2014-09-27 17:13 GMT+02:00 Babak Vahdat < > babak.vahdat@ > >: > >> Hi, >> >> I looked a bit into the codebase regarding this and spotted some

Re: Problems prettyPrinting JSON after camel 2.14.0 upgrade

2014-09-28 Thread Babak Vahdat
t your app again. Babak David J. M. Karlsen wrote > Did not work with latest published snapshots - but perhaps a successful > build&deploy has not yet completed? > > 2014-09-27 22:40 GMT+02:00 Babak Vahdat < > babak.vahdat@ > >: > >> Thanks for raising the t

Re: RestBindingProcessor JSON Data Format Config

2014-09-29 Thread Babak Vahdat
Hi, The "json" and "outJson" variables you mentioned will *not* resolve to the same Java object (because of Camel Injector being invoked here behind the scenes while resolving), well almost always ... depending if e.g. an object under the name "json-jackson" is already bound to the Camel registery

Re: RestBindingProcessor JSON Data Format Config

2014-09-29 Thread Babak Vahdat
coming request if it doesn't have the response structure(!). Should > I raise this in JIRA? > > On Mon, Sep 29, 2014 at 8:33 PM, Babak Vahdat [via Camel] > < > ml-node+s465427n5757186h47@.nabble > > wrote: >> Hi, >> >> The "json" and &quo

Re: RestBindingProcessor JSON Data Format Config

2014-09-29 Thread Babak Vahdat
ahead and raise a JIRA ticket pointing to this thread in Nabble. Babak Sent from my iPhone... > On Mon, Sep 29, 2014 at 4:36 PM, Babak Vahdat > wrote: >> Yeah I see your point. BTW the same shortcoming is also given for the case >> where binding is XML and not Json, which

Re: Changes in Java 8 generics breaking Camel

2014-12-12 Thread Babak Vahdat
Am 12.12.14 16:48 schrieb "andrewcelerity" unter : >Java 8 made a changes to generics that is currently not allowing camel to >start up, and if it did start up would be in a bad state. Bridge methods >now get a copy of the annotations placed on the real method. This is bad >when combined with

Re: Changes in Java 8 generics breaking Camel

2014-12-15 Thread Babak Vahdat
Am 15.12.14 14:38 schrieb "andrewcelerity" unter : >I am using Camel 2.14.0. > >I do see one problem, though maybe it's just a lack of understanding of >the >process you're using to compare results. Annotations like @Consume have a >retention policy of runtime, meaning the compiler leaves them

Re: Changes in Java 8 generics breaking Camel

2014-12-21 Thread Babak Vahdat
Hi Thanks for raising the ticket and providing the "sample-app". The ticket is now fixed and your provided sample-app works on Java 8 as well. You’re welcome to test it by your “real-app” as well (either using the 2.14.2-SNAPSHOT or the master branch) and report us back if it would now work by yo

Re: Changes in Java 8 generics breaking Camel

2014-12-22 Thread Babak Vahdat
ases are typically 3 months apart. So I guess the 2.14.2 release will be available around March 2015. Babak > >On 12/21/14, 8:16 AM, Babak Vahdat [via Camel] wrote: >> Hi >> >> Thanks for raising the ticket and providing the "sample-app". The >> ticket

Re: A lot of spam

2017-08-22 Thread Babak Vahdat
> On 22 Aug 2017, at 16:35, souciance wrote: > > Github issues or stackoverflow would be nice as the options to write > comments and do other things are vastly better but yeah as a humble user it > is a bit annoying to receive so much spam from nabble.. > Hi See http://camel.apache.org/2017/

Re: [HEADS UP] Camel K is here!

2018-10-17 Thread Babak Vahdat
Awesome and very well done, kudos! Babak > On 17 Oct 2018, at 00:24, Nicola Ferraro wrote: > > Hi folks, > after some months of brainstorming with the community and a bit more than > one month of development, our Camel K project has reached a good level of > stability and I've published the fir

Re: Camel 2.22.1 and Rabbitmq getting a error

2018-11-09 Thread Babak Vahdat
Hi Alireza I guess 15672 is the port for the management plugin which handles the HTTP requests, not the AMQP ones. Can you try using the default 5672 port? Babak > On 10 Nov 2018, at 07:43, Alireza Salemi wrote: > > Hi, > > I am trying to connect Camel to RabbitMq but I am getting the error

Re: Camel 2.22.1 and Rabbitmq getting a error

2018-11-11 Thread Babak Vahdat
Hi Alireza I tried to reproduce your issue at the following repo: https://github.com/bvahdat/camel-user-forum-rabbitmq Starting the App using the the port 15672 runs into problems similar to yours, that said the stack trace is *not* exactl

Re: Quickfix - Add tag to Logon message

2021-03-01 Thread Babak Vahdat
Hi Not sure but I assume you should be able to do so following the same approach as per the example below: https://github.com/apache/camel/blob/master/components/camel-quickfix/src/test/java/org/apache/camel/component/quickfixj/examples/AuthenticationExample.java#L63

Re: How to Add SOAP header to XML Web service

2021-03-02 Thread Babak Vahdat
Hi There’s an example from the Camel distribution which you may look into: https://github.com/apache/camel-examples/tree/master/examples/cxf-proxy Babak > On 2 Mar 2021, at 08:22, Ahmad Abushosheh | ICSFS > wrote: >

Re: Can I call a PostgreSQL function from Camel-sql

2021-03-02 Thread Babak Vahdat
Hi There’s documentation about the IN, OUT and INOUT parameters for that: https://camel.apache.org/components/latest/sql-stored-component.html#_in_parameters Babak > On 1 Mar 2021, at 23:49, SRIKANT MVS wro

Using the recently released Apache Camel 3.10

2021-05-21 Thread Babak Vahdat
Hi Running the following Test: https://github.com/apache/camel-spring-boot-examples/blob/main/rest-jpa/src/test/java/org/apache/camel/example/spring/boot/rest/jpa/ApplicationTest.java#L62

Re: Using the recently released Apache Camel 3.10

2021-05-21 Thread Babak Vahdat
what the new key is and then you can fix the > example, thanks Thanks, would you review please: https://github.com/apache/camel-spring-boot-examples/pull/34 <https://github.com/apache/camel-spring-boot-examples/pull/34> Babak > > On Fri, May 21, 2021 at 4:02 PM Babak Vahdat

Re: Using the recently released Apache Camel 3.10

2021-05-21 Thread Babak Vahdat
> On 21 May 2021, at 20:46, Claus Ibsen wrote: > > On Fri, May 21, 2021 at 8:11 PM Babak Vahdat > wrote: >> >> >> >>> On 21 May 2021, at 17:11, Claus Ibsen wrote: >>> >>> Hi >>> >>> Its the context-path mappin

Failing to upgrade to 3.11.0

2021-07-07 Thread Babak Vahdat
Hi Could this be a bug in the dependency chain required for a Camel SB App with XML-DSL? I get the following exception as trying to upgrade from 3.7.4 to 3.11.0 (running on JDK 11). This happens the same no matter if I run the tests or try to boot up the App locally with "mvn spring-boot:run”

Re: Failing to upgrade to 3.11.0

2021-07-07 Thread Babak Vahdat
Sorry for the noise, that was a stupid mistake of mine. Problem solved. Babak > Am 07.07.2021 um 09:26 schrieb Babak Vahdat : > > Hi > > Could this be a bug in the dependency chain required for a Camel SB App with > XML-DSL? > > I get the following exception as tryi

Re: [VOTE] Release Apache Camel K 1.9.2

2022-05-17 Thread Babak Vahdat
+1 (binding) Thanks Andrea! Babak > On 17 May 2022, at 11:29, Andrea Cosentino wrote: > > Hello all: > > This is a combined vote to release Apache Camel K 1.9.2. > > This is a patch release fixing an issue with OLM installation and Kamelets > support. > > Camel K release files: > https://dis

Re: [VOTE] Release Apache Camel Kamelets 0.9.2

2022-10-26 Thread Babak Vahdat
+1 (binding) Thanks Andrea! — Babak > Am 26.10.2022 um 10:25 schrieb Andrea Cosentino : > > Hello all: > > This is a vote for releasing only camel-kamelets 0.9.2. > > The release contains fixes. > > Kamelets release files: > https://dist.apache.org/repos/dist/dev/camel/camel-kamelets/0.9.2/

Re: Streamcaching and spooling

2022-11-24 Thread Babak Vahdat
Hi I remember there was a rational behind that: https://issues.apache.org/jira/browse/CAMEL-18098 "As spooling to disk requires that the volume have space and the user has permission to write to disk etc. For container workloads this is not a

Re: Streamcaching and spooling

2022-11-24 Thread Babak Vahdat
> On 24 Nov 2022, at 16:48, Claus Ibsen wrote: > > On Thu, Nov 24, 2022 at 3:27 PM Babak Vahdat > wrote: > >> Hi >> >> I remember there was a rational behind that: >> Sorry I made a tiny typo above, I meant “rationale” and not “rational”. Babak &

Re: Templates mix xml and java builder

2022-11-25 Thread Babak Vahdat
Hi You can mix and match, example given this template in XML with the Id "myTemplate": https://github.com/apache/camel-examples/blob/main/examples/routetemplate-xml/src/main/resources/templates/my-route-templates.xml#L22 Could be instantiated as a route in Java DSL as in the other example here:

Re: BUG - missing configuration placeholder possibility for id in REST DSL

2022-12-12 Thread Babak Vahdat
Hi I ran into a similar but not the same issue I’m working on to fix and PR soon. https://issues.apache.org/jira/browse/CAMEL-18809 — Babak > On 12 Dec 2022, at 13:24, Nikola Glidzic wrote: > > Sorry guys, I didn't know image can't be sent.

RouteConfiguration#OnCompletion when error

2022-12-21 Thread Babak Vahdat
Hi There seems to be a bug in RouteConfiguration#OnCompletion support which in case of an error, then it would run a given Callback as many times as the number of the routes that you have. However if no error then it gets called exactly once which is as expected. Here a simple reproducible: h

Re: RouteConfiguration#OnCompletion when error

2022-12-21 Thread Babak Vahdat
And using 3.20.0 here... > On 22 Dec 2022, at 07:36, Babak Vahdat > wrote: > > Hi > > There seems to be a bug in RouteConfiguration#OnCompletion support which in > case of an error, then it would run a given Callback as many times as the > number of the routes that

Re: RouteConfiguration#OnCompletion when error

2022-12-22 Thread Babak Vahdat
and "fix" this. And would be good to > include unit test with the fix. > > > On Thu, Dec 22, 2022 at 7:38 AM Babak Vahdat > wrote: > >> And using 3.20.0 here... >> >>> On 22 Dec 2022, at 07:36, Babak Vahdat >> wrote: >>> >>>

Re: RouteConfiguration#OnCompletion when error

2022-12-22 Thread Babak Vahdat
> On 22 Dec 2022, at 14:11, Babak Vahdat > wrote: > > Thanks for the confirmation. > > Yeah OnCompletionProcessor#onFailure callback was exactly where I stumbled > upon as I was debugging. > > Will then create the JIRA with the corresponding fix. Raised htt

Re: Camel EventHub issue

2022-12-31 Thread Babak Vahdat
Hi Azure Servicebus makes use of Qpid Proton-J as the underlying messaging library which support a predefined set of object types for the body and headers of a given EventData object through the AMQP protocol: https://learn.microsoft.com/en-us/java/api/com.azure.messaging.eventhubs.eventdata?vi

Re: Camel EventHub issue

2022-12-31 Thread Babak Vahdat
> On 31 Dec 2022, at 10:16, Babak Vahdat > wrote: > > Hi > > Azure Servicebus makes use of Qpid Proton-J as the underlying messaging > library which support a predefined set of object types for the body and > headers of a given EventData object through the AMQP pro

Re: [VOTE] Release Apache Camel K 1.12.1 and Camel K runtime 1.17.1 - second attempt

2023-06-14 Thread Babak Vahdat
+1 (binding) Thanks Pasquale! -- Babak > On 7 Jun 2023, at 14:56, Pasquale Congiusti > wrote: > > Hello, > > This is a combined vote to release Apache Camel K 1.12.1 and Camel K > Runtime1.17.1. The release also contains the Camel K CRD 1.12.1, a Java > client for Kubernetes Camel K CRDs. Th

Re: [VOTE] Release Apache Camel Kamelets 4.0.1

2023-09-28 Thread Babak Vahdat
+1 (binding) Thanks Andrea! -- Babak > On 26 Sep 2023, at 10:13, Andrea Cosentino wrote: > > Hello all, > > This is a vote for releasing camel-kamelets 4.0.1 > > This release will support the 4.0.1 release of Apache Camel. > > Kamelets release files: > https://dist.apache.org/repos/dist/de

Re: [VOTE] Release Apache Camel Kamelets 4.1.0

2023-10-27 Thread Babak Vahdat
+1 (binding) Thanks Andrea! --- Babak > On 23 Oct 2023, at 10:50, Andrea Cosentino wrote: > > Hello all, > > This is a vote for releasing camel-kamelets 4.1.0 > > This release will support the 4.1.0 release of Apache Camel. > > Kamelets release files: > https://dist.apache.org/repos/dist/d

Re: [VOTE] Release Apache Camel Kamelets 4.0.3

2024-01-17 Thread Babak Vahdat
+1 (binding) Thanks Andrea! -- Babak > Am 17.01.2024 um 09:36 schrieb Andrea Cosentino : > > Hello all, > > This is a vote for releasing camel-kamelets 4.0.3 > > This release will support the 4.0.3 release of Apache Camel. The aim of the > release is to have a catalog to use in generating ca

Re: CSV component and Mac line endings (carriage return only)

2013-04-04 Thread Babak Vahdat
Hi No the version 1.0-r706899_5 is the most recent version of this SMX bundle and *not* 1.0-r706900_3, as you can see from it's POM history: http://svn.apache.org/viewvc/servicemix/smx4/bundles/trunk/commons-csv-1.0/pom.xml?view=log Other way is to check the file timestamp of the different versi

Re: CSV component and Mac line endings (carriage return only)

2013-04-05 Thread Babak Vahdat
I think what Henryk has explained there in that thread is about *his own code* he intends to donate to Apache Camel in the future. Babak mdo wrote > Hey Babak, > > thanks for your comprehensive answer! > > I tried Bindy before, but for my use case I preferred the CSV component > because it del

Re: Storing camel routes information in a DB.

2013-04-09 Thread Babak Vahdat
Hi The following example of the Camel distribution should give you an idea how to achieve this: http://camel.apache.org/tracer-example.html Babak pbs wrote > My use case is quite simple > As soon as xml file arrives in one hot folder, I use came routes to move > it to another file directory. *

Re: 2.11 download links broken - activemq+tomcat+camel example wanted

2013-04-21 Thread Babak Vahdat
Hi probably not all mirrors have been updated yet but you could download the tarball from the central Repo which includes that example as well: http://repo.maven.apache.org/maven2/org/apache/camel/apache-camel/2.11.0/apache-camel-2.11.0.tar.gz Also please make sure you're properly subscribed to

Re: Bindy fixed length

2013-04-27 Thread Babak Vahdat
Hi Charles, This new test being committed into trunk is failing for me: ~/dev/workspace/camel/components/camel-bindy>mvn test -Dtest=BindySimpleFixedLengthWithLinkTest [INFO] Scanning for projects... [INFO] [INFO] -

Re: camel-quickfix RequestReplyExample java.io.IOException

2013-04-30 Thread Babak Vahdat
yo would try the same now (e.g on the trunk code) then the behaviour you're describing below is not given anymore. Babak stevebate wrote > On Feb 27, 2013, at 3:12 AM, "Babak Vahdat [via Camel]" < > ml-node+s465427n5728204h85@.nabble > > wrote: > >> H

Re: WireTap doesn't process the messages in the order they arrived for each message

2013-05-03 Thread Babak Vahdat
Hi, The reason of the behavior you're observing is simply because of a current bug in Camel itself as given your 2 routes below, the current logic creates TWO instances of ExecutorService and not as you would expect ONE ExecutorService object (each being passed to each of the 2 WireTapProcessor in

Re: WireTap doesn't process the messages in the order they arrived for each message

2013-05-03 Thread Babak Vahdat
ptions. > > See more details at > http://camel.apache.org/threading-model.html > > > > On Fri, May 3, 2013 at 2:52 PM, Babak Vahdat > wrote: >> Hi, >> >> The reason of the behavior you're observing is simply because of a current >> bug in Camel itself as

Re: WireTap doesn't process the messages in the order they arrived for each message

2013-05-03 Thread Babak Vahdat
se! > > Best, > Christian > > > On Fri, May 3, 2013 at 3:38 PM, Babak Vahdat < > babak.vahdat@ > >wrote: > >> Yeah that was the cause of the behaviour threadPoolProfile instead of >> threadProfile, sorry! >> >> Babak >> >> Am 03.05.20

Re: Class Cast error upon deploying Camel web app

2013-05-03 Thread Babak Vahdat
Hi I assume the JAXB version being provided by JBoss 6 is pretty outdated and not really compliant with Camel 2.10.4 as JBoss 6 is from end 2010. Do you have any jaxb-impl inside your WAR/EAR being included? If not maybe try to add the following dependency inside the POM of your Web-App so that j

Re: CamelOne

2013-05-27 Thread Babak Vahdat
Am 27.05.13 21:53 schrieb "Christian Müller" unter : >CamelOne 2013 (http://camelone.org/) is in about two weeks! >Who will be there? Hi Christian, Unfortunately I will not be able to attend. Babak >I want to meet as many Camel user/contributors/committers/PMC's as >possible. May be Sunday 0

Re: Difference between method attribute 'bean' and 'ref'

2013-05-28 Thread Babak Vahdat
Am 28.05.13 15:57 schrieb "AlanFoster" unter : >Hi, > >I wonder if there a way to provide any sort of deprecated metadata within >the generated Camel xsd? For instance this metadata would be great for >tooling, as I would really like to highlight elements/attributes as being >deprecated within c

Re: New Line in

2013-05-28 Thread Babak Vahdat
Am 28.05.13 22:22 schrieb "Cristiano Costantini" unter : >Hi All, > >if I have a new line in a Simple expression like the following > > >${header.myHeader} in >'aLongValueOne,aLongValueTo,aLongValueThree,aLongValueFour' > > > > >I get a >org.apache.camel.language.simple.types.SimpleIllegalSyntax

Re: Problem with httpClient.connectionManagerTimeout on Camel 2.10.4

2013-05-28 Thread Babak Vahdat
Hi The httpClient.connectionManagerTimeout option doesn't bring the effect you're expecting, see the Javadoc for it's semantics: http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/params/HttpClientParams.html If an IP-Address can't be resolved you will immediately end up w

Re: Global definition for HttpClient.XXX options

2013-05-28 Thread Babak Vahdat
Hi One possible way would be to make use of a PropertyPlaceholder e.g. {{my-global-httpClient-property-placeholder}} where you configure once and reuse all over the places where appropriate: http://camel.apache.org/using-propertyplaceholder.html Babak -- View this message in context: http://

Re: Problem with httpClient.connectionManagerTimeout on Camel 2.10.4

2013-05-28 Thread Babak Vahdat
Yeah right, indeed what Claus has proposed is much easier to implement and also elegant thanks to the "route-advice" facility in Camel. Indeed on Page 182 of the Book there's an exact matching example for your use case: @Test public void testSimulateErrorUsingInterceptors() throws Exception {

Re: references in Camel using Blueprint.

2013-06-05 Thread Babak Vahdat
Hi Bruno Welcome to the Camel community! AFAIK this a known limitation by Blueprint and there're open JIRA tickets around reporting this. There's a solution I've seen on the SMX user forum which I think can help in your case: http://servicemix.396122.n5.nabble.com/Property-in-OSGi-service-refe

Re: Bindy Date Pattern Error

2013-07-09 Thread Babak Vahdat
Hi As the test being added by Christian already demonstrates it, you should make use of the java.util.Date and NOT java.sql.Date. Following are the formats being supported: http://camel.apache.org/maven/current/camel-bindy/apidocs/org/apache/camel/dataformat/bindy/Format.html Feel free to log a

Re: Camel Example Restlet JDBC Master

2013-07-23 Thread Babak Vahdat
Hi I assume you mean the following example: https://github.com/bibryam/camel-example-restlet-jdbc Which is an ASL 2.0 example about using Apache Camel contributed to the community by Bilgin Ibryam (A very talented Apache Camel Committer). I made a pull request to make the example work again: h

Re: Where is org.apache.camel.spring.SpringRunWithTestSupport

2013-07-24 Thread Babak Vahdat
Hi I'm the guilty one who has added this base class (because of https://issues.apache.org/jira/browse/CAMEL-5998) so why I know where it resides :-) https://git-wip-us.apache.org/repos/asf?p=camel.git;a=blob;f=components/camel-spring/src/test/java/org/apache/camel/spring/SpringRunWithTestSupport.

Re: ftp component, no download

2013-08-14 Thread Babak Vahdat
Hi Invoking start on the CamelContext is a non-blocking call, check links below to see how to keep your standalone Camel application running: http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html http://stackoverflow.com/questions/1846791/camelcontext-start-doesnt-block

Re: Load test on camel-netty

2013-08-14 Thread Babak Vahdat
Hi The maximumPoolSize option is *actually* the value for the corePoolSize of the ThreadPool being in charge, which is set to 100 in your case (the option naming seems a bit misleading to me). Can you try with smaller values for this option to see if you can still reproduce the problem. Other tha

Re: ftp component, no download

2013-08-14 Thread Babak Vahdat
In contrast to your first route (which consumes from the FTP endpoint) this second route of yours does *not* own a polling consumer: http://camel.apache.org/polling-consumer.html So in this case you have to invoke your route (synchronously), through a producer template or another route, etc.. So

Re: Load test on camel-netty

2013-08-14 Thread Babak Vahdat
dade e compromisso com o >Meio Ambiente. >O conteúdo desta mensagem é confidencial e pode ser privilegiado. É >vedada a sua cópia ou divulgação. >The contents of this message are confidential and may be privileged. >Copying or disclosing is prohibited. > > >-Original M

Re: Load test on camel-netty

2013-08-14 Thread Babak Vahdat
I've committed a test (into the master, 2.11.x and 2.10.x branches) forcing 20 *simultaneous* client calls without any success to reproduce your problem: http://git-wip-us.apache.org/repos/asf/camel/diff/2601e560 Babak Babak Vahdat wrote > Any chance to test on the latest version of th

Re: Producer template and spring xml defaultendpoint error

2013-08-18 Thread Babak Vahdat
Hi I guess you should adjust your XML namespace as you make use of Blueprint and not Spring, so instead of: http://camel.apache.org/schema/spring";> Try it with: http://camel.apache.org/schema/blueprint";> Babak Maurice wrote > Using camel 2.11.0, Karaf 2.3.1. with blueprint. > I am tryi

Re: Producer template and spring xml defaultendpoint error

2013-08-18 Thread Babak Vahdat
No, to my knowledge this is NOT complete :-) as you just provide a PARTIAL snapshot of your Blueprint and then expect people to understand what is going wrong in your App. Would you mind to share the whole thing with us, example the closing tag is missing by your provided config. Other than that

Re: Property Placeholder for Aggregation Completion Timeout Value in Blueprint

2013-08-19 Thread Babak Vahdat
Hi Can you try upgrading to 2.10.5, see the blue box here about the xs:int type attribute when OSGi Blueprint is in use: http://camel.apache.org/using-propertyplaceholder.html#UsingPropertyPlaceholder-UsingpropertyplaceholdersforanykindofattributeintheXMLDSL Babak Scott Parkerson-4 wrote > I'm

RE: Load test on camel-netty

2013-08-20 Thread Babak Vahdat
If Oracle/Sun JDK is in use then maybe ask for a heap dump as the OutOfMemoryError happens: http://docs.oracle.com/cd/E15289_01/doc.40/e15062/optionxx.htm#BABBBEAJ Then you could analyze the dump (e.g. using http://www.eclipse.org/mat/) to see where that huge memory consumption or the leak (if an

RE: Load test on camel-netty

2013-08-20 Thread Babak Vahdat
iente. > O conteúdo desta mensagem é confidencial e pode ser privilegiado. É vedada > a sua cópia ou divulgação. > The contents of this message are confidential and may be privileged. > Copying or disclosing is prohibited. > > > -Original Message- > From: Babak Vahd

Re: New book about Apache Camel

2013-09-01 Thread Babak Vahdat
Hi Bilgin This sounds really awesome, congratulations! Babak bibryam wrote > I'm excited to announce that my book "Instant Apache Camel Message > Routing" is published! > > "Instant Apache Camel Message Routing" will help you to get started > with Camel and Enterprise Integration Patterns in m

Re: LogProcessor & Simple UnaryExpression

2013-09-25 Thread Babak Vahdat
Am 25.09.13 20:56 schrieb "Charles Moulliard" unter : >Hi, > >Is there a trick to avoid that Simple language uses unary expression when >the mog message contains '---' characters Hi This has been already fixed so maybe try to upgrade: https://issues.apache.org/jira/browse/CAMEL-6414 Babak >

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 '

  1   2   3   4   >