directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Bodi (JIRA)" <>
Subject [jira] Commented: (DIRMINA-116) Get the Service from which a connection is accepted
Date Thu, 10 Nov 2005 19:08:05 GMT
    [ ] 

Greg Bodi commented on DIRMINA-116:

Agreed.  For an application I'm prototyping, MINA works very well right up until I have to
take action on a received message (ProtocolHandler.messageReceived()).  At that point, I have
to decide how to process the message, and for that I need access to some configuration (which
is available at service creation time).  It struck me that if ProtocolHandler had some sort
of getService() method, I could subclass Service to insert the required config fields, and
do something like this:

Service service = new MyConfigurableService(protocol, TransportType.SOCKET, port, myConfigObject);
registry.bind(service, provider);

> Get the Service from which a connection is accepted
> ---------------------------------------------------
>          Key: DIRMINA-116
>          URL:
>      Project: Directory MINA
>         Type: Improvement
>     Versions: 0.8
>     Reporter: Paolo Perrucci
>     Assignee: Trustin Lee
>     Priority: Minor
>      Fix For: 0.9

> When a new connection is accepted may be usefull to know the related Service.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message