This does not many sense. As soon as your terminals can connect randomly to many different servers, that means the MINA session will be totally stateless. Not that it's a bad architecture (cf REST), I would rather consider such an architecture as smart. Now, it implies that your application (ie, the code you put in the handler) has to deal with sharing the informations you want to see on many servers.
In other words, you have to manage such sharing on your side (with memcached, for instance), MINA won't help here. Wether you use UDP or not is orthogonal... Just be sure not to store any informations into the MINA session, because they won't be shared (a MINA session is stored locally in memory) On Sat, Jul 21, 2012 at 5:16 AM, Webgeekman <[email protected]> wrote: > I have multiple servers runs the same MINA based Java application. Every > server bound different terminals with at random.I use UDP protocol .Can I > save sessions of every server to one cache server like Memcached or Redis, > then those sessions can be used cross multiple servers. > > The Question is : does one UDP session can be used in any server? > > Thanks! > > -- > Bast Regards > Web Geek Man > E-Mail: [email protected] > -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
