Prev Next

Integration / ActiveMQ Interview Questions Basics

What are the types of messaging models in JMS?

JMS defines two core messaging models that determine how a message travels from sender to receiver.

  • Point-to-Point - messages are placed on a queue and delivered to exactly one consumer.
  • Publish-Subscribe - messages are sent to a topic and delivered to every active subscriber.

Both models share the same JMS API, differing only in the destination type used.

In practice, the model is chosen by which destination interface the application uses: Queue/QueueSender/QueueReceiver for point-to-point, or Topic/TopicPublisher/TopicSubscriber for publish-subscribe. Since JMS 1.1, a unified domain lets the same Session and generic Destination interfaces work with either model, so code does not have to be written twice for queue-based and topic-based messaging.

In point-to-point, how many consumers receive a given message?
Which destination type is used for publish-subscribe?

Invest now in Acorns!!! 🚀 Join Acorns and get your $5 bonus!
Acorns Logo

Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!

Earn passively and while sleeping

Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.

Robinhood Logo

Invest now!!! Get Free equity stock (US, UK only)!

Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.

The Robinhood app makes it easy to trade stocks, crypto and more.


Webull Logo

Webull! Receive free stock by signing up using the link: Webull signup.

More Related questions...

Show more question and Answers...

ActiveMQ Interview Questions Intermediate

Comments & Discussions