mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee" <trus...@gmail.com>
Subject Re: Derived IoSession?
Date Wed, 03 May 2006 00:21:34 GMT
Hi Michael,

There's a org.apache.mina.handler.multiton package which will help you in
this case.

But, basically, you shouldn't have many calls to IoSession.get/setAttribute()
if you store only one object which has all states.


On 5/3/06, Michael Bauroth <Michael.Bauroth@falcom.de> wrote:
> Hi,
> I think about a customized IoSession, where I can store specific data
> instead in a Map in direct member variables or a session dependend
> config object. The reason is, that I have a lot of session specific data
> (protocol related start and stop markers, state variables and so on),
> which I must request in each decode step as quick as possible. Two
> questions:
> 1. Do you think, that it is Mina conform?
> 2. How could I do that? Which classes must be overriden, that all works
> together?
> Regards
> Michael

what we call human nature is actually human habit
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message