Re: Interceptable Producer

2012-10-05 Thread Benjamin Graf
Hi Raúl, I tried to set explizit interception as mentioned, but it doesn't work either. If I read code right then interception is defined as a chain of processors when route is initialized. I actually have not found any line of code in camel-core where dynamic initialized ProducerTemplates are con

Re: Period character issue with camel-mongo.

2012-10-05 Thread Mark Doyle
Yes, I read about the cloud idea on the dev mailing list :) It looks like you were correct. I changed the camel-test-spring dependency to 2.10.0 as follows: org.apache.camel camel-test-spring 2.10.0 test The tests now work. It looks like the change happened in the move

Re: Mail reading goes in loop

2012-10-05 Thread Filippo Balicchia
Hi Ketan, Mail reading doesn't go in loop but read mail every 100 millisecond. Please increases the consumer.delay to 6 and tell me if problem continue. Regards --Fillippo 2012/10/5 Ketan Barapatre : > Hello All, > > I am reading mail using Mail Component http://camel.apache.org/mai

Re: Period character issue with camel-mongo.

2012-10-05 Thread Raul Kripalani
Hi Mark, I just committed a fix for the tests in r1394865. It turns out that the PropertiesComponent was being added too late in the route lifecycle, which worked before r1373402, but not after. You should now be able to run the tests locally simply by starting MongoDB. The tests are prepared to

Camel SJMS Testers Needed

2012-10-05 Thread Scott England-Sullivan
Hello Camel Users: As part of the 2.11.0 release of Camel there will be a new JMS Component, Camel SJMS. SJMS contains a completely new JMS client API created for use with the Camel architecture. Beyond the JMS basics, SJMS features new capabilities. They include: * Internal Session, Consumer/P

Re: JPA component and JTA

2012-10-05 Thread Lucas Amador
Thanks for the point! Now the transaction manager seems to be *working* but when an exception is throwed the rollback doesn't seem to be executed. well, I see the next lines in console org.spring.spi.TransactionErrorHandler.processInTransaction - Transaction begin (0x3643b5bb) for ExchangeId: I

RE: Netty or Mina Async in the same socket

2012-10-05 Thread Flavio Magacho - M4U
Claus, Thank you. It works, I think that I missed the transform tag :). I Simply set the body. But I got some concurrency problems. I opened 2 connections. . . and it mixes data between them. Is this component thread safe? Thank you! Magacho -Original Message- From: Claus Ibsen [mailt

Re: Period character issue with camel-mongo.

2012-10-05 Thread Raul Kripalani
Apologies for not being able to look at this yesterday. Thanks for all the feedback from your side. Unfortunately the unit tests of this component are disabled on our Jenkins because MongoDB is not embeddable and our unit tests are really "integration tests" from the purist point of view, because

Re: Period character issue with camel-mongo.

2012-10-05 Thread Mark Doyle
I have a little more info. The properties issue is evident on both the command line (mvn install) and running the junit test directly in elipse. I tried the spring 3.1 profile on the command line (mvn clean install -P spring3.1) and got the same problem. What is weird is it suddenly stopped find

RE: CSV bindy - unmarshalling to multiple model object

2012-10-05 Thread Chandra Kalirasa
Hi Claus, Thanks, its worked. However, in the StudentProcessor, statement if(ex.getIn().getBody().getClass().isAssignableFrom(Student.class)) never got invoked. So the only marks list got populated and fail to populate student list. Can you please advise? Thank you, Chandra public class Stu

RE: CSV bindy - unmarshalling to multiple model object

2012-10-05 Thread Chandra Kalirasa
Hi Claus, What is the element name to refer a package in Spring DSL? Thanks Chandra -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Friday, October 05, 2012 9:08 AM To: users@camel.apache.org Subject: Re: CSV bindy - unmarshalling to multiple model object Hi You

Re: Netty or Mina Async in the same socket

2012-10-05 Thread Claus Ibsen
Hi I have added an unit test that does netty request/reply async and uses the same channel to write the response back http://svn.apache.org/viewvc?rev=1394556&view=rev On Thu, Oct 4, 2012 at 3:03 PM, Flavio Magacho - M4U wrote: > Ok Claus let me try to show you what I´m trying to do: > > xmln

Re: lifecycle of components

2012-10-05 Thread Claus Ibsen
On Thu, Oct 4, 2012 at 12:56 PM, Tim Dudgeon wrote: > Thanks, Got it working with a Processor. > start() seems to be called twice. Is this expected? > You can extend ServiceSupport then it keeps track of its state. Then use the doStart / doStop methods. > Is it possible to use this for beans? It

Re: CSV bindy - unmarshalling to multiple model object

2012-10-05 Thread Claus Ibsen
Hi You need to configure this To refer to either a package, or a class that has the Bindy annotations. On Thu, Oct 4, 2012 at 8:52 PM, Chandra Kalirasa wrote: > Hi > > I am trying to unmarshal a CSV record into multiple model objects. > > Example, I want pos 4, pos 5, pos 6 into one model

Re: JPA component and JTA

2012-10-05 Thread Claus Ibsen
On Fri, Oct 5, 2012 at 3:34 PM, Lucas Amador wrote: > Hi, > I'm struggling trying to configure a camel route which uses JPA and a JTA > transaction manager (bitronix) together with Spring. As I can read in the JPA > component documentation, > the transactionManager can be specified in the route

Re: Problem with SMPP Consumer error handling

2012-10-05 Thread Claus Ibsen
On Thu, Oct 4, 2012 at 9:27 PM, Christian Müller wrote: > @Claus: Could this be related to the doTry()/doCatch() issue you are > investigating at present? Or is the exception, which is thrown in the > doCatch() clause, wrapped into another exception? > > public void onAcceptDeliverSm(DeliverSm

Validating each row in a csv file and skipping that row and continue to next

2012-10-05 Thread Elezabeth
Hi, I have a requirement as below: I have a csv to be read. I am reading the csv file using camel and converted to list of VOs . So I assume each row in the csv file is converted into a VO .. in my case it is OagVO. This part is working fine. But I need to add validation also to the csv records.

Re: from file with option move dynamic

2012-10-05 Thread Claus Ibsen
On Fri, Oct 5, 2012 at 8:26 AM, k1k wrote: >>>What version of Camel. > 2.7.1 > Can you try upgrading Camel. There was a bug in the file component when using the ${ } in the move option. I can't remember which version it was fixed. >>>And what happens? > the output.txt is move to d:/outbox/done