Archive | October, 2008

31 October 2008 ~ 11 Comments

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 the basic [...]

Continue Reading

28 October 2008 ~ 1 Comment

Implementing Trap Sender using SNMP4J

In this post, we shall implement a Trap Sender using SNMP4J. We may choose to use Apache MINA for sending Traps or can resort to using DatagramSocket class directly.
This shall be the logical flow of the implementation

Get the encoded Trap Data
Send the Trap 

Lets look at the first component, on getting the encoded Trap data
 

The code [...]

Continue Reading

22 October 2008 ~ 2 Comments

Implementing Trap Receiver in 30 minutes using Apache MINA

Will continues to post articles about MINA, to be updated,  Subscribe in a reader
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 [...]

Continue Reading

21 October 2008 ~ 1 Comment

Implementing UDP Server using Apache MINA

In my last post we created a UDP client using Apache MINA. Lets turn the table and implement the Server side. Let’s see how using Apache MINA reduces the effort to create a UDP Server.
Steps to create a UDP Server using java.net API’s

Create a Socket and listen for incoming connection
Process each packet in a separate [...]

Continue Reading

Tags: , ,

20 October 2008 ~ 11 Comments

Implementing UDP Client using Apache MINA

Its been a while that I wrote on Apache MINA. Please refer to my post collection on Apache MINA.
In this post, I have tried to capture briefly on how to implement a UDP Client using Apache MINA. We shall concentrate on keeping our scope limited to sending data over UDP. In Subsequent posts, we shall [...]

Continue Reading