Broker 屬性 URI
使用 ActiveMQ Classic > 設定傳輸 > ActiveMQ Classic 連線 URI > Broker 設定 URI > Broker 屬性 URI
Broker 屬性 URI
從 ActiveMQ Classic 的 4.2 版本開始,Broker 屬性 URI 允許您透過引用屬性檔案來執行已設定的 Broker,該屬性檔案可以位於類別路徑、本機檔案或遠端 URL。
語法
properties:name
其中 name 是在類別路徑、本機檔案或指向用於配置 Broker 的屬性檔案的遠端 URL 上解析的名稱。
範例 URI
以下範例顯示了使用 URI 的各種變化
properties:/foo/bar.properties
properties:foo.properties
properties:http://foo.com/foo.properties
這是屬性檔案的範例
## ---------------------------------------------------------------------------
## 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