如何将Spring应用程序与Mule ESB集成 [英] How to integrate Spring application with Mule ESB
问题描述
我想将我的spring(3.0)应用程序与Mule ESB(Mule3)集成在一起,并为不同的客户端(.Net,GWT等)提供这些服务.为此,我是否应该将Spring应用程序部署为单独的组件并在Mule上定义Endpoint,还是可以将Spring应用程序部署在Mule内并将这些服务提供给外部客户端.如果有人知道与该问题有关的一些想法或示例参考项目,请向我更新.谢谢.
I want to integrate my spring (3.0) application with Mule ESB (Mule3) and make available those service for different clients (.Net, GWT etc). For accomplish this, whether I should deploy my Spring application as separate component and define Endpoint on Mule or I can deploy my spring application inside the Mule and provide those services to outside clients. If anyone know some ideas or any sample reference projects related to this problem, can please update me. Thanks.
推荐答案
我建议将Mule集成到您的Spring应用程序中.也就是说,将Mule jar文件添加到您的应用程序并将其用作库.这样,Mule会将子上下文添加到您的主要Spring应用程序上下文中,并且可以访问您的bean,因此可以将它们用作服务.
I would recommend integrating Mule into your Spring application. That is, adding the Mule jar files to your app and using it as a library. Doing it this way Mule adds a child context to your main Spring application context and has access to your beans so they can be used as services.
The Using Mule with Spring and Spring Application Contexts pages are the places to start learning about how to do this.
这篇关于如何将Spring应用程序与Mule ESB集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!