--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
msgbroker_1 |
msgbroker_1 | RabbitMQ 3.5.5. Copyright (C) 2007-2015 Pivotal Software, Inc.
msgbroker_1 | ## ## Licensed under the MPL. See http://www.rabbitmq.com/
msgbroker_1 | ## ##
msgbroker_1 | ########## Logs: tty
msgbroker_1 | ###### ## tty
msgbroker_1 | ##########
msgbroker_1 | Starting broker...
msgbroker_1 | =INFO REPORT==== 2-Oct-2015::21:51:40 ===
msgbroker_1 | Starting RabbitMQ 3.5.5 on Erlang 18.1
msgbroker_1 | Copyright (C) 2007-2015 Pivotal Software, Inc.
msgbroker_1 | Licensed under the MPL. See http://www.rabbitmq.com/
msgbroker_1 |
msgbroker_1 | =INFO REPORT==== 2-Oct-2015::21:51:40 ===
msgbroker_1 | node : rabbit@4733860cfe10
msgbroker_1 | home dir : /var/lib/rabbitmq
msgbroker_1 | config file(s) : /etc/rabbitmq/rabbitmq.config
msgbroker_1 | cookie hash : Aq4L6k0WNrBLgQdNIlexIw==
msgbroker_1 | log : tty
msgbroker_1 | sasl log : tty
msgbroker_1 | database dir : /var/lib/rabbitmq/mnesia/rabbit@4733860cfe10
msgbroker_1 |
msgbroker_1 | =INFO REPORT==== 2-Oct-2015::21:51:40 ===
msgbroker_1 | Memory limit set to 801MB of 2002MB total.
msgbroker_1 |
msgbroker_1 | =INFO REPORT==== 2-Oct-2015::21:51:40 ===
msgbroker_1 | Disk free limit set to 50MB
msgbroker_1 |
msgbroker_1 | =INFO REPORT==== 2-Oct-2015::21:51:40 ===
msgbroker_1 | Limiting to approx 1048476 file handles (943626 sockets)
msgbroker_1 |
msgbroker_1 | =INFO REPORT==== 2-Oct-2015::21:51:40 ===
msgbroker_1 | FHC read buffering: ON
msgbroker_1 | FHC write buffering: ON
msgbroker_1 |
msgbroker_1 | =INFO REPORT==== 2-Oct-2015::21:51:40 ===
msgbroker_1 | application: mnesia
msgbroker_1 | exited: stopped
msgbroker_1 | type: temporary
msgbroker_1 |
msgbroker_1 | =INFO REPORT==== 2-Oct-2015::21:51:40 ===
msgbroker_1 | Priority queues enabled, real BQ is rabbit_variable_queue
msgbroker_1 |
msgbroker_1 | =INFO REPORT==== 2-Oct-2015::21:51:40 ===
msgbroker_1 | Adding vhost '/'
msgbroker_1 |
msgbroker_1 | =INFO REPORT==== 2-Oct-2015::21:51:40 ===
msgbroker_1 | Creating user 'guest'
msgbroker_1 |
msgbroker_1 | =INFO REPORT==== 2-Oct-2015::21:51:40 ===
msgbroker_1 | Setting user tags for user 'guest' to [administrator]
msgbroker_1 |
msgbroker_1 | =INFO REPORT==== 2-Oct-2015::21:51:40 ===
msgbroker_1 | Setting permissions for 'guest' in '/' to '.*', '.*', '.*'
msgbroker_1 |
msgbroker_1 | =INFO REPORT==== 2-Oct-2015::21:51:40 ===
msgbroker_1 | msg_store_transient: using rabbit_msg_store_ets_index to provide index
msgbroker_1 |
msgbroker_1 | =INFO REPORT==== 2-Oct-2015::21:51:40 ===
msgbroker_1 | msg_store_persistent: using rabbit_msg_store_ets_index to provide index
msgbroker_1 |
msgbroker_1 | =WARNING REPORT==== 2-Oct-2015::21:51:40 ===
msgbroker_1 | msg_store_persistent: rebuilding indices from scratch
msgbroker_1 |
msgbroker_1 | =INFO REPORT==== 2-Oct-2015::21:51:40 ===
msgbroker_1 | started TCP Listener on [::]:5672
msgbroker_1 | completed with 0 plugins.
msgbroker_1 |
msgbroker_1 | =INFO REPORT==== 2-Oct-2015::21:51:40 ===
msgbroker_1 | Server startup complete; 0 plugins started.
Using a different configuration with the same broker but a Java client,
messages are sent and received.
And what’s different in that 'different configuration’?
Pretty much everything on the client side and nothing on the same side. In the working one, we launch a JVM and call
duration = new FiniteDuration(30, TimeUnit.MINUTES);
Address msgbrokerAddr = new Address("msgbroker", 5672);
List<Address> addrs = Lists.newArrayList(msgbrokerAddr);
ConnectionSettings settings = new ConnectionSettings(JavaConversions.asScalaBuffer(addrs).toList(),"/", // virtualHost"guest", // username"guest", // passwordOption.empty(), // heartbeatDuration.Inf(), // timeoutfalse, // AutoRecoveryduration, // recoveryIntervalOption.empty() // no options);connection = Connection$.MODULE$.apply(settings);
Using the classes from io.scala. Relevant part of the pom.xml:
<!-- RabbitMQ interface --><dependency><groupId>io.scalac</groupId><artifactId>reactive-rabbit_2.11</artifactId><version>1.0.2</version></dependency>
With the non-working version, we start SBCL, load cl-rabbit and call
(defvar msgbroker "msgbroker")
(with-connection (conn)(format t "Created connection ~s~%" conn)(let ((socket (tcp-socket-new conn))(channel 1))(format t "Created socket ~s~%" socket)(socket-open socket msgbroker 5672)(format t "Opened socket ~s~%" socket)(login-sasl-plain conn "/" "guest" "guest")(format t "logged in ~s~%" conn))
In both cases, we try to connect to host msgbroker with username guest and password guest. In one case, it works. In the other, there is a memory fault.
Troy
From: Alvaro Videla <videl...@gmail.com>
Date: Monday, October 5, 2015 at 10:39 AM
To: "rabbitm...@googlegroups.com" <rabbitm...@googlegroups.com>, Daniels Troy <troy.d...@stresearch.com>
Subject: Re: [rabbitmq-users] Using rabbit from lisp inside docker