[rabbitmq-discuss] Configuring beyond rabbitmq server on localhost
McMahon, James S (TASC)
james.mcmahon at TASC.COM
Fri Jul 27 20:58:33 BST 2012
Can you show me by simple example, is hostName in the following code supposed to be an IP address, or MYCOMPNAME from rabbit at MYCOMPNAME, or the entire string rabbit at MYCOMPNAME, or something else?
ConnectionFactory factory = new ConnectionFactory();
factory.setHost(hostName);
factory.setPort(portNumber);
Connection connection = factory.newConnection();
Channel channel = connection.createChannel();
Jim
________________________________________
From: rabbitmq-discuss-bounces at lists.rabbitmq.com [rabbitmq-discuss-bounces at lists.rabbitmq.com] on behalf of Francesco Mazzoli [francesco at rabbitmq.com]
Sent: Monday, July 23, 2012 12:58 PM
To: Discussions about RabbitMQ
Subject: Re: [rabbitmq-discuss] Configuring beyond rabbitmq server on localhost
At Mon, 23 Jul 2012 16:41:53 +0000,
McMahon, James S (TASC) wrote:
> On the server running my rabbitmq instance, how do I tell it "service incoming
> requests to send or read messages by listening on port 1234"?
By changing the RABBITMQ_NODE_PORT environmental variable, see
http://www.rabbitmq.com/configure.html .
> When you say Rabbit binds on all interfaces by default, that doesn't mean it
> monitors all ports does it?
It obviously doesn't (that would be an odd thing to do), I meant that rabbitmq
will receive all incoming connection and not just local one (in other words it
won't bind to the loopback interface only).
--
Francesco * Often in error, never in doubt
_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss at lists.rabbitmq.com
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
CONFIDENTIALITY NOTICE: This message and any attachments or files transmitted with it (collectively, the "Message") are intended only for the addressee and may contain information that is privileged, proprietary and/or prohibited from disclosure by law or contract. If you are not the intended recipient: (a) please do not read, copy or retransmit the Message; (b) permanently delete and/or destroy all electronic and hard copies of the Message; (c) notify us by return email; and (d) you are hereby notified that any dissemination, distribution or copying of the Message is strictly prohibited.
More information about the rabbitmq-discuss
mailing list