Integrate Mathematica with Rails, Grails and More

Adam Berry

Wolfram Research, Inc

The Scene

Growth and Proliferation of Frameworks

http://en.wikipedia.org/wiki/Comparison_of_Web _application _frameworks

Integration Options

Low-level MathLink

J/Link, .NET/Link,...

webMathematica

Integration the web way

webMathematica: More Than Forms

J2EE Integration

Tomcat or more simply a servlet container supporting the relevant servlet/JSP spec version

Form based sites

Just one aspect

Web Services and APIs

The content or data side of the story

Creating Web Services

Mathematica Online - Functions as a service

webMathematica

URLs with parameters are the easiest choice

Types of Services

Functions as Services

Graphics

Data as a Return

APIs tend to deal in one of two data formats

JSON

XML

Consuming and Integrating

Databases

Caching

Standard web practices

CDF vs Online vs webMathematica

({{□, Interactive
Web Content, Publish API, Computation, Data
Access}, {Mathematica Online, ✓, ✓, Cloud, Through cloud}, {CDF, ✓, -, Local, Local network
connection}, {webMathematica, ✓, ✓, Server, Secure within
infrastructure}})

Resources

webMathematica

Documentation

Examples

StackOverflow

StackExchange proposal