<?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>

最新文章

  1. HTML5入门(CSS样式-------------------(CSS基础知识点----------------------------))
  2. 2014-10-28——iframe多层嵌套时获取元素总结
  3. Long 陷阱
  4. UVA 253 Cube painting(暴力打表)
  5. Context 之我见
  6. 最火的Android开源项目(完结篇)
  7. easyui tab 加载iframe 高度问题
  8. 利用github for windows 工具将本地的内容同步到github上
  9. 异步编程(Async和Await)的使用
  10. Java8之旅(六) -- 使用lambda实现尾递归
  11. 【干货】Chrome插件(扩展)开发全攻略
  12. Vue工具
  13. 微信企业付款获取RSA
  14. html实现导航栏效果
  15. HUE配置hadoop
  16. P1387 最大正方形 图DP
  17. 2018/04/02 PHP 中的浮点数计算问题
  18. java中HashMap在多线程环境下引起CPU100%的问题解决
  19. 【leetcode 简单】第十二题 报数
  20. 20145328 《Java程序设计》第3周学习总结

热门文章

  1. SQL利用Case When Then多条件判断
  2. 【转】linux驱动程序中的并发控制
  3. Android实例] android获取web服务器端session并验证登陆
  4. zzzzz
  5. Visual Studio 2005 移植 - WINVER,warning C4996, error LINK1104
  6. IDEA14 Ultimate Edition注册码
  7. SSD Cloud Hosting&ndash;Linode-Mysql数据库的安装与配置
  8. bzoj1833 digit
  9. Python中的并发编程
  10. Android之操作SQLite