[rabbitmq-discuss] Configuring beyond rabbitmq server on localhost
Jerry Kuch
jerryk at rbcon.com
Fri Jul 27 21:18:47 BST 2012
you're good with any string that your machine can resolve to the IP address
of the system you're trying to connect to... this could be either a host name or an IP address depending on the state of your DNS setup, your hosts file, etc.
If you fail to connect, inspect the resulting exception or details...
Sent from my iPhone (Brevity and typos are hopefully the result of 1-fingered typing rather than rudeness or illiteracy).
On Jul 27, 2012, at 12:58 PM, "McMahon, James S (TASC)" <james.mcmahon at TASC.COM> wrote:
> 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.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
More information about the rabbitmq-discuss
mailing list