Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change default port number of Activemq

I am using Windows 7 OS. I downloaded apache-activemq-5.8.0.zip from these Link and extracted in C:\Users\Infratab Bangalore\Desktop\Queueing\apache-activemq-5.8.0 directory.

While Activemq initialization time I read Pre-Installation Requirements concept from these Link.

I already installed apache-maven-3.0.5 in my system.For my conformation I run the following command in my system.

   mvn -version

I am getting the following message,So Maven is installed successfully.

 Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 19:21:
 28+0530)
 Maven home: P:\Software\apache-maven-3.0.5
 Java version: 1.7.0_21, vendor: Oracle Corporation
 Java home: C:\Program Files\Java\jdk1.7.0_21\jre
 Default locale: en_US, platform encoding: Cp1252
 OS name: "windows 7", version: "6.1", arch: "x86", family: "windows" 

I downloaded geronimo-spec-corba-1.0.jar from these Link and set classpth.

enter image description here

I started Activemq initialization in the following way.

  C:\Users\Infratab Bangalore\Desktop\Queueing\apache-activemq-5.8.0\bin>activemq

I am getting error,So I tested whether 61616(Activemq default port no) is in active with the following statement.

  C:\Users\Infratab Bangalore>netstat -an|find "61616"
   TCP    0.0.0.0:61616          0.0.0.0:0              LISTENING
   TCP    [::]:61616             [::]:0                 LISTENING

Finally I understand 61616 port is active so I want to change my port number.

  1. Am I right, what I am thinking?

  2. How can I install Activemq.

Thanks.

like image 943
Hanumath Avatar asked Aug 06 '13 14:08

Hanumath


People also ask

How do I change my ActiveMQ port number?

You can change the port for ActiveMQ in the activemq. xml file. Just do a find on 61616 and replace it with the port you would like to use (it should be in the <transportConnector> tag with the name openwire ). You do not have to install ActiveMQ, simply launch activemq.

What is ActiveMQ default port?

ActiveMQ's default port is 61616. From another window run netstat and search for port 61616.

Where is the ActiveMQ configuration file?

Configuration. ActiveMQ configuration relies on the activemq. xml file, located at TDI_install_folder/etc .

How do I access ActiveMQ console?

To access the management console use a browser and go to the URL http://localhost:8161/console. A login screen will be presented, if your broker is secure, you will need to use a user with admin role, if it is unsecure simply enter any user/password.


1 Answers

I believe your problem is there is already something running on port 61616. (It could be another instance of ActiveMQ you started on accident).

You can change the port for ActiveMQ in the activemq.xml file. Just do a find on 61616 and replace it with the port you would like to use (it should be in the <transportConnector> tag with the name openwire).

You do not have to install ActiveMQ, simply launch activemq.bat in the bin folder to start the standalone service.

like image 192
Brinnis Avatar answered Oct 10 '22 15:10

Brinnis