我想通过stomp和ssl连接到托管Rabbit MQ实例。如何在MessageBrokerRegistry中创建TCP连接?
<div class="pagination">
{% if vehicles.has_previous %}
<a href="?page=1">« first</a>
<a href="?page={{ vehicles.previous_page_number }}{% if request.GET.q %}&q={{ request.GET.q }}{% endif %}">previous</a>
{% endif %}
<a href="#" class="active">Page {{ vehicles.number }} of {{ vehicles.paginator.num_pages }}</a>
{% if vehicles.has_next %}
<a href="?page={{ vehicles.next_page_number }}{% if request.GET.q %}&q={{ request.GET.q }}{% endif %}">next</a>
<a href="?page={{ vehicles.paginator.num_pages }}{% if request.GET.q %}&q={{ request.GET.q }}{% endif %}">last »</a>
{% endif %}
</div>
我希望使用MessageBrokerRegistry的.setTcpClient()方法,但我不知道如何创建客户端。
有人对此有解决方案吗?