🎄 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.

Need to connect to two VPNs using Spring boot solace

yogig
yogig Member Posts: 1

We have requirement where we have to manually switch between active and DR vpn. so few questions
1. How to connect to multiple vpns?
2. 2. how to identify the vpn is down ?

Thanks

Comments

  • uherbst
    uherbst Member, Employee Posts: 130 Solace Employee

    Hi Yogig,
    The answer depends a little bit on which protocol/API you want to use.
    The easiest answer: Use Solace Enterprise APIs (= SMF as protocol) - all these client APIs have the concept of a hostlist implemented.
    The application will try to connect to all hosts in that hostlist one after the other until there is a successful connection.
    And because you can't connect to a shutdowned VPN (that's the answer to the question "How to identify the VPN is down ?". Answer: If you can connect, the VPN is NOT shutdowned), that does work automatically.

    Often, such setups have a hostlist with 4 members: 2 hosts for the members of an HA cluster, and 2 hosts for the members of the DR-HA cluster.

    Does that answer your questions ?

    Uli