Samples
The WSO2 ESB comes with a set of working examples that demonstrate some of its basic features and capabilities. A set of sample clients and services are provided in addition to the sample configurations. This document provides scripts to execute available sample scenarios.
Note
The ESB configurations listed below, with each sample, is the raw source XML serialization of the sample configuration. This may be viewed graphically through the WSO2 ESB administration console after logging into the console.
For more information, see the following pages:
- ESB Samples Setup
- Message Mediation Samples
- Sample 11: A Full Registry-based Configuration and Sharing a Configuration between Multiple Instances
- Sample 13: Dual Channel Invocation through Synapse
- Sample 2: CBR with the Switch-Case Mediator Using Message Properties
- Sample 4: Introduction to Error Handling
- Sample 5: Creating SOAP Fault Messages and Changing the Direction of a Message
- Sample 0: Introduction to ESB
- Sample 15: Message Enrichment through Synapse
- Sample 17: Transforming / replacing message content with Payload-factory mediator
- Sample 14: Sequences and Endpoints as local registry items
- Sample 10: Introduction to Dynamic Endpoints with the Registry
- Sample 3: Local Registry Entry Definitions, Reusable Endpoints and Sequences
- Sample 12: One Way Messaging fireAndForget through ESB
- Sample 16: Introduction to dynamic and static registry keys
- Sample 1: Simple Content-Based Routing (CBR) of Messages
- Sample 7: Introduction to Local Registry Entries and Using Schema Validation
- Sample 9: Introduction to Dynamic Sequences with the Registry
- Sample 6: Manipulating SOAP Headers and Filtering Incoming and Outgoing Messages
- Sample 8: Introduction to Static and Dynamic Registry Resources and Using XSLT Transformations
- Advanced Mediation with Endpoints
- Sample 55: Session affinity load balancing between fail over endpoints
- Sample 54: Session affinity load balancing between 3 endpoints
- Sample 52: Sessionless Load Balancing Between 3 Endpoints
- Sample 56: WSDL endpoint
- Sample 59: Weighted load balancing between 3 endpoints
- Sample 60: Routing a Message to a Static List of Recipients
- Sample 58: Static load balancing between 3 nodes
- Sample 51: MTOM and SwA optimizations and request/response correlation
- Sample 53: Failover sending among 3 endpoints
- Sample 62: Routing a Message to a Dynamic List of Recipients and Aggregating Responses
- Sample 57: Dynamic load balancing between 3 nodes
- Sample 50: POX to SOAP conversion
- Sample 61: Routing a Message to a Dynamic List of Recipients
- Quality of Service Samples in Message Mediation
- Proxy Service Samples
- Sample 150: Introduction to Proxy Services
- Sample 151: Custom Sequences and Endpoints with Proxy Services
- Sample 157: Conditional Router for Routing Messages based on HTTP URL, HTTP Headers and Query Parameters
- Sample 153: Routing the Messages Arrived to a Proxy Service without Processing the Security Headers
- Sample 154: Load Balancing with Proxy Services
- Sample 152: Switching Transports and Message Format from SOAP to REST POX
- Sample 155: Dual Channel Invocation on Both Client Side and Server Side of Synapse with Proxy Services
- Sample 156: Service Integration with specifying the receiving sequence
- Quality of Service Samples in Service Mediation (proxy)
- Transports Samples and Switching Transports
- Sample 250: Introduction to Switching Transports
- Sample 251: Switching from HTTP(S) to JMS
- Sample 252: Pure Text (Binary) and POX Message Support with JMS
- Sample 253: Bridging from JMS to HTTP and Replying with a 202 Accepted Response
- Sample 254: Using the File System as Transport Medium (VFS)
- Sample 255: Switching from FTP Transport Listener to Mail Transport Sender
- Sample 256: Proxy Services with the Mail Transport
- Sample 257: Proxy Services with the FIX Transport
- Sample 258: Switching from HTTP to FIX
- Sample 259: Switch from FIX to HTTP
- Sample 260: Switch from FIX to AMQP
- Sample 261: Switch between FIX Versions
- Sample 262: CBR of FIX Messages
- Sample 263: Transport Switching - JMS to http/s Using JBoss Messaging(JBM)
- Sample 264: Sending Two-Way Messages Using JMS transport
- Sample 265: Accessing a Windows Share Using vfs Transport
- Sample 266: Switching from TCP to HTTP/S
- Sample 267: Switching from UDP to HTTP/S
- Sample 268: Proxy Services with the Local Transport
- Sample 270: Transport switching from HTTP to MSMQ and MSMQ to HTTP
- Introduction to ESB Tasks
- Advanced Mediations with Advanced Mediators
- Using Scripts in Mediation (Script Mediator)
- Database Interactions in Mediation (DBLookup / DBReport)
- Throttling Messages (Throttle Mediator)
- Extending the Mediation in Java (Class Mediator)
- Evaluating XQuery for Mediation (XQuery Mediator)
- Splitting Messages into Parts and Process in Parallel (Iterate / Clone)
- Caching Responses Over Requests
- Synchronize Web Service Invocation with Callout Mediator
- Mediating JSON Messages
- URL Rewrite Mediator
- Event
- Spring
- Introduction to Rule Mediator
- Sample 602: Rule Mediator as a Filter - Simple Rule-Based Routing Using Drools Native Language
- Sample 606: Advanced Transformation and Use of Custom Java Objects
- Sample 600: Rule Mediator as a Filter - Simple Rule-Based Routing Using an In-Lined Rule Script
- Sample 604: Simple Message Transformation - Rule Mediator for Message Transformation
- Sample 603: Advance Rule-Based Routing - Switching Routing Decision According to Rules
- Sample 605: Simple Message Transformation - Rule Mediator for Message Transformation
- Sample 601: Rule Mediator as a Filter - Simple Rule-Based Routing Using Rule Script from Registry
- Miscellaneous Samples
- Sample 656: Message Relay - Builder Mediator
- Sample 652: Priority Based Message Mediation
- Sample 654: Smooks Mediator
- Sample 653: NHTTP Transport Priority Based Dispatching
- Sample 651: Using Synapse Observers
- Sample 657: Distributed Transaction Management
- Sample 655: Message Relay - Basics Sample
- Sample 650: File Hierarchy-Based Configuration Builder
- Store and Forward Messaging Patterns with Message Stores and Processors
- Template Samples
- REST API Management
- Mediation Library Samples
More samples can be seen in sections, URLRewrite Mediator, Throttle Mediator, DBLookup Mediator, DBReport Mediator, Class Mediator, XQuery Mediator, Rule Mediator, Callout Mediator, Script Mediator and Transaction Mediator.