Which models are supported by JMS? Please, explain them.
Ans) Publish or subscribe (pub/sub). This model permits a client (publisher) to send messages to a JMS topic. These messages are retrieved by other clients (subscribers) (it may occurs so that a topic has no subscribers) asynchronously. Pub/sub model needs a broker distributing messages to different consumers.