Open anupam-contaque opened 2 years ago
In general, Spring Boot auto-configure only supports the auto-configuration of a single connection.
There's currently an open issue raised there to support multiple DataSources which is related to this: https://github.com/spring-projects/spring-boot/issues/15732. Until the Spring team figures out how they want to approach this, there's nothing we can really do right now to support the auto-configuration of multiple PubSub+ sessions.
For reference, here's a similar discussion regarding adding multi-session support for Rabbit MQ: https://github.com/spring-projects/spring-boot/pull/25369
If JMS is not a hard requirement for you, as an alternative solution, I suggest you check out the PubSub+ binder for Spring Cloud Stream: https://github.com/SolaceProducts/solace-spring-cloud/tree/master/solace-spring-cloud-starters/solace-spring-cloud-stream-starter
This project natively supports multiple sessions out of the box: https://docs.spring.io/spring-cloud-stream/docs/current/reference/html/spring-cloud-stream.html#multiple-systems
Use case: I have this setup of Solace where message VPNs are separated based on the business domain. We are designing a Spring Boot application that needs to process the data for different domains using JMS.
Right now solace-spring-boot configuration allows only one message VPN to connect to while the brokers are generally set up with more than one VPNs based on the nature of messages.
Is there any plan to support multiple VPNs using the configuration? Currently do we have any workaround to setup solace-spring-boot that can subscribe/publish to queues of different VPNs?