Archive | November, 2008

21 November 2008 ~ 0 Comments

Apache MINA – Blacklist Filter Explained

Blacklist filter blocks connections from the blacklisted remote Addresses. The filter is very useful, for dropping the connection originating from addresses, not of interest.
Useful API’s
setBlacklist(InetAddress[] addresses) – Sets a list of IP Addresses that needs to be blocked. This API call clears all the previously added Addresses
setSubnetBlacklist(Subnet[] subnets) – Sets a List of Subnets to [...]

Continue Reading

08 November 2008 ~ 0 Comments

Apache MINA - CumulativeProtocolDecoder Explained

Apache MINA uses the concept of Protocol Decoder to decoder read bytes into High Level Message objects. There are conditions in which a single packet may not contain the complete bytes to convert raw message into High Level Objects. For such situations, CumulativeProtocolDecoder can be used. Basically, encoder makes the framework buffer the data, till [...]

Continue Reading

01 November 2008 ~ 7 Comments

Integrating Apache MINA with Spring

So far we have seen Apache MINA code samples in standalone form. Apache MINA can be nicely integrated into DI frameworks like Spring. Lets see how to integrate a simple MINA application with Spring
This is how our application is structure. To see details of this application, please refer to the post Implementing Trap Receiver in [...]

Continue Reading