olokia-example-spring.2.2.7.source-code.applicationContext.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2009-2023 Roland Huss
~
~ Licensed 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.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jolokia="http://www.jolokia.org/jolokia-spring/schema/config"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/util https://www.springframework.org/schema/util/spring-util.xsd
http://www.jolokia.org/jolokia-spring/schema/config https://www.jolokia.org/jolokia-config.xsd">
<context:property-placeholder system-properties-mode="ENVIRONMENT"/>
<context:mbean-export server="jolokiaMBeanServer"/>
<jolokia:mbean-server id="jolokiaMBeanServer"/>
<util:map id="configuration">
<entry key="jmx.jolokiaPort" value="8778"/>
</util:map>
<jolokia:agent id="jolokia" lookupConfig="true" lookupServices="true" systemPropertiesMode="override"
exposeApplicationContext="true">
<jolokia:config autoStart="true"
port="#{configuration['jmx.jolokiaPort']}"
host="127.0.0.1"/>
<jolokia:log type="slf4j"/>
</jolokia:agent>
</beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy