Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 67936 invoked from network); 24 Jun 2009 02:58:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jun 2009 02:58:44 -0000 Received: (qmail 9655 invoked by uid 500); 24 Jun 2009 02:58:55 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 9615 invoked by uid 500); 24 Jun 2009 02:58:55 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 9605 invoked by uid 99); 24 Jun 2009 02:58:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2009 02:58:55 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2009 02:58:46 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MJIgr-0003uo-Fo for users@camel.apache.org; Tue, 23 Jun 2009 19:58:25 -0700 Message-ID: <24177862.post@talk.nabble.com> Date: Tue, 23 Jun 2009 19:58:25 -0700 (PDT) From: buzzterrier To: users@camel.apache.org Subject: Re: TypConverter In-Reply-To: <4A418616.3000003@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: terry.jeske@gmail.com References: <24176269.post@talk.nabble.com> <4A418616.3000003@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 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 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.