Print these instructions before you start because you must close the
IBM Integration Toolkit in Step 4.
To set up both the SearchFilter and the NumCompute samples, complete the following steps:
Import the sample. This action adds the following directories to the workspace:
UDESampleCCode. This directory contains the source code for the NumCompute node.
UDESampleJavaCode. This directory contains the source code for the SearchFilter node.
UDESampleLibraries. The Java library for the SearchFilter node is stored in the top
level of this project.
The C libraries for the NumCompute node are stored in subfolders
according to platform.
UDESampleMessageFlowProject. This directory contains two sample message flows and
two .mbtest files.
One message flow and one .mbtest file
are available for each of the samples.
This project also contains a BAR file containing compiled message flows for both the
SearchFilter sample and the NumCompute sample.
UDESamplePlugInNodeProject. This directory contains the node definitions for the SearchFilter and
NumCompute nodes so that they are displayed in the message flows and the node palette.
The "Import and partially setup the sample" option adds the preceding
directories to the workspace and causes approximately nine errors and two warnings.
These errors and warnings are expected, and most are resolved when you complete Steps 5 and 6.
However, two warnings might remain:
An entry for UDESampleJavaCode.jar is required in
bin.includes.
The folder "META-INF/" does not exist in the workspace.
Export the project UDESamplePlugInNodeProject as a deployable plug-in.
In the Application Development view, right-click the project UDESamplePlugInNodeProject and select
Package, then Plug-in JARs.
Click Browse
to select a directory location on your machine. Click Finish.
Navigate to the hard-drive location of the exported plug-in and copy the
.jar file that is under the plug-ins directory.
Paste the .jar file to
install_dir/plugins/.
This step displays the nodes in the message flows and the node palette.
On Linux: If you are running the Toolkit as a non-root user,
you must set the following file permissions:
cd install_dir/plugins/UDESamplePlugInNodeProject
chmod 666 *
chmod 755 icons
Cut and paste this set up information to Notepad (on Windows), or to an editor of your choice
(on Linux), or print out this page, before you perform the next step.
Close the IBM Integration Toolkit.
Restart the Toolkit, specifying the -clean option.
On Windows, start the Toolkit by using the launcher.bat file, which is found in the product installation directory, and add -clean to the end.
Alternatively, modify the menu shortcut with the same change.
You can also run the command eclipse -clean from the command line in the product installation directory.
On Linux, run the eclipse -clean command (./eclipse -clean) from the command line in the product installation directory.
You must use the -clean option whenever you make any changes to
user-defined extensions (UDEs) so that the changes are picked up by the message flow node palette.
If the errors remain in the Toolkit, clean all the projects in the workspace
In the window that opens, click Project > Clean.
Ensure that Clean all projects is selected,
click OK.
Locate the UDESampleLibraries folder in the Application Development view.
Expand the appropriate platform specific subfolder until you can see both the
.jar file and the relevant .lil file.
Press and hold Ctrl and select the .lil and
.jar files.
To export the UDESampleJavacode.jar file and the relevant
NumComputeNode.lil file into a temporary directory,
click File > Export > General > File system,
click Next.
In the To directory enter the details of the directory
into which you want to export the files,
for example, on Windows C:\UserLibraries,
or on Linux /tmp/userLibraries, click Finish.
If you enter the name of a directory that does not exist, the directory is created for you automatically.
You must have permission to write to the directory that you select.
In the IBM Integration command console (for Windows), or a
terminal window (for Linux), run the mqsiprofile
command, then enter the following command at the command prompt:
Locate the UDESampleMessageFlowProject folder in the Application Development view,
expand Broker Archives until you can see the
UDESampleArchive.bar file.
Deploy the UDESampleArchive.bar BAR file by dragging it onto the
UDESampleExecutionGroup integration server.
The BAR file contains compiled message flows for both the SearchFilter and the NumCompute
samples. You can see two deployed message flows within UDESampleExecutionGroup.