camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: TypConverter
Date Wed, 24 Jun 2009 01:49:10 GMT
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... 


Mime
View raw message