camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From buzzterrier <terry.je...@gmail.com>
Subject Re: TypConverter
Date Wed, 24 Jun 2009 02:58:25 GMT

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.


Mime
View raw message