JEETHESH KARKERA
JEETHESH KARKERA

Reputation: 203

How to automatically read/receive message from solace queue when application started?

I want to automatically read/receive messages from solace queue/topic if any message produced or published when my application is up. So is there any method in solace which can open connection automatically if there is any message available in Queue/Topic.

Upvotes: 0

Views: 1351

Answers (1)

Russell Sim
Russell Sim

Reputation: 1733

So is there any method in solace which can open connection automatically if there is any message available in Queue/Topic

This is not possible for JMS. JMS applications initiate a connection to the broker and receive messages over the locally initiated connection.

The only way to do what you want is to use REST instead of JMS. When a REST consumer is configured, the Solace event broker will initiate a HTTP connection to the application.

A sample can be found here: https://solace.com/samples/solace-samples-rest-messaging/publish-subscribe/

Upvotes: 2

Related Questions