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
Testing Java code
After writing Java™ code to modify pattern instances, test the code to check that it works correctly.
Before you test your Java code, you must build the pattern plug-ins;
see Building pattern plug-ins.
You can test your Java code either by creating an instance of
a pattern and checking that it is modified as you expect or by using
the Java debugger to step through
the code.
Next:
You can either change your Java code and retest it or you can package and distribute your user-defined pattern:- To change and retest your Java code, edit the code file and then repeat the steps in this topic.
- To package and distribute your user-defined pattern, see Packaging and distributing pattern plug-ins
To
ensure that changes in your Java code
are included in your generated pattern, change the version number
of the Java plug-in, as described
in the following steps.
- Update the version number of the Java plug-in in manifest.mf.
- Update the version number of the pattern on the Create Pattern tab.
- Re-create the pattern plug-ins and pattern archive, as described
in Building pattern plug-ins.
To check that the pattern archive contains the correct versions of the plug-ins, you can look at the feature.xml file.
- Install the pattern.