Mobile // Mobile Applications
12:00 AM

What is Apache Synapse?

I have a background in developing messaging-based systems with JMS, as well as with Enterprise Service Bus (ESB) software. I've also written on both topics for Dr. Dobb's.{readmore}

I have a background in developing messaging-based systems with JMS, as well as with Enterprise Service Bus (ESB) software. I've also written on both topics for Dr. Dobb's.

-The Java Message Service,, July 2007 (
-Defining the ESB,, July 2007 (
-Building a Lightweight JMS Provider, Dr. Dobbs Journal, June 2004 (

I like lightweight, easy to use, software. It's easier to install, configure, extend, and build applications with. Maybe I'm just simple minded, but lightweight usually translates to something simple, and that's often good enough. When it comes to enterprise Java software, application servers, JMS providers, and ESB servers can be difficult to get running, and get started with as a developer. Having something simple and lightweight to work with is refreshing. In fact, response from my article, Defining the ESB, was positive because it helps explain what can otherwise be a very complex topic. This is why I've begun to look at Apache Synapse (

Apache Synapse is a lightweight ESB with an asynchronous core that's simple to configure, performs well, and is still very useful. It has support for HTTP, SOAP, SMTP, JMS, FTP and file system transports, as well as WS-Addressing, Web Services Security (WSS), Web Services Reliable Messaging (WSRM), and efficient binary attachments (MTOM/XOP). Synapse supports message transformation using Java, XSLT, or XPath and XQuery. 

You can easily extend Synapse in Java, or dynamic scripting languages such as JavaScript, Ruby, and Groovy. Synapse supports non-blocking HTTP and HTTPS, JMS v1.0 and higher, SOAP, XML/REST, FTP, SFTP, File, Webdav, CIFS, and POP3/IMAP/SMTP transports. 

The latest release of Synapse is 1.1.1. Its key features are:
Proxy services - facilitating transport, interface (WSDL/Schema/Policy), message format (SOAP 1.1/1.2, POX/REST, Text, Binary), QoS (WS-Security/RM) and optimization switching (MTOM/SwA)
Non-blocking http/s transports based on Apache HttpCore for fast execution and support for thousands of connections
Built in Registry/Repository, facilitating dynamic updating and reloading of the configuration and associated resources (e.g. XSLTs, XSD, JS, ..)
Easily extended via custom Java class (mediator and command)/Spring mediators, or BSF Scripting languages (Javascript, Ruby, Groovy etc)
Built in support for scheduling tasks using the Quartz scheduler
Load-balancing/Fail-over, and clustered Throttling and Caching support
WS-Security, WS-Reliable Messaging & Throttling configurable via WS-Policies
JMS (v1.x upwards) message support for binary, plain text and XML and SOAP payloads
Enhanced support for Apache VFS transports (s/ftp, file, zip/tar/gz, webdav, cifs..)
Support for message splitting & aggregation using the EIP
Database lookup & store support with DBMediators
Enhanced Mail transport with POP3/SMTP/IMAP protocols
Ability to pin a proxy service or a task to server instances on a cluster
Lightweight, XML and Web services centric messaging model
Configurations serialized into a file system for versioning/backup & restoration with built-in Registry support
Support for Error handling and timeouts, recovery with http/s aintainance mode & gracefull shutdown
JMX monitoring support
Many samples and a built-in Axis2 server to try out and experiment with samples (Samples includes WS-Security, JMS POX/Text messages, Script mediation and many more samples which can be run out of the box)
Enhanced documentation

Stay tuned to my blog for more on Synapse as I develop some interesting, useful, sample ESB applications with it.


Comment  | 
Print  | 
More Insights
Building A Mobile Business Mindset
Building A Mobile Business Mindset
Among 688 respondents, 46% have deployed mobile apps, with an additional 24% planning to in the next year. Soon all apps will look like mobile apps and it's past time for those with no plans to get cracking.
Register for InformationWeek Newsletters
White Papers
Current Issue
InformationWeek Tech Digest, Nov. 10, 2014
Just 30% of respondents to our new survey say their companies are very or extremely effective at identifying critical data and analyzing it to make decisions, down from 42% in 2013. What gives?
Twitter Feed
InformationWeek Radio
Sponsored Live Streaming Video
Everything You've Been Told About Mobility Is Wrong
Attend this video symposium with Sean Wisdom, Global Director of Mobility Solutions, and learn about how you can harness powerful new products to mobilize your business potential.