camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anandsk <>
Subject Re: New Suggested Feature For Mina/Netty
Date Wed, 07 Apr 2010 16:53:31 GMT

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.

                .to("log:+++ reply++++"); 

public class MessageFilter extends IoFilterAdapter { 
    @Produce(uri = "vm:response") 
    ProducerTemplate producer; 
            public void messageReceived(NextFilter nextFilter, IoSession
                    Object message) throws Exception { 
                if (message instanceof String) { 
                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:
Sent from the Camel - Users mailing list archive at

View raw message