Code

MLJAM

MLJAM is an open source XQuery and Java library (written by Jason Hunter of Mark Logic and Ryan Grimm of O'Reilly Media) that enables the evaluation of Java code from the MarkLogic Server environment. MLJAM gives XQuery programs access to the vast libraries and extensive capabilities of Java, without any difficult glue coding. Example uses for MLJAM:

  • Extracting image metadata
  • Resizing and reformatting an image
  • Running an XSLT transformation
  • Generating a PDF from XSL-FO
  • Calculating an MD5 hash
  • Interfacting into a user authentication system
  • Accessing a credit card purchasing system
  • Connecting to a secure HTTPS web site
  • Re-encoding content as UTF-8

MLJAM is distributed under the Apache License, Version 2.0.

Read the MLJAM Tutorial.

Version 1.2.1 fixes a regex issue on encoding special strings that was present in 1.2.

Download MarkLogic Version Needed
mljam-1.0.zip MarkLogic Server 4.1 or later
mljam-1.1.zip MarkLogic Server 4.1 or later
mljam-1.2.1.zip MarkLogic Server 4.1 or later
mljam-1.2.zip MarkLogic Server 4.1 or later
mljam-src-1.0.zip MarkLogic Server 4.1 or later
mljam-src-1.1.zip MarkLogic Server 4.1 or later
mljam-src-1.2.1.zip MarkLogic Server 4.1 or later
mljam-src-1.2.zip MarkLogic Server 4.1 or later

PT0.225525S