esb

How to handle message order in nservicebus?

别等时光非礼了梦想. 提交于 2019-12-06 05:27:16
I'm trying to find a way to process messages in the order they were sent from the sender since NServiceBus does not guarantee that messages will be processed in a particular order. The sender is an order system which publishes createOrder and reviseOrder commands. The sender allows the user to submit multiple revisions to the same order so there can be revision 4 and revision 3 in the queue at the same time. Each revision has a revision number and reason code associated with it which drives some business logic so we cannot ignore any revisions or at least the reason part of it. A couple of

Unit testing FTP consumer with Apache Camel

本秂侑毒 提交于 2019-12-06 04:33:10
问题 I have the below route. In unit test, since I doesn't have the FTP server available, I'd like to use camel's test support and send an invalid message to "ftp://hostname/input" and verify that it failed and routed to "ftp://hostname/error" . I gone through the documentation which mainly talks about using the "mock:" endpoint but I am not sure how to use it in this scenario. public class MyRoute extends RouteBuilder { @Override public void configure() { onException(EdiOrderParsingException

Calling remote ESB client error

◇◆丶佛笑我妖孽 提交于 2019-12-06 03:56:28
I am trying to send and esb message from remote client, but I am constantly getting this error: org.jboss.soa.esb.listeners.message.MessageDeliverException: org.apache.ws.scout.transport.TransportException: java.lang.reflect.InvocationTargetException at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:545) at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:174) at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:155) at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:197) at cz.certicon.esb.test.SenderESB

BizTalk 2009 ESB Confusion

半腔热情 提交于 2019-12-06 02:35:49
问题 I have a little experience with BizTalk and am trying to understand BizTalk 2009 ESB Toolkit 2 without using it. Firstly, I am wondering whether anyone can clear up a couple of concepts for me: What is the difference between an "on-ramp" and a "receive port"? Why do you need itineraries, can you not simply create the same using ports and orchestrations? I am obviously missing something here. A couple of more general questions: Do all messages still have to go through the Message Box? Thanks

Web Services Versioning: Is ESB overkill?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 21:34:06
We have multiple versions of our web services (both REST and SOAP) in production, and the number keeps getting bigger with every release. Between versions, there can be minor changes (usually additions of new fields) to requests and responses. If we were to retire old versions, how could we continue to service requests for old versions? One aspect of a possible solution involves creating "virtual endpoints" to route requests for previous versions to the new versions of the same services. Thus, requests for /v1/customer/1 maps to /v2/customer/1. We are using Mashery through which this can

how to compare integer properties in filter mediation in wso2 esb?

折月煮酒 提交于 2019-12-05 16:24:28
i am new in wso2 esb and define 3 service that return integer value and use filter mediator to rout from one to another , but not correct work and in filter mode always return false my source is : <sequence xmlns="http://ws.apache.org/ns/synapse" name="SeqOne"> <log level="full"/> <property xmlns:ns="http://org.apache.synapse/xsd" xmlns:m0="http://tempuri.org/" name="CParam" expression="//m0:SumSerViseResponse/m0:SumSerViseResult" scope="default" type="INTEGER"/> <log level="custom"> <property xmlns:ns="http://org.apache.synapse/xsd" name="CParam" expression="$ctx:CParam"/> </log> <property

跳出OO的框架以后。。。。。。

我怕爱的太早我们不能终老 提交于 2019-12-05 15:07:40
如果跳出进程(注意进程与线程的区别:线程是调用域的分界处,进程则是地址空间的分界处------因此,线程是调用问题的边界,进程则是“对象”的边界。在线程以外,没有真正的调用;同时,在进程以外,没有真正的“对象”------这源于操作系统的地址保护/隔离机制),也就跳出了OO的框架。这里的技术开始变得五彩纷呈: DCOM,CORBA,IIOP,SOA,REST,WEB SERVICE,ESB,EAI,SCA,MOM,HTTP,SOAP,RIA。。。 进程内的(运行时)技术,集中在性能,可移植性,可靠性,稳定性,健壮性,状态受控性,线程安全等方面。而进程外的(运行时)技术,侧重点在于异构协作,集成,系统架构,资源,异步,传输特性,路由,系统管理,流程,,,等方面。 来源: oschina 链接: https://my.oschina.net/u/109289/blog/29794

Mule ESB 3.3 - Receiving IMAPS mail (Gmail)

拈花ヽ惹草 提交于 2019-12-05 07:14:31
问题 Anyone has a working example of reading mails from IMAP over SSL (IMAPS) from Gmail? Some info I have gathered, but without any success: Mule ESB: Retrieving email messages from Gmail using IMAP connector IMAP Questions Mule ESB IMAP questions and of course the infamous documentation The thing just sits there doing nothing. Here is my flow: <mule> <imaps:connector name="imapsConnector" checkFrequency="5000" backupEnabled="true" mailboxFolder="INBOX" deleteReadMessages="false" doc:name="IMAP">

ESB企业服务总线

这一生的挚爱 提交于 2019-12-05 02:52:09
ESB是企业服务总线(Enterprise Service Bus)的缩写,是中间件技术与Web Service等技术结合的产物,也是SOA系统中的核心基础设施。ESB就是一个服务的中介,形成服务使用者->ESB服务Proxy->服务提供者的生物链,中介的作用在不同应用中各有不同: 解耦中介 :客户对实际服务提供者的身份、物理位置、传输协议和接口定义都是不知道也不关心的,交互集成代码提取到了业务逻辑之外,由ESB平台进行中央的宣告式定义。ESB平台实现协议转换 (WebService,Http,JMS...),消息转换 (转换、充实、过滤),消息路由 (同步/异步、发布/订阅、基于内容路由、分支与聚合...)。 服务中介 :ESB平台作为中介提供服务交互中的基础服务。ESB平台实现SLA (可靠性保证,负载均衡,流量控制,缓存,事务控制,加密传输),服务管理监控 (异常处理,服务调用及消息数据记录,系统及服务的状态监控,ESB配置管理),统一安全管理 (这个有点理想主义)。 服务编排 :多个服务进行编排形成新的服务。ESB支持一个直观的形式定义新组合服务的流程(工作流、BPEL 或 代码级编排)。 从上面可以看到ESB的基本功能仍然是数据传输,消息协议转化,路由三大核心功能。有这三大核心功能也可以看到在进行异构系统的整合时候往往根据需要ESB提供这些功能

设计能力(二)

做~自己de王妃 提交于 2019-12-05 02:27:43
你如何考虑服务化 # 集中式与分布式 要谈微服务,那么必须建立在分布式的基础上,对于一个集中式系统也无需谈微服务。 # 集中式 集中式系统用一句话概括就是:一个主机带多个终端。终端没有数据处理能力,仅负责数据的录入和输出。而运算、存储等全部在主机上进行。 集中式系统的最大的特点就是部署结构非常简单,底层一般采用从IBM、HP等厂商购买到的昂贵的大型主机。因此无需考虑如何对服务进行多节点的部署,也就不用考虑各节点之间的分布式协作问题。但是,由于采用单机部署。很可能带来系统大而复杂、难于维护、发生单点故障(单个点发生故障的时候会波及到整个系统或者网络,从而导致整个系统或者网络的瘫痪)、扩展性差等问题。 # 分布式 分布式就是一群独立计算机集合共同对外提供服务,但是对于系统的用户来说,就像是一台计算机在提供服务一样。分布式意味着可以采用更多的普通计算机(相对于昂贵的大型机)组成分布式集群对外提供服务。计算机越多,CPU、内存、存储资源等也就越多,能够处理的并发访问量也就越大。 拿电商网站来说,我们一般把一个电商网站横向拆分成商品模块、订单模块、购物车模块、消息模块、支付模块等。然后我们把不同的模块部署到不同的机器上,各个模块之间通过远程服务调用( RPC )等方式进行通信。以一个分布式的系统对外提供服务。 # 服务化 提到分布式,一个不得不提的词就是服务化