Deploying JavaCompute node code

You can deploy Java™ code for a JavaCompute node in a BAR file or independently in another container, such as a shared library.

Before you begin

Complete the following tasks:
  1. Create a message flow that contains a JavaCompute node.
  2. Create the Java code for the JavaCompute node.

About this task

After you create a JavaCompute node and the Java code that it uses, you can deploy your resources. The method of deployment depends on where you store your resources.

You can store the Java code for a JavaCompute node in the same application as the message flow that contains the JavaCompute node. Alternatively, to share Java classes across multiple solutions, store Java code in a shared library and refer to that library from one or more applications that contain JavaCompute nodes.

Use one of the following methods to deploy your Java code.

Procedure

  • If your Java code is in the same application as the JavaCompute node, deploy the application by adding it to a BAR file or by dragging it to an integration server. When you deploy an application that contains a JavaCompute node, the IBM® Integration Toolkit packages the compiled Java code and its dependencies into the BAR file.
  • If your Java code is contained in a referenced shared library, deploy the shared library by dragging it onto the integration server or adding it to a BAR file. You must deploy the shared library before or with the applications that reference it.

Results

Your resources are deployed to the integration server. You can view them in the Integration nodes view.

When you update and redeploy the Java code in a shared library, those updates are available automatically to all the applications that reference that shared library. In this case, you do not need to redeploy those applications.