Monday, April 26, 2010

Difference between AQ and JMS

Aq is Oracle Advanced queuing as like IBM's Websphere MQ,thougn it doesn't have those many features as in MQ but still its being used.Advanced Queuing provides the message management functionality and asynchronous communication needed for application integration.

JMS is Java messaging service
The Java Message Service (JMS) API is a messaging standard that allows application components based on the Java 2 Platform, Enterprise Edition to create, send, receive, and read messages. It enables distributed communication that is loosely coupled, reliable, and asynchronous.

The difference between them is quite clear if we use the jdev IDE to check their functionality.

AQ only interacts with database queues.

However JMS can interact with database queues as well as in memory/file or queue's outside.

For example we can use JMS adapter to connect to weblogic or tibco queue.It is independent of the platform in which it is running.

If our server is on 0c4j container and we want to connect to weblogic queue we can use a third party connector to connect to that queue.Using Aq we can only only connect to the queue defined in database.

So we can use JMS in place of AQ but the reverse is not true.

No comments: