WebSphere Message Broker, Version 8.0.0.7
Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS
See information about the latest product version
See information about the latest product version
Modifying pattern instances by using the Message Broker Java API
Add Java™ code to a code plug-in project to modify a pattern instance when the pattern instance is generated by a pattern user.
Before you can complete this task, you
must have completed the following tasks:
You can add Java code
to a code plug-in project so that it runs when a pattern instance
is generated. To add the Java code,
select the Java class that you
want to run.
The Java class
you select can be created in the following ways:
- If you added a Java class when you created the code plug-in, then a template Java class is created and added to the project. This class is based on the Pattern Authoring Class template and contains the basic structure required to function correctly.
- When you follow the steps in this topic to select a Java class, you can optionally create a new Java class. A class created in this way is based on the Pattern Authoring Class template and contains the basic structure required to function correctly.
- You can write your own Java class. This class must implement the GeneratePatternInstanceTransform interface.
To select a Java class to run when a pattern instance is generated:
In the Java class that
you selected to run when the pattern instance is generated, you must
now write the code to perform the steps you require. For examples
of Message Broker Java API code for completing
common tasks, see Examples of Message Broker Java API code. For reference
information about the Message Broker Java API,
see Message Broker Java API. For information about the Java development views and editors
within the WebSphere® Message Broker Toolkit, see Java Development User Guide plug-in - Views
and Editors.