🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
What's the difference of JCSMPSession.createFlow() and getMessageConsumer()
Both methods are used to receive messages from the VPN
what are the differences between them?
Comments
-
The basic distinction between the two is where you consume messages from on the broker.
createFlow() creates a FlowReceiver for a guaranteed messaging endpoint - a queue or a topic endpoint.
getMessageConsumer() creates a XMLMessageConsumer - a channel to consume direct messages matching the session's topic subscriptions. Subscriptions are added to the session using the addSubscription(Subscription s) method.
These tutorials explain using publish subscribe and point-to-point pattern with the Java API:2