You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by DanielShao <d_...@hotmail.com> on 2007/10/05 18:34:51 UTC

Start ActiveMQ with ip address

Hi

Our company DNS is not stable.  I want to configure ActiveMQ so that it uses
ip address instead of hostName.  We are running ActiveMQ on linux.  I tried
replacing localhost to our ip address in /conf/activemq.xml.  But still get
exception like this.

Error: Exception thrown by the agent : java.net.MalformedURLException: Local
host name unknown: java.net.UnknownHostException: ...

One of our issues is machine's hostName can't be resolved by DNS server.

Here is part of my activemq.xml.

<broker brokerName="10.92.143.16" useJmx="true"
xmlns="http://activemq.org/config/1.0">

...

 <transportConnectors>
       <transportConnector name="openwire" uri="tcp://10.92.143.16:61616"
discoveryUri="multicast://default"/>
       <transportConnector name="ssl"     uri="ssl://10.92.143.16:61617"/>
       <transportConnector name="stomp"   uri="stomp://10.92.143.16:61613"/>
    </transportConnectors>

...

Please tell me how to configure ActiveMQ to use ip address only.

Thanks

Daniel
-- 
View this message in context: http://www.nabble.com/Start-ActiveMQ-with-ip-address-tf4576379s2354.html#a13063061
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Start ActiveMQ with ip address

Posted by DanielShao <d_...@hotmail.com>.
I see, will try to see if this works.

Thanks

Daniel


j0llyr0g3r wrote:
> 
> Hi,
> 
> i think the error stems from here:
> 
> <broker brokerName="10.92.143.16" useJmx="true"
> xmlns="http://activemq.org/config/1.0">
> 
> Give it a brokername like "foooo" and add an corresponding to your
> /etc/hosts file, like:
> 
> 10.92.143.16 foooo
> 
> 
> DanielShao wrote:
>> 
>> Hi
>> 
>> Our company DNS is not stable.  I want to configure ActiveMQ so that it
>> uses ip address instead of hostName.  We are running ActiveMQ on linux. 
>> I tried replacing localhost to our ip address in /conf/activemq.xml.  But
>> still get exception like this.
>> 
>> Error: Exception thrown by the agent : java.net.MalformedURLException:
>> Local host name unknown: java.net.UnknownHostException: ...
>> 
>> One of our issues is machine's hostName can't be resolved by DNS server.
>> 
>> Here is part of my activemq.xml.
>> 
>> <broker brokerName="10.92.143.16" useJmx="true"
>> xmlns="http://activemq.org/config/1.0">
>> 
>> ...
>> 
>>  <transportConnectors>
>>        <transportConnector name="openwire" uri="tcp://10.92.143.16:61616"
>> discoveryUri="multicast://default"/>
>>        <transportConnector name="ssl"    
>> uri="ssl://10.92.143.16:61617"/>
>>        <transportConnector name="stomp"  
>> uri="stomp://10.92.143.16:61613"/>
>>     </transportConnectors>
>> 
>> ...
>> 
>> Please tell me how to configure ActiveMQ to use ip address only.
>> 
>> Thanks
>> 
>> Daniel
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Start-ActiveMQ-with-ip-address-tf4576379s2354.html#a13101776
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Start ActiveMQ with ip address

Posted by j0llyr0g3r <ti...@wincor-nixdorf.com>.
Hi,

i think the error stems from here:

<broker brokerName="10.92.143.16" useJmx="true"
xmlns="http://activemq.org/config/1.0">

Give it a brokername like "foooo" and add an corresponding to your
/etc/hosts file, like:

10.92.143.16 foooo


DanielShao wrote:
> 
> Hi
> 
> Our company DNS is not stable.  I want to configure ActiveMQ so that it
> uses ip address instead of hostName.  We are running ActiveMQ on linux.  I
> tried replacing localhost to our ip address in /conf/activemq.xml.  But
> still get exception like this.
> 
> Error: Exception thrown by the agent : java.net.MalformedURLException:
> Local host name unknown: java.net.UnknownHostException: ...
> 
> One of our issues is machine's hostName can't be resolved by DNS server.
> 
> Here is part of my activemq.xml.
> 
> <broker brokerName="10.92.143.16" useJmx="true"
> xmlns="http://activemq.org/config/1.0">
> 
> ...
> 
>  <transportConnectors>
>        <transportConnector name="openwire" uri="tcp://10.92.143.16:61616"
> discoveryUri="multicast://default"/>
>        <transportConnector name="ssl"     uri="ssl://10.92.143.16:61617"/>
>        <transportConnector name="stomp"  
> uri="stomp://10.92.143.16:61613"/>
>     </transportConnectors>
> 
> ...
> 
> Please tell me how to configure ActiveMQ to use ip address only.
> 
> Thanks
> 
> Daniel
> 

-- 
View this message in context: http://www.nabble.com/Start-ActiveMQ-with-ip-address-tf4576379s2354.html#a13073276
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Start ActiveMQ with ip address

Posted by Tom Samplonius <to...@samplonius.org>.
----- "DanielShao" <d_...@hotmail.com> wrote:

> 
> Error: Exception thrown by the agent : java.net.MalformedURLException:
> Local
> host name unknown: java.net.UnknownHostException: ...
> 
> One of our issues is machine's hostName can't be resolved by DNS
> server.
> 
> Here is part of my activemq.xml.
> 
> <broker brokerName="10.92.143.16" useJmx="true"
> xmlns="http://activemq.org/config/1.0">
...

  The brokerName attribute does not have to be a real hostname.  The brokerName is just the name of your particular ActiveMQ instance.  It displays in jConsole, and some other places.  It is helpful if you have several brokers, perhaps on the same server, and you need to give them separate names.

Tom