TypeConversionException RabbitMQ

2014-12-08 Thread Alan Camillo
://{{rabbitmq.host}}:{{rabbitmq.port}}/ *othermsg*") //<<<<<<<<<< Exception came from here .end() ; Caused by: [org.apache.camel.TypeConversionException - Error during type conversion from type: byte[] to the required type: *A* with value [B@2aa6b2f7 due Cannot cast *B* to *A*] Can't I exchange different types through rabbitmq component? Thank you! Alan Camillo

Re: TypeConversionException RabbitMQ

2014-12-09 Thread Alan Camillo
etProperty("CamelLoopIndex", Integer.class)) , *B.class*); } ... Thanks! Alan Camillo On Tue, Dec 9, 2014 at 3:45 AM, Willem Jiang wrote: > Hi, > > Can you show us the code of IterateEmailsProcessor? > > -- > Willem Jiang > > Red Hat, In

Rest DSL IN/OUT types

2014-12-09 Thread Alan Camillo
ception - with linked exception: [com.sun.istack.SAXException2: unable to marshal type "java.lang.String" as an element because it is missing an @XmlRootElement annotation] Look obvious, but I'd like to know if there a way to do this. Thanks! Alan Camillo

Re: Rest DSL IN/OUT types

2014-12-09 Thread Alan Camillo
as-is. > >> On Tue, Dec 9, 2014 at 4:27 PM, Alan Camillo wrote: >> Hello! >> >> I've had some problems trying the new rest dsl from camel and I'd like to >> know if there is a way to do this: >> >> restConfiguration() >>.componen

Re: TypeConversionException RabbitMQ

2014-12-09 Thread Alan Camillo
Someone knows if this behavior is it normal? Thanks again! Alan Camillo On Tue, Dec 9, 2014 at 12:31 PM, Alan Camillo wrote: > Sure! Here it is: > > ... > @Override > public void *process*(Exchange exchange) throws Exception { > >

Re: Rest DSL IN/OUT types

2014-12-09 Thread Alan Camillo
I see you are working on this. I'll follow your fix. Alan Camillo On Tue, Dec 9, 2014 at 2:17 PM, Claus Ibsen wrote: > Hi > > Yeah sounds good. > > Its this guy > org.apache.camel.processor.binding.RestBindingProcessor > > which we need to enhance to allow the R

Re: Rest DSL IN/OUT types

2014-12-09 Thread Alan Camillo
ml in a String type > .dataFormatProperty("mustBeJAXBElement", "false"); > > On Tue, Dec 9, 2014 at 8:14 PM, Alan Camillo > wrote: > > I see you are working on this. > > I'll follow your fix. > > > > Alan Camill

Re: TypeConversionException RabbitMQ

2014-12-09 Thread Alan Camillo
Just to close this... I should have used a marshal/unmarshal before and after send and receive a message from RabbitMQ. It's lot of safer! Thanks any way! ;) On Tue, Dec 9, 2014 at 3:19 PM, Alan Camillo wrote: > Someone knows if this behavior is it normal? > > Thanks again!

About property place holder

2015-04-14 Thread Alan Camillo
. Did I do something wrong? Thanks! Alan Camillo

Re: About property place holder

2015-04-17 Thread Alan Camillo
ELEASE* (spring-core-4.1.6)* Thanks guys!! Alan Camillo On Tue, Apr 14, 2015 at 10:45 PM, yogu13 wrote: > Hello, > > Please let us know version of spring and camel ? > > long back i too had a similar issue and came across this post -> > > http://camel.465427.n5.na

Re: Amazon RDS Component

2012-12-16 Thread Alan Camillo
Hello! A RDS is a relational database like any other. So, it is supported. I could not see a reason to create such thing unless you planing a component to create and manipulate a RDS infrastructure. Is it your objective? For such thing I used to use the Boto Python. It is very useful. Alan

Re: Problem with HTTP endpoint

2012-12-28 Thread Alan Camillo
Hello Meriem! Try Camel Simple Language for this issue.: http://camel.apache.org/file-language.html You need something like this: from("http://google.com";).to("file:target/messages?fileName=ID-MERIEM- ${in.header.someID}-${in.header.someParameter}.txt"); Good luck! Alan Cam

Re: custom condition check frequently

2011-06-02 Thread Alan Camillo
I agree with Hadrian! You can use the same logic with camel-quartz to start your process. In the same way you implement today. After that you can use one of many implementations to connect in your data source. I really like camel-mybatis but you can use one of those: camel-jdbc camel-sql camel-jpa

Re: Custom error handler around one endpoint

2011-06-03 Thread Alan Camillo
The doTry can be used too: http://camel.apache.org/try-catch-finally.html Alan Camillo On Thursday, June 2, 2011, Greg McFall wrote: > Hi, > As best I can tell, there is just one error handler for the entire context. > Is there a way to create a custom error handler that can be applied

Alan: batch database insert

2011-06-03 Thread Alan Camillo
Hello! How can I make a batch insert in database using camel? Today I'm using mybatis to do the insert operations. But I believe they don't have suporte.

Re: Alan: batch database insert

2011-06-04 Thread Alan Camillo
do whatever you want > from a Java bean, if there is nothing out of the box that fits your > needs. > > On Sat, Jun 4, 2011 at 1:12 AM, Alan Camillo > wrote: > > Hello! > > How can I make a batch insert in database using camel? > > Today I'm using mybatis to

Re: Alan: batch database insert

2011-06-04 Thread Alan Camillo
x27;t exist out of the box, it could be a > good enhancement. > > - Romain > > 2011/6/4 Alan Camillo > > > I get hundreds of messages by a queue and I have to insert those messages > > in > > 2 databases. > > Today I already use MyBatis for this operations

Re: Transform header values into jpa bean body?

2011-09-26 Thread Alan Camillo
Hello! Why don´t use a Processor? http://camel.apache.org/processor.html Use a processor to get the headers from servlet component and set in your entity bean. I believe is the simplest way to solve this problem. Alan On Mon, Sep 26, 2011 at 11:23 AM, dunnlow wrote: > Hi, > I am using Spring

Re: Transform header values into jpa bean body?

2011-09-26 Thread Alan Camillo
I understood your idea, but I don´t know if this will work. Try something like this: public class ProcessHeader{ public String process( Exchange exchange ) { String param1 = exchange.getIn().getHeader("param1", String.class); String param2 = exchange.getIn().getHeader("param2