Home » Author Archives: Ram Mokkapaty

Author Archives: Ram Mokkapaty

Ram Mokkapaty
Ram holds a master's degree in Machine Design from IT B.H.U. His expertise lies in test driven development and re-factoring. He is passionate about open source technologies and actively blogs on various java and open-source technologies like spring. He works as a principal Engineer in the logistics domain.

Spring Data JPA Example

The goal of Spring Data repository abstraction is to significantly reduce the amount of boilerplate code required to implement data access layers for various persistence stores. If we try to implement a data access layer of an application on our own, we will end up with lots of boilerplate code. Spring provides JPA module which not only eliminates boilerplate code ...

Read More »

Spring Data Elasticsearch Example

Elasticsearch is a highly scalable open-source which can be used for data store, text search and analytics engine. Every instance of ElasticSearch is called a node and several nodes can be grouped together in a cluster. In this article, we will see how we can use spring-data-elasticsearch module which integrates spring-data and elasticsearch.             1. Dependencies Include <spring-core>, <spring-context> and <spring-data-elasticsearch> ...

Read More »

Spring Data Redis Example

Redis is an in-memory key/value store. It is used as a database, cache and message broker. In this article, we will see some examples of Spring Data Redis. Before we get to start with the examples, we need to first install Redis and configure the server. 1. Overview of Redis Redis is an extremely high-performance, lightweight key/value based data store. ...

Read More »

Spring Data MongoDB Example

In this article, we will see a simple Java application demonstrating the CRUD operation (Create, retrieve, update and delete) using the MongoDB database and spring MongoDB module. MongoDB database is an open source document-oriented NoSQL database. In our example, we will see how we can use MongoDB to persist, query, update and delete the documents.           ...

Read More »

JMS QueueBrowser Example

A point-to-point messaging queue contains messages to be consumed by clients interested in the specific destination queue. If one wants to simply monitor the messages without actually consuming them then getting hold of QueueObject will allow one to peek ahead at the pending messages. In this article, we will see an examples of QueueBrowser object. 1. Dependencies In order to ...

Read More »

JMS TextMessage Example

JMS defines several types of messages that can be posted by an application. They all extend the Message interface. This type carries a java.lang.String as its payload. It is useful for exchanging simple text messages and also for more complex character data, such as XML documents. In this article, we will look into examples of simple as well as XML based ...

Read More »

JMS MessageListener Example

A message can be sent either through point-to-point or publish-and-subscribe messaging styles. In both the ways, the producer and consumer work in a decoupled manner. The message is sent to a named destination. There are two ways a client can receive messages from a message consumer: The message consumer used one of its receive() methods to call the blocking receive() ...

Read More »

Spring Framework JMSTemplate Example

In order to send or receive messages through JMS, we need a connection to JMS provider, obtain session, create destination creation, the JMS API involved becomes too verbose and repetitive. JmsTemplate is a helper class that simplifies receiving and sending of messages through JMS and gets rid of the boilerplate code. JmsTemplate simplifies the development efforts on constructing the message ...

Read More »

JMS Client Example

The term “JMS client” refers to Java components or applications that use the JMS API and a JMS provider to send and receive messages. JMS supports two styles of messaging: the point−to−point and publis−and−subscribe messaging styles. Before a client can use a JMS provider to send and receive messages, the client must decide which messaging style it wants to use. A ...

Read More »

JMS Topic Example

When a publisher sends a message, there may be more than one customer interested in such messages. Publisher broadcasts the message to JMS destination called ‘topic’. There may be more than one consumer subscribed to the topic. All the active clients subscribed to the topic will receive message and there is no need for the subscriber to poll for the ...

Read More »