TCP based transport protocols (including SSL) allow you to define the local address and local port for Socket to use when it's created. To specify the local address and local port, ActiveMQ supports the use of the path on the URI, e.g. ssl://localhost:5666/localhost:60606
where the path following the forward slash "localhost:60606" defines the local address and local port |