• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

JMS Basic Queries  RSS feed

 
Ranch Hand
Posts: 381
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to JMS and have basic queries:

1. JMS is just a specification or it is implementation?

2. What is the maximum number of queues we can have ?

3. What is the maximum number of messages a queue can support?

4. Is RabbitMQ and Kafka are JMS compliant? If not, what is the difference?

5. What is the use of broker in JMS?
 
author
Posts: 23811
140
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Vaibhav Gargs wrote:
1. JMS is just a specification or it is implementation?



It's a specification... but Oracle JEE does provide a reference implementation. For other implementations, you will need to contact the provider of the messaging environment that you are using.

Vaibhav Gargs wrote:
2. What is the maximum number of queues we can have ?

3. What is the maximum number of messages a queue can support?



These are implementation details. You will need to research the messaging environment that you are using.

Henry
 
Henry Wong
author
Posts: 23811
140
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Vaibhav Gargs wrote:
5. What is the use of broker in JMS?



Officially, I don't think JMS mentions the use of the broker. In fact, there are JMS implementations for brokerless messaging environments.

In my opinion though, JMS does seem to require a broker. Or at least, its design assume the use of one. For example, JMS doesn't have a concept of a Durable Publisher. This is fine due to ordering by the broker, but for brokerless messaging environments, there is no easy way to order between publisher restarts.

Henry

PS... I don't use Rabbit or Kafka, so can't answer that one.
 
Saloon Keeper
Posts: 2270
290
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Vaibhav Gargs wrote:4. Is RabbitMQ and Kafka are JMS compliant? If not, what is the difference?


Kafka itself is not JMS compliant - it has its own Producer and Consumer APIs.  

You can however connect Kafka to a JMS message queue by writing a back-to-back application which consumes from one side and produces to the other, or by using a Kafka Connector such as Confluent's Kafka Connect JMS Connector.
 
Ron McLeod
Saloon Keeper
Posts: 2270
290
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Vaibhav Gargs wrote:5. What is the use of broker in JMS?


A broker, like in real-life, is there is facilitate transactions between producers and consumers.

It decouples producers and consumers so that they do not need to deal with each other directly.  The producer does not need to be concerned with who is consuming their content, and the consumer does not need to be concerned with where the content came from.
 
I will open the floodgates of his own worst nightmare! All in a tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!