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


Implementing XML Decoder for Apache MINA

Will continues to post articles about MINA, to be updated, Subscribe in a reader Apache MINA has wonderful concept of ProtocolDecoder to process Decoding protocol specific messages. XML is one of the most widely used format for EDA. Lets see how can we implement a Protocol Decoder for Apache MINA. Algorithm The picture below describes […]

Continue reading


Implementing Trap Receiver in 30 minutes using Apache MINA

Will continues to post articles about MINA, to be updated, Yes, we are going to implement a SNMP trap receiver in less than 30 minutes. If you have been following my post on Apache MINA, this would be a natural extension to it. In this article, we shall bring together all our components to build […]

Continue reading


Implementing SNMP4J Decoder for Apache MINA

Recently started evaluating Apache MINA. So thought about building a Trap Receiver using Apache MINA. Refer to one of my posting on What is Apache MINA? Design In this post we shall concentrate on just writing the ProtocolDecoder The code snippet using SNMP4J library is public class SNMP4JCodec extends ProtocolDecoderAdapter { static Logger logger = LoggerFactory.getLogger(SNMP4JCodec.class); […]

Continue reading