Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<!--
  Copyright (C) FuseSource, Inc.
  http://fusesource.com

  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.
  -->
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
           xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
           xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0">

    <cm:property-placeholder persistent-id="org.fusesource.fabric.dosgi" update-strategy="reload">
        <cm:default-properties>
            <cm:property name="port" value="2543"/>
            <!-- Address to advertise -->
            <cm:property name="exportedAddress" value="localhost"/>
            <!-- Where to bind -->
            <cm:property name="host" value="0.0.0.0"/>
            <cm:property name="uri" value="tcp://${host}:${port}"/>
            <cm:property name="timeout" value="300000"/>
        </cm:default-properties>
    </cm:property-placeholder>

    <bean id="activator" class="org.fusesource.fabric.dosgi.Activator" destroy-method="destroy">
        <property name="bundleContext" ref="blueprintBundleContext"/>
        <property name="exportedAddress" value="${exportedAddress}"/>
        <property name="uri" value="${uri}"/>
        <property name="timeout" value="${timeout}"/>
    </bean>

    <reference id="zooKeeper" interface="org.fusesource.fabric.zookeeper.IZKClient">
        <reference-listener ref="activator" bind-method="registerZooKeeper" unbind-method="unregisterZooKeeper"/>
    </reference>

</blueprint>
New to GrepCode? Check out our FAQ X