camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: TypConverter
Date Wed, 24 Jun 2009 04:31:22 GMT
Hi
Could you post the stacktrace?

And also DEBUG log the org.apache.camel.component.jms to see that it pick up
the Object JMS type to send your payload.

And yes you need SearchTerm.class on the classpath on the server side.

And the Camel tracer could also help look into the message as its routed.


On Wed, Jun 24, 2009 at 4:58 AM, buzzterrier <terry.jeske@gmail.com> wrote:

>
> Hey,
>
> Thanks for the response. I thought that having the pojo implement
> serializable would be all I needed, but I got the
> NoTypeConversion..Exception, so I thought I needed to use some sort of
> converter. Any ideas on why I would get this with the pojo being
> serializable?
>
>
>
> willem.jiang wrote:
> >
> > Hi,
> >
> > If you are planing to send the SearchTerms object through the JMS
> > transport, you need to let the SeachTerms to implement the Serializable
> > interface.
> >
> > camel-jms will take care rest of the work ;)
> >
> > Willem
> >
> > buzzterrier wrote:
> >> My camel client sends a request to my service:
> >>
> >> Future future = camelTemplate.asyncRequestBody(camelURI, searchTerms);
> >>
> >>
> >> Where searchTerms is a simple pojo SearchTerms that has just string
> >> values
> >> to be used for our query on the server.
> >>
> >>
> >> On the server I get a NoTypeConversionAvailableException on SearchTerms.
> >>
> >> My camel service has the method:
> >>
> >>      @Consume(uri = "activemq:queue:bluid:articles")
> >>      public List<String> getArticles(SearchTerms searchTerms) {
> >> ...
> >>      }
> >>
> >> Is there a way easily convert my searchTerms pojo? I was hoping it would
> >> be
> >> like spring were I bind to a command object and cast it. I looked that
> >> the
> >> typeconverter examples, and it is not all the clear how I would hand
> >> this.
> >>
> >>
> >>
> >> -----
> >> Buzzterrier
> >>
> >> http://buzzterrier.blogspot.com/ View my blog: Ordinary Average
> >> Developer...
> >
> >
> >
>
>
> -----
> Buzzterrier
>
> http://buzzterrier.blogspot.com/ View my blog: Ordinary Average
> Developer...
> --
> View this message in context:
> http://www.nabble.com/TypConverter-tp24176269p24177862.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>


-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message