当前位置: 首页 > news >正文

网站运营数据周报表怎么做太原网站的公司

网站运营数据周报表怎么做,太原网站的公司,网页无法访问是什么意思,网站实时推送怎么做当今的应用程序希望能够访问企业环境中的所有业务#xff0c;而无需考虑与绝望的系统无缝集成的应用程序技术。 可以通过使用中间件技术对各种系统进行布线来实现这种集成。 集成平台使应用程序可以相互共享信息的环境#xff0c;从而使体系结构具有高度的互操作性。 Spring… 当今的应用程序希望能够访问企业环境中的所有业务而无需考虑与绝望的系统无缝集成的应用程序技术。 可以通过使用中间件技术对各种系统进行布线来实现这种集成。 集成平台使应用程序可以相互共享信息的环境从而使体系结构具有高度的互操作性。 Spring Integration提供了一个中介框架以使用路由和中介构建轻量级集成解决方案而与协议无关。 Spring Integration是轻量级的路由和中介框架不需要笨重的ESB容器即可部署。 Spring Integration使用Message对象来通信路由和传递数据这没什么但是Java对象上的包装器由有效负载和标头组成。 有效载荷包含的数据可以是任何类型例如文件字符串流等而标头包含有关消息的通用信息例如ID时间戳等。 消息通过通道与生产者进行通信该生产者将源与目标分离并将消息发布到任何协议例如JMSHTTPLdap文件等。生产者将消息发送到通道而使用者则从通道接收消息 简单集成应用 下例显示了生产者如何将雇员对象发送到渠道发布者如何从渠道接收消息。 下载源代码 Spring Dependency Maven配置 为了开始简单的集成示例我们只需要将核心spring集成和spring上下文依赖项添加到maven pom.xml中。 此外我们还需要Junit和spring测试才能进行单元测试 propertiesspring.framework.version3.2.3.RELEASE/spring.framework.versionspring.integration.version2.2.4.RELEASE/spring.integration.versionjunit.version4.11/junit.version/propertiesdependenciesdependencygroupIdorg.springframework/groupIdartifactIdspring-context/artifactIdversion${spring.framework.version}/version/dependencydependencygroupIdorg.springframework.integration/groupIdartifactIdspring-integration-core/artifactIdversion${spring.integration.version}/version/dependencydependencygroupIdjunit/groupIdartifactIdjunit/artifactIdversion${junit.version}/versionscopetest/scope/dependencydependencygroupIdorg.springframework/groupIdartifactIdspring-test/artifactIdversion${spring.framework.version}/versionscopetest/scope/dependency/dependencies 弹簧配置 我们必须在Spring配置中配置通道和网关以发送和接收消息 SpringIntegTest-context.xml ?xml version1.0 encodingUTF-8? beans:beans xmlnshttp://www.springframework.org/schema/integration xmlns:xsihttp://www.w3.org/2001/XMLSchema-instance xmlns:beanshttp://www.springframework.org/schema/beans xmlns:contexthttp://www.springframework.org/schema/context xsi:schemaLocationhttp://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.2.xsd!--sendRequestreceiveRequest--annotation-config/context:component-scan base-packageorg.springsample.integration/gateway idrequest service-interfaceorg.springsample.integration.SentRequest/channel idsendRequest/outbound-channel-adapter channelsendRequest refreceiveResponse methodprocessMessage / /beans:beans 在这里我们创建了请求网关以将消息发送到通道并创建出站适配器以从sendRequest通道接收消息。 Spring Integration的网关是发送消息的入口点该消息使用Java接口指定。 Spring Integration在运行时自动定义代理实现 请求和接收 下面我们创建SentRequest和ReceiveResponse类以发送和接收消息如下所示 SentRequest.java package org.springsample.integration; import org.springframework.integration.annotation.Gateway; public interface SentRequest {Gateway(requestChannelsendRequest)public void process(Employee emp);} Gateway批注将指示发送消息的入口点 package org.springsample.integration; import org.springframework.integration.Message; import org.springframework.integration.annotation.MessageEndpoint; MessageEndpoint public class ReceiveResponse { public void processMessage(MessageEmployee message) {Employee employee message.getPayload();System.out.println(Message Received \n Name :employee.getName()/n Phone : employee.getPhone()/n Address :employee.getAddress());} } MessageEndpoint将指示它将通过适配器从通道接收消息。 以下是雇员POJO但并非不行 package org.springsample.integration; public class Employee {private String name;private String title;private String address;private String phone;public Employee(String name, String phone, String address) {this.namename;this.phonephone; this.addressaddress; //……..Getter amd Setter} }测试中 我们可以使用spring测试框架进行测试如下所示 package org.springbyexample.integration; RunWith(SpringJUnit4ClassRunner.class) ContextConfiguration public class SpringIntegTest {Autowiredprivate SentRequest request null;Testpublic void testIntegration() {Employee emp new Employee(John, 12345678, Sunny Street Mac RG1);request.process(emp);} } 确保在org / springbyexample / integration中保留spring配置文件名称SpringIntegTest-context并且应该在类路径中 在运行SpringIntegTest时它将显示控制台消息如下所示 收到消息 名字John / n电话12345678 / n地址Sunny Street Mac RG1 下载源代码 摘要 Spring Integration是开放源代码的简单集成可增强松散耦合并使应用程序集成变得容易和简单。 它将以可配置的方式在通道和网关之间集成路由和中介消息。 本文有助于了解Spring Integration并将帮助您开发一个简单的集成应用程序。 资源资源 http://static.springsource.org/spring-integration/reference/html/overview.html 参考 Spring集成我们的JCG合作伙伴 Nitin Kumar在Tech My Talk博客上提出的一种轻量级集成方法 。 翻译自: https://www.javacodegeeks.com/2013/09/spring-integration-a-lightweight-integration-approach.html
http://www.sadfv.cn/news/373736/

相关文章:

  • 微信上微网站怎么做的网站空间是什么意思
  • 免费做微信链接的网站吗百度电商平台app
  • wordpress 建站很简单绍兴网站建设方案书
  • 免费php模板网站潍坊市建设局官方网站
  • 抚顺市 网站建设网页版微信地址
  • 织梦网站模板如何安装教程网站建设的总体目标考核指标
  • 做盗版网站的wordpress打开
  • 律师做网站有用开发直播软件流程
  • 自动化科技产品网站建设网站设计公司营销crm系统
  • 承接做网站的网站荆门seo
  • 全国网站备案查询私人公司怎么做网站
  • 用手机做网站服务器苏州市城乡和建设局网站
  • 网站排名查询系统电商网站成本
  • 上海网站开发兼职建设网站的题目
  • 什么是网络营销的技术seo网站代码优化
  • 电子商务网站备案从哪个网站设置宽带主机
  • 做推广送网站免费建站建立网站英文翻译
  • 织梦程序如何搭建网站西安wordpress主题
  • 做类型网站母婴网站模板dede
  • 网站建设运营有限公司网站建设基本问题
  • 濮阳做网站的网络服务商是指什么
  • 简约wordpress免费主题官网seo关键词排名系统
  • 做网站前两个月应该干什么深圳网站设计优异刻
  • 企业怎么做网站推广物流网站首页图片
  • 好康的网站代码网站建设静态部分报告总结
  • 整形网站开发证明做二维码打款网站链接
  • 网站建设按钮网站推广员能力要求
  • 中文网站站内优化怎么做西安购物网站建设
  • 怎样制作自己公司的网站辽宁省建设工程信息网电子保函
  • 网站设计策划书云相册网站怎么做