Mule : Config Graph
This page last changed on Oct 26, 2005 by rossmason.
The Mule configuration Grapher is a great tools for generating Configuration graphs from Mule Xml. Take a look at some samples -
Running the toolPrerequisitesTo run you will need the following -
Optional
RunningThe Config Graph tools is located in the Mule distibution under tools/config-graph. You can generate configuration graphs for all Mule Sample applications maven generate-samples To generate graphs for your own configuration files you can run maven -Dfiles=my-mule-config.xml generate Options
Combining FilesCombining files can be really useful fo getting the 'big picture' of your Mule Application as you can combine Mule node configurations from many different machines. MappingsMappings are used to make a logical connection between objects on the graph when there is no relationship configured in the Mule Xml. These logical Mappings are only required when the routing path between components is not explicitly defined i.e. dynamic routing. Mappings are defined as key/value pairs in a .properties file where the key 'maps' to the value in the diagram. These values use the object names as represented on the output graph so you can define relationships between component, endpoints, routers or any other object. An example mapping might be where a replyTo endpoint is set on a message and Mule handles the routing from the replyTo to the next component. Using the Loan Broker as an example, the replyTo endpoints for the Banks would be mapped as - Bank1=LoanBrokerQuotes Bank2=LoanBrokerQuotes Bank3=LoanBrokerQuotes Bank4=LoanBrokerQuotes Bank5=LoanBrokerQuotes When using dynamic routers such as the receipient List you may want to define the possible routes from the router to the endpoints i.e. LenderService.org.mule.routing.outbound.StaticRecipientList=Bank1,Bank2,Bank3,Bank4,Bank5 This says, from the StaticRecipientList router on the LenderService, map to each of the Bank endpoints. Mapping Duplicate EndpointsSometimes and inbound endpoint is not expressed in the same way as an outbound endpoint. This is the case for Soap endpoints where the outbound endpoint has a method param, but inbound endpoint Soap endpoint doesn't. You can logically map these two endpoints so that they appear as one on the graph, i.e. CreditAgencyReceiver.equals=CreditAgency Note the 'equals' extension tells the Config Graph that the two objects are equivilent. Once you map the two endpoints you'll probably want to hide one of them... Hiding NodesTo hide a node you add the following entry to the mapping file CreditAgencyReceiver.hide=true TipsIt's a good practice to use Endpoint Identifiers in your Mule Xml to map physical endpoints to logical names. This helps when configuring mappings for the Config Grapher and these logical names can be used in the mappings instead of the physical names. ![]() ![]() ![]() ![]() ![]() ![]() |
![]() |
Document generated by Confluence on Oct 03, 2006 09:23 |