Broker Properties URI

Using ActiveMQ Classic > Configuring Transports > ActiveMQ Classic Connection URIs > Broker Configuration URI > Broker Properties URI

Broker Properties URI

From version 4.2 of ActiveMQ Classic onwards the Broker Properties URI allows you to run a configured broker by referencing a properties file which could be on the classpath, a local file or a remote URL.

Syntax

properties:name

Where name is some name which is resolved on the classpath, as a local file or a remote URL which points to the properties file used to configure the broker.

Example URI

The following examples show variations in using the URI

properties:/foo/bar.properties
properties:foo.properties
properties:http://foo.com/foo.properties

Here is an example properties file

## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements.  See the NOTICE file distributed with
## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with
## the License.  You may obtain a copy of the License at
## 
## http://www.apache.org/licenses/LICENSE-2.0
## 
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## ---------------------------------------------------------------------------
# START SNIPPET: example
useJmx = false
persistent = false
brokerName = Cheese
# END SNIPPET: example

Apache, ActiveMQ, Apache ActiveMQ, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. Copyright © 2024, The Apache Software Foundation. Licensed under Apache License 2.0.