Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

java-basic

View

Download

A very basic example that illustrates how Smooks can be used to apply a Java based transform on a message fragment.

xslt-basic

View

Download

A very basic example that illustrates how Smooks can be used to apply an XSLT based transform on a message fragment.

xslt-groovy

View

Download

An illustration of how Smooks can be used to combine Groovy scripting with XSLT to perform an Order message transform, simplifying the XSLT and maintaining its portability across XSLT Processors.

xslt-namespaces

View

Download

A basic example that illustrates how Smooks can be used to apply an XSLT based transformation on a message fragment that contains namespaces.

xml-to-java

View

Download

An illustration of how Smooks can be used to extract data from an XML message, and use the data to populate an Object graph. It also shows how this Object graph is then accessible outside Smooks via the ExecutionContext.

xml-to-xml

View

Download

This example illustrates how Smooks (in conjunction with FreeMarker) can be used to perform an XML to XML transformation. This example can be used as the basis for any character based transformation i.e. not just XML to XML

java-to-xml

View

Download

This example illustrates how Smooks can be used to transform a Java object graph to XML. It shows how to use a JavaSource to supply a Java object graph to Smooks for transformation.

groovy

View

Download

This example illustrates how Smooks can be used in conjunction with Groovy to perform a Fragment based Transformation.

java-to-java

View

Download

This example illustrates how Smooks can be used to transform one Java Object Graph to another Java Object Graph, without constructing any intermediate models.

model-driven-basic

View

Download

Basic "Model Driven Transformation" using the Smooks Javabean and Templating Cartridges. The templating is done using FreeMarker.

model-driven-basic-virtual

View

Download

This example is exactly the same as the "model-driven-basic" example except that it uses a "Virtual Model".

csv-to-xml

View

Download

An example of how to configure Smooks to process a non-XML stream (CSV).

edi-to-xml

View

Download

An example of how to configure Smooks to process a non-XML stream (EDI).

edi-to-java

View

Download

An example of how to configure Smooks to process a non-XML stream (EDI) and bind the data from that stream into Java Business Objects (Javabeans).

profiling

View

Download

A simple example of how Smooks can be used to "profile" a set of messages, and so share transformation/analysis configurations across a message set.

css

View

Download

This example illustrates how to use the Smooks CSS Cartridge to analyze the CSS components of a HTML document.

servlet

View

Download

This example illustrates how to deploy Smooks in a Servlet Container and use it to perform useragent/browser specific transforms on a Servlet Response.

db-extract-transform-load

View

Download

This example illustrates how Smooks can be used to extract data from an EDI message and load this data into a database, all without writing a single line of code (except for the "Main" class that executes Smooks).

split-transform-route-jms

View

Download

This example illustrates how Smooks can be used to split a message (XML in this case) and route the split messages to a JMS Queue.

split-transform-route-file

View

Download

This example illustrates how Smooks can be used to split a message (XML in this case) and route the split messages to file.