• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JMS Basic Queries

 
Ranch Hand
Posts: 441
2
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 4525
572
VSCode Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 4525
572
VSCode Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic