On 14 November 2014 at 18:29:21, Carleen (
dicke...@gmail.com) wrote:
> connection error; reasons {#method(reply-code=320,
> reply-text=CONNECTION_FORCED - broker connection closure
> with reason 'shutdown', class-id=0, method-id=0), null, ""}
This means RabbitMQ was told to shut down (by a human or another program).
> In my code I have a catch for the AlreadyClosedException, and
> try to create a new channel like so:
>
> } catch (AlreadyClosedException e) {
> Connection connection = channel.getConnection();
> channel = connection.createChannel();
> }
>
> This seems to have no effect
You need to register a shutdown hook. connection.close is dispatched
in a different thread.
--
MK
Staff Software Engineer, Pivotal/RabbitMQ