Prior to release 5.0, a JAR file and manifest were required in order to use a custom adapter or Java operator in StreamBase Studio. StreamBase provided the Generate StreamBase Manifest wizard, which we recommended using to avoid common mistakes in hand-crafting the manifest.
Starting with release 5.0, manifests are not needed for custom adapters and operators. However, the manifest generation functionality remains for customers to use when sharing adapters to the Global Adapter area of the StreamBase Studio Palette.
Follow these steps to create a manifest file for a StreamBase adapter to be shared in the Global Adapter palette. These steps presume you have already used the→ → menu to generate template files for your custom adapter.
In the Package Explorer for your project, select the Java file or files that comprise your embedded adapter or adapters. (You can combine adapters into a single JAR, if desired.)
Right-click the selected files and select→ from the context menu.
In the top table of the Generate StreamBase Manifest dialog, select the classes that you want to include in the manifest by checking or unchecking their entries. You can also reorder the entries by using theand buttons.
Specify the destination of the generated JAR file, choosing either a Workspace or File System destination.
Provide the path and name of the manifest file, including the
.MFextension. If you do not provide an extension, Studio appends
.MFto the file name.
For a workspace destination, use thebutton to select a project in the Studio workspace, and enter a file name for your manifest file. Example:
For a file system destination, specify an absolute system path, or use thebutton to locate a path. Example:
Optionally, change the setting to overwrite any existing file.
A sample dialog at this point:
When you are ready, click. The wizard generates your manifest file, and includes the required statements. For example:
Manifest-Version: 1.0 Name: MyInputAdapter.class StreamBase-Adapter: true