// you’re reading...

Best practice

Extending Open Text Delivery Server with your own Java Classes

Guest writer Marek Korch, RedDot/Open Text Consultant at infinity-group.pl in Poland and working for clients like BNP Paribas Fortis, Dan-wood, Allianz and Nordea. He enjoys new challenges in Open Texts Management / Delivery Server systems and learning new things around the ECM world and how to improve them. He also just started writing on this blog.

In this article we will show you how to find the right files to extend Open Texts Delivery Server (formerly known as RedDot LiveServer) with your own Java classes.

You might have worked with LiveServer DynaMents before and sometimes you just wish you would have that special method or a nicer way to process this bit of information but the existing set of Delivery Server DynaMents just doesn’t exactly fit your needs. Therefore here comes your LiveServer tutorial for including your own Dynaments inside of LiveServer.

If you want to start your own adventure with DynaMents and inline Java functions which will extend the DynaMents functionality, you’ll need to go through the following steps:

  1. Prepare the LiveServer (Delivery Server) environment
  2. Prepare the java package and the java class files
  3. Create your own class which you want to use to extend the built-in java classes

Prepare the LiveServer Delivery Server environment

First of all check your Delivery Server version and build. I was working on LiveServer (Delivery Server) build but it’s recommended to upgrade it to LiveServer 4 SP1. Of course it is not necessary to upgrade your LiveServerS/Delivery Server, but it makes things easier if you are able to go with the upgrade as you will see below. (Always keep in mind to check the release notes and check issues affecting your environment. LS 4 for example has a known defect with updating/connecting to Active Directory which is yet about to get fixed)

Prepare the java package and the java class files

Finding the classes on your LiveServer environment can be a bit tricky, to create your own Java class file you will have to import one very important class package which is built in the LS. The class is called:
There are two ways to find it and to import into your class package during the compilation process:

A) Especially recommended to use if you have LiveServer without SP1, is to import the above mentioned class into your java project in which you will compile your own class. To accomplish that, simply import the JAR file with the necessary class which is located in

x.x.x.x corresponds to a build version of LS. In my case it was rdls-rde-

B) If you already have LiveServer running with the SP1 updgrade, you can find the necessary class in

Create your own class which you want to use to extend the built-in java classes

The Next step is to prepare a definition of your own class. It should looks like this:

// ############################
package com.company.package;
import de.reddot.xmaps.dynament.DefaultInlineFunctions;
public class ExtendedInlineFunctionsClassName extends DefaultInlineFunctions{
         public String function(String value, ...ANY OTHER VARS DESIRED){
                   String mustReturnAString=value;
                   return mustReturnAString;
         //called inline like [#source:attribute#].function(...ANY OTHER VARS DESIRED)
// ############################

After that, all you have to do is to compile your own class file with your function(s) and then copying it to to the classes folder on your LiveServer directory:

And Voila! Based on that you are ready to go. Create your own Java methods and use the according DynaMents in your LiveServer project.
Questions? Ideas? More LiveServer enhancements? Use the comment box below!

Share and Enjoy:
  • Print
  • email
  • Twitter
  • Digg
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • del.icio.us
  • MisterWong
  • Facebook
  • LinkedIn

No related posts.

About the author:

Markus Giesen Markus Giesen is a Solutions Architect and RedDot CMS Consultant, formerly based in Germany. Travelling around the world to find and offer solutions for a better world (in a very web based meaning). He just found a way to do this as part of a Melbourne based online consultant house. On this blog Markus shares his personal (not his employers) thoughts and opinions on CMS and web development. In his spare time you will find him reading, snowboarding or travelling. Also, you should follow him on Twitter!


7 comments for “Extending Open Text Delivery Server with your own Java Classes”

  1. [...] Classes” on his Blog. If you are interested with this subject  you can find this article  here. Categories: Blog, Delivery System Tags: Blog, java, reddot, [...]

    Posted by New article on reddotcmsblog.com | Let's dot CMS! | February 2, 2010, 9:21 am
  2. Hi Markus,

    I could not find DefaultInlineFunctions class in de.reddot.xmaps.dynament.

    I am using LS Version 9.0 Build


    Posted by Pawan | March 29, 2010, 9:31 am
  3. Hi Pawan, I suggest using SP1 or checking with the Open Text support.
    Usually you should have access to the knowledge base to download the latest Service Pack.

    Posted by Markus Giesen | March 29, 2010, 2:23 pm
  4. Hi Markus,

    I have SP1 now but still I cannot find \tomcat\webapps\cps\WEB-INF\classes\de\reddot\xmaps\dynament\DefaultInlineFunctions.class

    Please help.


    Posted by Pawan | April 1, 2010, 2:00 pm
  5. Hi Pawan,
    even if a little bit late: I use an older version of LS and found the class in the WEB-INF/lib/ folder in file rde.jar. You can just unzip it.

    Posted by Daniel | July 19, 2010, 3:21 pm
  6. By the way, a fantastic article! If had this in earlier times, this would have saved me a lot of effort.

    Posted by Daniel | July 19, 2010, 3:24 pm
  7. thanks for this article it helped me quite a bit also. But i ran into a problem. It seems that the Delivery Server is not picking up the .class file like it does in our other environments where this works correctly. any ideas?

    Posted by Roman | April 23, 2011, 12:52 am

Post a comment

Stay up to date! - Get notified about followup comments

If you don't feel the urge to comment but wish to stay in the loop:
Just enter your email and subscribe to new comments.

Subscribe without commenting

Recent Tweets

  • RT @AirKraft: Transport Canada breakout: they manage 80K pages and 300K assets with WSM(RedDot). Wow! #OTCW 2010-11-11
  • The RedDot usergroup session 'Future of WCM' is in National Harbor 7, now. See you there! #otcw 2010-11-11
  • RT @yttergren: @AirKraft: Calling all WSM(RedDot) devs: share your solutions on http://bit.ly/bgPIof EVERY solution can win an iPad #OTCW 2010-11-10
  • Come to the Solution Exchange session. Enhance your (#reddot) CMS project! Chesapeake 12, 3:20pm #otcw Looking forward to see you there! 2010-11-10
  • More updates...