Posting downstream messages asynchronously

"이희승 (Trustin Lee)" trustin at gmail.com
Mon Jul 12 03:30:37 EDT 2010


Hi Ravi,

Perhaps an identity map whose key is the inbound channel and the value
is the outbound channel?  It completely depends on your business logic.

HTH,
Trustin

On 07/09/2010 10:45 PM, rpt wrote:
> 
> Hi all,
> 
> I'm writing a server using netty that keeps long-lived connections(nio) from
> its clients and sends some of those requests to backend system over JMS.
> When it receives responses back over JMS, it needs to send them back to the
> correct clients.
> 
> My question is regarding sending those downstream responses back to the
> clients. When the server gets a response over JMS, how does it get a
> reference to the correct client's channel reference? I'm thinking of storing
> them all in a ChannelGroup and use the find method (I'll be keeping a lookup
> table for client account number (in JMS message) to channel names)
> 
> Is there a recommended way to do this?
> 
> Thanks in advance.
> 
> Ravi.

-- 
what we call human nature in actuality is human habit
http://gleamynode.net/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 293 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20100712/87f3bcbe/attachment.bin 


More information about the netty-users mailing list