zoukankan      html  css  js  c++  java
  • CloudStack服务引擎配置(cloud-engine-service模块)

    <?xml version="1.0" encoding="UTF-8"?>
    <!--CloudStack服务引擎配置-->
    <beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxrs="http://cxf.apache.org/jaxrs"
      xmlns:context="http://www.springframework.org/schema/context"
      xsi:schemaLocation="
           http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
           http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
           http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
    
      <import resource="classpath:META-INF/cxf/cxf.xml" />
      <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
      <!--spring自动扫描组建-->
      <context:component-scan base-package="org.apache.cloudstack" />
      <!--CloudStack服务类型注册,采用REST风格-->
      <jaxrs:server id="EngineService" address="/">
        <jaxrs:serviceBeans>
          <ref bean="ZoneRestService" />
          <ref bean="PodRestService" />
          <ref bean="ClusterRestService" />
          <ref bean="VirtualMachineRestService" />
          <ref bean="VolumeRestService" />
        </jaxrs:serviceBeans>
        <jaxrs:providers>
          <bean class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider" />
        </jaxrs:providers>
      </jaxrs:server>
      
      <bean id="onwireRegistry" class="org.apache.cloudstack.framework.serializer.OnwireClassRegistry"
        init-method="scan" >
        <property name="packages">
          <list>
            <value>org.apache.cloudstack.framework</value>
          </list>
        </property>
      </bean>
      
    <!--消息序列化--> <bean id="messageSerializer" class="org.apache.cloudstack.framework.serializer.JsonMessageSerializer"> <property name="onwireClassRegistry" ref="onwireRegistry" /> </bean> <bean id="transportProvider" class="org.apache.cloudstack.framework.server.ServerTransportProvider" init-method="initialize"> <property name="workerPoolSize" value="5" /> <property name="nodeId" value="Node1" /> <property name="messageSerializer" ref="messageSerializer" /> </bean>
    <!--远程调用提供--> <bean id="rpcProvider" class="org.apache.cloudstack.framework.rpc.RpcProviderImpl" init-method="initialize"> <constructor-arg ref="transportProvider" /> <property name="messageSerializer" ref="messageSerializer" /> </bean> <bean id="eventBus" class = "org.apache.cloudstack.framework.eventbus.EventBusBase" /> </beans>
  • 相关阅读:
    WPF之Binding基础八 使用Linq数据作为Binding的源
    WPF之Binding基础七 使用XML数据作为Binding的源
    WPF之Binding基础六 使用ADO.NET作为Binding的数据源
    WPF之Binding基础五 使用集合对象作为列表控件的ItemSource
    WPF之Binding基础四 使用DataContext作为Binding的源
    解决 VS的IISExpress localhost可以访问,127.0.0.1和本机ip访问不了(错误400)
    c# 使用特性封装提供额外行为Validate验证
    c# 反射调用方法、获取设置值、好处和局限性
    c# 反射加读取类、方法、特性、破坏单例
    linq to object使用
  • 原文地址:https://www.cnblogs.com/heidsoft/p/3522851.html
Copyright © 2011-2022 走看看