directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Bodi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRMINA-116) Get the Service from which a connection is accepted
Date Thu, 10 Nov 2005 19:08:05 GMT
    [ http://issues.apache.org/jira/browse/DIRMINA-116?page=comments#action_12357279 ] 

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: http://issues.apache.org/jira/browse/DIRMINA-116
>      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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message