Coder Social home page Coder Social logo

mule-example's Introduction

Mule 社区版的一些实例

#Todo

0. Mule的配置 配置到weblogic中,并且可以读取外部配置文件

1. Deploy to weblogic 嵌入到服务器内部使用

2. 做一个代理模式,接受客户webservice代理之后发送一个供内部访问的CXF 生成一个Java API

3. JMS 发送,接受

1. 官网的工具下载太慢了,所以放到了百度盘,请选择自己所需的版本下载

2. WebService

1. CXF方式发布

#####1. 发布一个简单service 一个mule形式展现的SOA API至少要三个要素

  1. endpoint 接受请求,发送响应

  2. CXF组件 一个SOA API,当收到请求的时候,通过在URL后添加?wsdl 暴露其wsdl文件来展现接口,通过CXF,Mule有两种展示wsdl的形式

    1.wsdl first  把自己建立的WSDL文件连接到CXF组件引用
    2.代码 first   采用Java注解,用 JAX-WS编译一个以此为基础的WSDL
    

可以通过CXF组件来验证WSDL传入请求有效性

CXF组件同样允许你选择一种类型的操作

   1. Proxy Service: 允许你直接在flow中处理XML文件,这就意味着更少的转换,更快的响应时间。使用场景:
       1. 直接编辑XML
       2. 使用XSLT
       3. 使用DataMapper来匹配fields
   2. JAX-WS: 转换payload 为POJO。在你的flow中,POJO的属性更容易访问。使用场景:
       1. 更习惯使用Java对象来工作
       2. 需要构建一个JSON或者POJO的输出
       3. 使用社区版,不能使用DataMapper
       4. 想要通过Code first的方式来呈现WSDL(Proxy service只有在WSDL first的情况下才行)
  1. 处理组件 处理请求,执行业务逻辑 #####2. 发布一个JAX-WS service #####3. 代理一个已发布的service

3. JMS

4. Maven

mule-example's People

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.