Save info   Get password
Home Submit your blog Edit Account Rules RSS-Archive Contact


Apache MINA - CumulativeProtocolDecoder Explained
2008-11-08 09:37:32
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 [...]
Read more: Apache

Integrating Apache MINA with Spring
2008-11-01 07:10:15
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 [...]
Read more: Integrating

Implementing XML Decoder for Apache MINA
2008-10-31 09:50:05
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 [...]


Implementing Trap Sender using SNMP4J
2008-10-28 01:56:06
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 [...]


Implementing Trap Receiver in 30 minutes using Apache MINA
2008-10-22 05:24:26
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 [...]


Implementing UDP Server using Apache MINA
2008-10-21 02:07:28
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 [...]


Implementing UDP Client using Apache MINA
2008-10-20 05:47:45
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 [...]


Apache MINA based Server Application Architecture
2008-10-14 06:53:58
Apache MINA is one of the best available NIO Frameworks for creating scalable Server applications in Java. Its fun to create applications using MINA.  Lets have a look how the application architecture looks like Lets briefly see what the Major components are IO service - The API's at this level are responsible for performing actual IO operation over [...]
Read more: Apache , Application , Architecture

Mocking - the interpreted way
2008-10-14 05:49:03
Mocking is a subject extensively covered and used heavily in Unit Testing. There are number of Mocking frameworks available today, ranging from Static Mocking to Dynamic Mocking, and the latest additions are AOP based Mocking Frameworks. Had been Coding for a few years now and at that time, JUnit has just made its entry. Wow! [...]


Updating Google Calendar with MS Project Tasks
2008-10-13 08:52:19
I am back, as promised. Please read my earlier post Processing Microsoft Project File in Java using MPXJ. In this post we shall take an mpp and update the Google Calendar with the task details. The question is why would anyone do that?  Lets cook the story. A small team is working and the poor Project Manager share [...]
Read more: Tasks

Apache MINA – Blacklist Filter Explained
2008-11-21 05:26:28
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 Su
Read more: Apache , Blacklist , Filter

Page 1 of 1 « < 1 > »
eXTReMe Tracker