Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 92922 invoked from network); 18 May 2009 04:19:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 May 2009 04:19:45 -0000 Received: (qmail 92235 invoked by uid 500); 18 May 2009 04:19:45 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 92176 invoked by uid 500); 18 May 2009 04:19:44 -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 92166 invoked by uid 99); 18 May 2009 04:19:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2009 04:19:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.220.177 as permitted sender) Received: from [209.85.220.177] (HELO mail-fx0-f177.google.com) (209.85.220.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2009 04:19:32 +0000 Received: by fxm25 with SMTP id 25so3030599fxm.20 for ; Sun, 17 May 2009 21:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=+NFbNimpV9tPWCQv1di+c6gpXq4CCYV4awQF5rGO0fs=; b=Cnul1tWLKCD/RN5m0x8XwZYoXJliXx0CsN/cn79Zw6m7Q01yccmERACHCdeZuFhfxC +QBPSUflRjXTCVsGgejN/NUOtYyPZ/z2wNaOrgHeWgbIuNM4yM0FfSOfYe9L1yA4Q5yX wx6QxUWFF88xpiNuI+iYKWtHcMzJ3kNVDJa2s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=DN4Q8/XQFeOzx1LH6XC/TI4lAfIJ/Ezd7Ux8PBh9TO2ZZIV8ypDY9MH64Tc2Gs3mJj xPCqt6SWf8D5wN1AgZU0ROU2MCQcXhzWfx6bFwzrhZtTunZOOeLKwCvve2XH85EJTtZS RJV3jCIb+GZiiymXy0oXkgfFlWaSiOuPkVyvc= MIME-Version: 1.0 Received: by 10.223.126.203 with SMTP id d11mr3930572fas.8.1242620352075; Sun, 17 May 2009 21:19:12 -0700 (PDT) In-Reply-To: <23585843.post@talk.nabble.com> References: <23585843.post@talk.nabble.com> From: Claus Ibsen Date: Mon, 18 May 2009 06:18:52 +0200 Message-ID: <5380c69c0905172118s1a34f6d7qc251bcfaa5bf08ef@mail.gmail.com> Subject: Re: camel mina tcp client To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Sun, May 17, 2009 at 7:55 PM, swalden wrote: > > Hi I am trying to use camel mina as a tcp client to connect to a tcp serv= er > that requires sending a login connection string like "ID=3Duser,PWD=3Dpwd= ", and > then loops to receive a continuous set of bytes where each "message" has = the > first 2 bytes specifies the number of following bytes to read for the res= t > of the message message. > It seems the MinaConsumer works as a tcp server so this won't work. =A0It > seems that the MinaProducer just uses a single send/receive pattern so th= is > doesnt seem appropriate either. I just want to send the login string and > then continue to process the bytes from the tcp server. > > Is there a way to use MinaProducer for this? =A0or should I create a cust= om > camel endpoint/component/consumer for this use case? > > Any ideas are greatly appreciated. Maybe a custom mina protocol can do the trick and be able to handle the login and the receive data afterwards. There might be a length protocol with mina that can read the first two bytes, but if not you need to develop this yourself. > > thx, > sean > -- > View this message in context: http://www.nabble.com/camel-mina-tcp-client= -tp23585843p23585843.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > --=20 Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus