When a Core client is configured for discovery [1] you just need the
corresponding broadcast-group on the broker(s) to broadcast a connector
that uses "sslEnabled=true". The client will receive that connector and use
it to connect to the broker.

You can do this with ActiveMQClient, e.g.:

    ServerLocator myServerLocator =
ActiveMQClient.createServerLocator("udp://231.7.7.7:9876");


Justin

[1]
https://activemq.apache.org/components/artemis/documentation/latest/clusters.html#configuring-client-discovery

On Thu, Jul 10, 2025 at 2:14 PM Glenn Burkhardt <gbburkha...@gmail.com>
wrote:

> I've been trying to figure out how configure a client to use SSL when
> the client also uses UDP discovery to find servers.  Is that possible?
> Presumably the acceptor/connector in each of the servers needs to be set
> up with SSL - that seems to be straight forward.
>
> I'd also like to do this programmatically.  All the ActiveMQClient and
> ServerLocator methods that use a TransportConfiguration as an argument
> seem to be for connecting to a specific server.
>
> Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@activemq.apache.org
> For additional commands, e-mail: users-h...@activemq.apache.org
> For further information, visit: https://activemq.apache.org/contact
>
>
>

Reply via email to