Header Right

Main navigation

Main Content

Differences between Point to Point Messaging Model and Publish Subscribe Messaging Model is explained in this article. Point to Point Messaging Model and Publish Subscribe Messaging Model are the two different messaging paradigms supported by Java Message Service (JMS). These messaging paradigms are programming models that support asynchronous way of messaging between diverse systems.
Listed below are the differences between Point to Point Messaging Model and Publish Subscribe Messaging Model is explained in this article. Point to Point Messaging Model and Publish Subscribe Messaging Model:
Point to Point Messaging Model
Publish Subscribe Messaging Model
JMS Destination is Queue
JMS Destination is Topic
JMS Producer is called as Sender
JMS Producer is referred as Publisher
JMS Consumer is called as Receiver
JMS Consumer is referred … [Read More...] about Differences between Point to Point Messaging Model and Publish Subscribe Messaging Model

Here we are going to see how to configure dependency injection in spring with java . In the below example we have two classes MyClass and Myclass2 .There is a dependency of MyClass2 in Myclass . So lets understand how to inject the depended class into another using Spring.

Callable and Future Interface : Callable and Future interface has been introduced in JDK 1.5 under java.util.cocurrent package. Callable interface is used to execute task and is similar to Runnable interface but can return value to caller and is able to throw checked Exception as well .Callable interface has call() method to execute task, computing […]

Java regular expressions are unique series of characters, which assists in matching or locating other strings or collection of strings, with a unique syntax applied in a pattern. Java offers a regex package for matching with regular expressions.
The java.util.regex package mainly is composed of 3 classes.
Pattern Class
A Pattern element is a compiled form of a regular expression. … [Read More...] about Java Regular Expressions

Method local inner class in Java is limited to a code section, and it can be processed only inside the same code section it is declared in. Hence it can never execute modifiers. A local inner class instance can be delivered as argument and retrieved from methods, and is available inside a valid scope.
Purpose of Method Local Inner class
The only limitation in method local inner class is … [Read More...] about Method Local Inner Class in Java