Author: Jiangnan Baiyi, original article address: Yun
Assume that a Traveler wants to develop a good Java backend server on winter nights.
The so-called beauty is the high performance, tens of millions of users; high reliability, failover is still dead; high scalability, with the nearby tuxedo, ibm mq, WebService neighbors to deal well. This is a non-personalized requirement, almost every time.
The open-source world of Java has prepared Mina, cxf,
developers who directly edit code.
You can deploy a mule application to a robust and lightweight mule server. It performs just as well in standalone installation and cluster topology mode. The management console can be deployed to a mule repository or multiple mule cluster
Mule FoundationMule is a lightweight integrated platform that enables you to connect anything, any location. Instead of creating multiple point-to-point integrations between systems, services, APIs (application programming Interface, application programming interfaces) and devices, you can use mule to intelligently manage message routing, data mapping, business processes, reliability, Security and scalabili
. The project structure tree contains the directory structure of the entire project. After creating a mule project, you will see the mule project name and the following file and directory structure:
Path
Description
Src/main/Java
Stores custom Java classes
Src/main/Resources
Storage Flowchart
Src/test/Resources
Stores custom Java test classes
Applicat
This demo shows a basic function of ESB: connecting two systems. Source code can be checked out from SourceForge, SVN address https://mydemolib.svn.sourceforge.net/svnroot/mydemolib
The demo steps are as follows:
1. Start cxfdemo-server to publish the service: mvnclean jetty: Run2. Start cxfdemo-client and directly connect to the Service released by cxfdemo-server to confirm that both the
Undertake Mule ESB-Content-Based Routing Tutorial (1)5. Run the applicationAfter creating, configuring, and saving your new application, you can run it on the embedded Mule server (including in Mule Studio as part of the bundled download ). 1. In the Package Explorer pane, right-click the Basic Tutorial. mflow file and
the command line running and the running based on the Axis service. If the latter is used, enter the following address in the browser: http: // localhost: 65081/services/EchoUMO? Method = echo
2.2 run in Development Environment
2.2.1 create a Mule Project
Enter the project name, select Add sample project content, select Echo Example from the drop-down list, and Finish.
2.2.2 run
After creating a project, you can view the project structure, right
byte stored in stream correct but garbled?Frequent debuggingProgramWhen we view the content of an object, the object viewer calls the tostring method of the object. After checking, we found that the tostring method of bytearrayoutputstream was overwritten: Java code girls cut their hair for the first time
PublicSynchronizedString tostring (){
ReturnNewString (BUF,0, Count );
}
Bytearrayoutputstream uses all the bytes in the buffer to create and return a String object. Note that
Restpack.
Mule Restpack provides a full set of connectors and complete guides to help users create new restful applications. At the time this article was written, the package provided three types of transporter, based on three popular rest frameworks: Abdera, Jersey, and Restlet. So we can easily expose new resources, but how do we integrate existing rest resources?
The good news is that the groovy support provided by the
the value of the parameter.
2. Web Service Proxy
The Web Service Proxy is used to forward the client's WS request directly to the corresponding remote WS-Server processing and returns the processing result. Mule itself does not do any processing.
2.1 Configuration Mode 1 Sample Configuration
encoding= "UTF-8" disabletransporttransformer= "false" exchange-pattern= "Request-response" doc:name= "HTTP"
Doc:d
Original reproduced from: http://blog.csdn.net/neareast/article/details/11111279
Mule Basic Concepts
In the simplest case, the Mule application processes messages through a number of message processors like Lego bricks, which are grouped together as a process we call flow . Understanding the basic message structure and flow system is the key to understanding mule
. web service that supports axis or glue. 5. flexible deployment structure [topologies] includes Client/Server, P2P, ESB and enterprise service network. 6. integration with the Spring framework: it can be used as an ESB container and can be easily embedded into spring applications. 7. use highly scalable Enterprise Servers Based on the Seda processing model. 8. powerful Event Routing Mechanism Based on EIP mode.
Bytes ----------------------------
Because we need to do something about data exchange and know about the mule, which we have seen before and has never used. I thought it would be easy to use it. Who knows there are a lot of problems with it and there is no one to discuss.
Requirement: synchronize local folders with FTP
Use mule version: 2.2.1
Problems encountered and solutions:
1. I don't know how to embed
(Web service proxy pattern)
The Web services proxy pattern is used to forward Web service requests directly to the remote target Web service server, and mule itself does not provide an actual Web service.
Figure Web Service proxy mode
The Web service proxy pattern is configured through the Ws-proxy element, and the main attributes are:
Property
Description
Inboundaddress
SOA-based system development is increasingly becoming an outline of distributed system development, and in the System inheritance platform project, we also have a good realization of this concept. In this project, the interaction between the various systems is mainly dependent on the webservice, which is the basic system for the examination system, the evaluation system to provide data support, and as the business continues to expand, we will provide more and more webservice, In this case, if th
About mule ESB, in short, mule accepts a message and processes the message in a certain order. Such processing can lead to multiple results. Sometimes, mule changes or transforms the message and returns it to the original message source (request-response ). Or, send the form to one or more third parties (router, transfer) based on the original one ). In other cas
Jolow.1.0.6: http://www.jolokia.org/agent/mule.html
Mule esb 3.3.0: http://www.mulesoft.org
Now more and more integrated platforms use the Mule Enterprise Service Bus middleware. The monitoring program of the Mule Enterprise Edition is charged. However, the Mule daxie is still somewhat conscientious and implements many
This article describes how to compile the built-in examples of Mule and import them to the eclispe project.
1. Prepare
Install Mule: the previous article in my blog:
A simple example of Mule installation and development and deploymentThis section describes how to install Mule and develops a simple example. Here we will
I. Requirements
Simplify data interaction between different data sources
Simplify service interaction between different applications
Scalable, lightweight, embedded, customizable, and easy to use
Ii. architecture style selection
Mule uses a message-based architecture style (as shown in). A message has the following features: no language relation, no component dependency, data format flexibility, and no message status, message-based services also
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.