Writing code for a .NETCompute node

Create code for message flows containing a .NETCompute node by double-clicking the node to start Microsoft Visual Studio.

Before you begin

  • Install Microsoft Visual Studio 2010 or 2012. Some restrictions, for example .NET debugging, apply if you use the Express Edition.
  • Create a message flow that contains a .NETCompute node.
Tip: If the IBM® Integration Toolkit is installed after Microsoft Visual Studio, the integration node Project templates will be automatically installed ready for you to use. However, if the IBM Integration Toolkit is installed first, you must manually install the Microsoft Visual Studio templates. This installation can be achieved by running the file IBM.Broker.DotNet.vsix and stepping through the wizard (accepting the license file as part of the process). If the default installation location was used for IBM Integration Toolkit, the file can be found at the location C:\Program Files\IBM\IIB\10.0.0.n\tools\iibt.

About this task

You write and compile your code in Microsoft Visual Studio. The following IBM Integration Bus templates are provided to get you started in C#, Visual F#, and Visual Basic:
  • Create an IBM Integration message. This class also provides a method to copy message headers from an incoming message.
  • Filter an IBM Integration message.
  • Modify an IBM Integration message.

Procedure

  1. Double-click the .NETCompute node.
  2. In Microsoft Visual Studio 2010 or 2012, navigate to your project, and add the appropriate class from the IBM Integration templates.
  3. Expand the UserCode region, and write your code.
    Content assist is available in this region. Press Ctrl+Space to invoke it.
  4. Save the class and build the solution, making a note of the path to the assembled file.

What to do next

Associate your assembly with the .NETCompute node.