skip to main content
Corticon Server: Deploying Web Services with Java : Corticon Java Server files and API tools : Setting up Corticon Server use cases : Installing Corticon Server as Java classes in-process or in a custom Java container

Try Corticon Now
Installing Corticon Server as Java classes in-process or in a custom Java container
If you choose to manage Corticon Server in-process via your client application or via a custom container, you are taking responsibility for many of the tasks that are normally performed by a J2EE web or application server. But by doing it in your own code, you can optimize your environment and eliminate unneeded overhead. This can result in much smaller footprint installations and faster performance.
Because Corticon Server is a set of Java classes, it can easily be deployed in-process in a JVM. When deployed in-process, the following tasks are the responsibility of the client application:
*Management of Java classpaths, ensuring the base set of Corticon Server classes is properly referenced.
*JVM lifecycle management, including startup/shutdown
*Concurrency & Thread management
*Security (if needed)
*Transaction management, including invocation of Corticon Server using the standard Java API set.
Corticon Server can also be installed into a custom container within any application. It has a small footprint and thus can be installed into client applications including browser-based applications, laptops and mobile devices.
For step-by-step instructions on using the Installer to gain access to Corticon Server's core jar files, see Installing Corticon Servers and Web Console
Installation in-process or in a custom container involves these basic steps:
1. Place the following Corticon Server JAR files in a location accessible by the surrounding Java container:
*CcExtensions.jar [optional – only necessary if you have added custom rule language operators to the Operator Vocabulary as Extended Operators. (See the Corticon Studio: Extensions Guide for more information.)]
2. Configure the Java classpath to include the JAR files listed above.
3. Write code that:
*Initializes Corticon Server
*Sets environment variables such as CORTICON_HOME and CORTICON_WORK_DIR (see The Corticon home and work directories)
*Deploys the Decision Services into Corticon Server
*Requests a decision by marshaling the data payload and then invoking the relevant Corticon Decision Service
*Processes the response from the Decision Service.
Sample code is provided that demonstrates an in-process deployment of Corticon Server. This code, named CcServerApiTest.bat, is located in the [CORTICON_HOME]\Server\src directory.
For an example of a Java in-process installation along with a sample project life cycle, see “Tutorial: Deploying a Progress Corticon Decision Service in Process for Java” at the Corticon Learning Center, available at