All Downloads are FREE. Search and download functionalities are using the official Maven repository.

OSGI-INF.blueprint.cxf-wsn.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<!--

    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.

-->
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
           xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0">

    <!-- AdminConfig property place holder for the org.apache.cxf.wsn  -->
    <cm:property-placeholder persistent-id="org.apache.cxf.wsn" update-strategy="reload">
        <cm:default-properties>
            <cm:property name="cxf.wsn.activemq" value="vm:localhost"/>
            <cm:property name="cxf.wsn.rootUrl" value="http://0.0.0.0:8182" />
            <cm:property name="cxf.wsn.context" value="/wsn" />
        </cm:default-properties>
    </cm:property-placeholder>

    <!-- ActiveMQ connection factory -->
    <bean id="activemq" class="org.apache.activemq.ActiveMQConnectionFactory">
        <argument value="${cxf.wsn.activemq}" />
    </bean>

    <!-- NotificationBroker -->
    <bean id="notificationBroker" class="org.apache.cxf.wsn.services.JaxwsNotificationBroker" init-method="init" destroy-method="destroy">
        <argument value="NotificationBroker" />
        <argument ref="activemq" />
        <property name="address" value="${cxf.wsn.rootUrl}${cxf.wsn.context}/NotificationBroker" />
    </bean>
    <service ref="notificationBroker" interface="org.oasis_open.docs.wsn.brw_2.NotificationBroker">
        <service-properties>
            <entry key="address" value="${cxf.wsn.rootUrl}${cxf.wsn.context}/NotificationBroker" />
        </service-properties>
    </service>

    <!-- CreatePullPoint -->
    <bean id="createPullPoint" class="org.apache.cxf.wsn.services.JaxwsCreatePullPoint" init-method="init" destroy-method="destroy">
        <argument value="org.apache.cxf.wsn.client.CreatePullPoint" />
        <argument ref="activemq" />
        <property name="address" value="${cxf.wsn.rootUrl}${cxf.wsn.context}/CreatePullPoint" />
    </bean>
    <service ref="createPullPoint" interface="org.oasis_open.docs.wsn.bw_2.CreatePullPoint">
        <service-properties>
            <entry key="address" value="${cxf.wsn.rootUrl}${cxf.wsn.context}/CreatePullPoint" />
        </service-properties>
    </service>

</blueprint>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy