Changes between Version 5 and Version 6 of ConfiguringActiveMQ


Ignore:
Timestamp:
12/14/10 15:26:47 (7 years ago)
Author:
masc01
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ConfiguringActiveMQ

    v5 v6  
    4747 
    4848 
     49== Changing the port of an embedded ActiveMQ broker == 
    4950 
     51The usual way to change the port on which an ActiveMQ broker listens for connections would be to change the `transportConnector` setting in the activemq.xml config file. However, to simplify the configuration of embedded brokers, we use the following convention. 
     52 
     53If the system property {{{jms.url}}} is present on a java process which is configured to use the embedded broker, the port given in the value of that property is used for the embedded broker to listen to connections from external clients. 
     54 
     55For example, starting a java process with 
     56 
     57{{{ 
     58java -Djms.url=tcp://localhost:61617 -Dsemaine.use.embedded.broker=true eu.semaine.system.ComponentRunner ... 
     59}}} 
     60 
     61allows other components to connect to activemq via port 61617. 
     62 
     63