Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 54040 invoked from network); 8 Apr 2010 13:48:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Apr 2010 13:48:53 -0000 Received: (qmail 64016 invoked by uid 500); 8 Apr 2010 13:48:53 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 63980 invoked by uid 500); 8 Apr 2010 13:48:53 -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 63972 invoked by uid 99); 8 Apr 2010 13:48:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Apr 2010 13:48:53 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.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; Thu, 08 Apr 2010 13:48:46 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Nzs5p-00018j-Ji for users@camel.apache.org; Thu, 08 Apr 2010 06:48:25 -0700 Message-ID: <28178835.post@talk.nabble.com> Date: Thu, 8 Apr 2010 06:48:25 -0700 (PDT) From: anandsk To: users@camel.apache.org Subject: Re: New Suggested Feature For Mina/Netty In-Reply-To: <28167770.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: skusma@arccorp.com References: <28167370.post@talk.nabble.com> <28167770.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org I have added improvement request for this feature. you may want to add comments for your specific needs if they are different. https://issues.apache.org/activemq/browse/CAMEL-2624 anandsk wrote: > > I have a similar requirement but only difference is I do have a message to > send but I expect replies in asyncronous fashion. so I would vote for > suggested feature. > > Though it is not elegant I am thinking of using this solution for now, may > be it will work for you also and just send a blank message. > > may be you can have a timer consumer instead of file below. > > from("file:///test/test/response") > .convertBodyTo(String.class).threads(1) > > .to("mina:tcp://localhost:6202?sync=false&textline=true&filters=#listFilters"); > > from("vm:response") > .to("log:+++ reply++++"); > > public class MessageFilter extends IoFilterAdapter { > @Produce(uri = "vm:response") > ProducerTemplate producer; > @Override > public void messageReceived(NextFilter nextFilter, IoSession > session, > Object message) throws Exception { > if (message instanceof String) { > producer.sendBody(message); > } > > nextFilter.messageReceived(session, message); > } > > } > > > Gareth Collins wrote: >> >> Hello, >> >> In looking at the source for Netty/Mina, I see that it is assumed that if >> a consumer is desired a listener port is created, whilst if a producer is >> desired a client is created. >> >> Would it be possible in a subsequent release to relax this restriction >> (i.e. allowing a consumer to be a client, a producer to be a server)? >> >> I ask this as I have a requirement to connect to a third-party server >> periodically to retrieve any outstanding messages. If the server has any >> outstanding messages it sends them immediately (without me sending any >> data). When all messages have been sent, the server closes the >> connection. For now, I will create a custom component for this. However, >> it would be nice if I could implement this using the generic mina/netty >> components. >> >> thanks in advance, >> Gareth Collins >> > > -- View this message in context: http://old.nabble.com/New-Suggested-Feature-For-Mina-Netty-tp28167370p28178835.html Sent from the Camel - Users mailing list archive at Nabble.com.