代理属性 URI
使用 ActiveMQ Classic > 配置传输 > ActiveMQ Classic 连接 URI > 代理配置 URI > 代理属性 URI
代理属性 URI
从 ActiveMQ Classic 4.2 版本开始,代理属性 URI 允许您通过引用一个属性文件来运行已配置的代理,该属性文件可能位于类路径、本地文件或远程 URL 上。
语法
properties:name
其中 name 是在类路径上解析的某个名称,作为指向用于配置代理的属性文件的本地文件或远程 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