esb

Mule ESB vs. Spring Integration [closed]

懵懂的女人 提交于 2019-11-29 14:33:53
问题 The Mule ESB project explains its difference to Spring Integration on its website. However, regarding dcterms.date 2012-07-19T18:43-03:00 of the document, the text might be outdated. The main points of the quoted paragraph are "Spring Integration takes [...] an 'application-centric' approach to integration". "Rather than implement a shared bus, [...] Spring Integration is aimed at providing 'just a little' ESB-style integration to specific applications". "Spring Integration is best suited to

Mule ESB Http项目转换为Tomcat项目(6) 中文乱码问题处理

喜欢而已 提交于 2019-11-29 11:16:30
在前面转换的Tomcat项目中,我们发起的json请求内容是英文的,tomcat项目正常处理请求,返回xml报文。但是如果我们的请求json报文中包含了中文,例如 { "name":"王三", "id":"197" } 这样的请求发送给ESB项目时中文处理正常,没有出现乱码。 <?xml version='1.0' encoding='UTF-8' ?> <Student> <name>王三</name> <id>197</id> </Student> 这是因为ESB项目中的Http Listener控件已经内置了将请求的json报文按UTF-8编码格式读取,使得处理请求时不会出现中文乱码。 ESB项目转换成的Tomcat项目使用Servlet inbound endpoint替换了Http Listener控件,处理json报文时缺乏了内置编码支持,响应的xml报文因而出现了乱码。 <?xml version='1.0' encoding='utf-8'?> <Student> <name>王三</name> <id>197</id> </Student> 为了处理中文乱码,我们需要在转换后的Tomcat项目的流程文件testproject.xml的servlet inbound endpoint后添加以下代码: <set-property propertyName=

wso2 esb Unsupported Media Type

余生颓废 提交于 2019-11-29 08:46:39
I would like my company to use the Wso2ESB, but I have only two days left to convince them, and the creation of Proxy does not work! I am desperate for a real help for my problem: every proxy that I create seem to produce HTTPSender Unable to sendViaPost to... (why it is unable to send it?) Transport error: 415 Error: Unsupported Media Type (is it a consequence of the fact that it could not send? or a problem in the configuration?) My fresh installation of WSO2 ESB 4.5 is not working with any web service I have tried: JAXWS and C#. I always have the following message LOG: [2012-05-09 08:42:19

将Mule ESB Http项目转换为Tomcat项目(4) 将ESB项目改造为Web项目

前提是你 提交于 2019-11-29 03:06:44
系列2中创建的ESB项目无法在Studio中直接转换为可以部署到Tomcat的Web项目,因为Mule Anypoint Studio提供的Project Facet不包含Dynamic Web Module,只有Static Web Module,需要我们进行手动修改。 Mule ESB官方提供的Tomcat项目转换文档存在很多谬误,不建议参考,我进行转换时主要参考的是这篇博文。 https://www.ricston.com/blog/tomcat-mule-3-7/ 1. 将Mule ESB的运行时的所有库包拷贝到一个本地库目录,这些库包原来所在的位置在Anypoint的安装目录的plugins\org.mule.tooling.server.3.8.0.ee_6.0.0.201601271348\mule\lib目录下(如图所示),我们把它们拷贝到一个指定目录,例如D:\muleLib下 2. 改变项目的packaging类型为war,这样会使得在进行编译时,使用的是mave compile plugin,而不是mule提供的mule-app-maven-plugin。 <groupId>com.mycompany</groupId> <artifactId>testproject</artifactId> <version>1.0.0-SNAPSHOT</version>

Mule ESB Http项目转换为Tomcat项目(9) 日志问题处理

蓝咒 提交于 2019-11-29 03:06:33
Mule ESB项目的日志输出有两种方式,可以在流程中添加Logger组件输出日志,也可以在自定义的代码中添加日志输出。Mule ESB日志使用Log4j2库进行输出,Mule ESB 企业版使用的log4j2版本是2.1。 我们在ESB项目中拖入一个Logger控件,输出经过Transformer转化后的Json 报文。 这里Logger控件里的Message内容为#[message.payloadAs(java.lang.String)],使用的是MEL(Mule Expression Language),等效于message.getPayloadAsString() 拖拽Logger控件后,在项目的src/main/resources目录下生成了log4j2.xml文件,用于配置Log4j2的日志输出 log4j2.xml的内容如下: <?xml version="1.0" encoding="utf-8"?> <Configuration> <Appenders> <RollingFile name="file" fileName="${sys:mule.home}${sys:file.separator}logs${sys:file.separator}testproject.log" filePattern="${sys:mule.home}${sys:file

将Mule ESB Http项目转换为Tomcat项目(5) 改造Tomcat

你离开我真会死。 提交于 2019-11-29 03:04:22
需要运行ESB项目转换的web项目的Tomcat最低版本要求是7.0.50,我们使用了7.0.69。Tomcat需要做以下改动: 1)修改conf/server.xml文件,添加以下代码: <Listener className="org.mule.module.tomcat.MuleTomcatListener" /> 2)在tomcat根目录下新建名为mule_libs的目录,将mule studio使用的mule esb运行时环境jar包(除了boot目录外)拷贝到mule_libs目录下: 然后将boot目录下的以下jar包拷贝到mule_libs/opt目录下 commons-cli-<version>.jar disruptor-<version>.jar jcl-over-slf4j-<version>.jar log4j-jcl-<version>.jar slf4j-api-<version>.jar wrapper-<version>.jar 再将anypoint studio的data weaver plugin下的jar包拷贝到mule_libs/opt目录下 3)修改conf/catalina.properties文件,修改common.loader common.loader=${catalina.base}/lib,${catalina.base}

将Mule ESB Http项目转换为Tomcat项目(3) ESB项目运行

£可爱£侵袭症+ 提交于 2019-11-29 03:03:38
建立好了Mule ESB Http项目,即可以开始运行,但是因为Studio maven编译存在的问题,如果直接以[Mule Application With Maven]方式运行ESB项目的话,会先将ESB项目使用maven编译成zip再部署到studio内置的Mule ESB standalone中运行,然而由于(1)中提到的原因,这个编译过程无法完成,会导致ESB项目无法运行,因此如果要在Studio中运行这个ESB项目,我们需要先将这个项目解除Maven支持,变成普通的Mule项目运行。 解除Maven支持的方法是右键点击ESB项目,在弹出的右键菜单中点击[Mule]-[Disable Maven Support]。 解除了Maven支持后,右键点击ESB项目,选择[Run As]-[Mule Application],即可运行ESB项目。 出现上述信息时表示ESB项目已经部署成功。 如果需要在ESB项目中添加第三方库包支持,可以再选择Enable Support,将ESB项目转换成maven项目,再添加相应的depdendency. ESB项目运行起来后,我们在http客户端工具(例如soap ui, postman,advanced rest client)调用http://localhost:8081/Test,然后在Body中输入我们请求的json报文 点击

Mule ESB Http项目转换为Tomcat项目(8) 与Spring的结合(Web项目改造)

狂风中的少年 提交于 2019-11-29 03:02:59
(7)中在ESB项目中集成了Spring项目,但是在移植到Web项目并不能原样移植过去,需要做一些修改。 1.首先将ESB项目新增的代码文件,配置文件和第三方pom引用更新到Web项目中。 2.修改pom文件中的maven-war-plugin,将conf目录下的applicationContext.xml文件拷贝到WEB-INF/conf目录下: <resource> <targetPath>WEB-INF/conf</targetPath> <directory>src/main/app/conf</directory> <includes> <include>*.xml</include> </includes> </resource> 再在流程文件中修改导入applicationContext.xml文件的路径 <spring:beans> <spring:import resource="WEB-INF/conf/applicationContext.xml"/> </spring:beans> 这样修改好后,部署到tomcat运行时,将会出现以下异常: java.io.FileNotFoundException: Cannot create a relative resource for resource WEB-INF/testproject.xml

Is BizTalk an ESB?

ⅰ亾dé卋堺 提交于 2019-11-28 22:37:47
问题 I am looking into architectural patterns, Enterprise Services Bus (ESB) precisely. Upon reading this article Enterprise Integration, and with little to no experience I am wondering if BizTalk has is a ESB or is it just a EAI (Hub/Spokes or Bus)? I found this NServiceBus and Biztalk, describing BizTalk as a central message broker. Taking other ESB frameworks into account (NServiceBus and Rhino Service Bus). These frameworks have no central point to process messages. Is Biztalk a EAI rather

Apache camel to aggregate multiple REST service responses

吃可爱长大的小学妹 提交于 2019-11-28 22:03:17
I m new to Camel and wondering how I can implement below mentioned use case using Camel, We have a REST web service and lets say it has two service operations callA and callB. Now we have ESB layer in the front that intercepts the client requests before hitting this actual web service URLs. Now I m trying to do something like this - Expose a URL in ESB that client will actually call. In the ESB we are using Camel's Jetty component which just proxies this service call. So lets say this URL be /my-service/scan/ Now on receiving this request @ESB, I want to call these two REST endpoints (callA