See information about the latest product version
Compiling a Java user-defined node
When you have created the code for your Java™ user-defined node, you must compile it for your operating system.
You must have a user-defined node written in Java. This node can be one of the provided sample nodes that are described in Sample node files, or a node that you have created yourself by using the instructions in either Creating a message processing or output node in Java or Creating an input node in Java.
You can compile a Java user-defined node either from the command line, or from within the project in the WebSphere® Message Broker Toolkit. Both options are described later in this section.
When you compile a Java user-defined node from the command line, you must have a compatible IBM® Software Developer Kit for Java on the current operating system. For details of supported Java versions, see Additional software requirements.
Compiling a Java user-defined node from the WebSphere Message Broker Toolkit
Use the following procedure to compile your Java user-defined node from the WebSphere Message Broker Toolkit:
- Switch to the Java perspective of the toolkit, and in the Package Explorer, select the /src directory inside your node project, and click .
- From the list displayed, select JAR file. Click Next. The resources that are available for you to export as a JAR file are listed.
- Verify that Export generated class files and resources is selected.
- Specify a name and location for your JAR file. Place the file inside the root directory of your node project, and give the file the same name as the name of the project (with a .jar extension). You can use the default values for the rest of the options. Click Finish.
Compiling a Java user-defined node from the command line
Use the following procedure to compile your Java user-defined node from the command line:
The .par file that you have created is ready for you to install on one or more brokers (see Installing user-defined extension runtime files on a broker), or to package for distribution (see Packaging and distributing a user-defined node project).