Registering the sample widgets

Registering the sample widgets to a runtime is the second step to working with the provided sample widgets.

Before you register the sample widgets, you should have completed Deploying the sample widgets.

You register the sample widgets to notify the runtime that the widgets are available. Unlike an application that can be deployed to a runtime and then run, widgets require a registration procedure or they remain deployed but not visible to the user.

To register the sample widgets with the runtime, follow these steps. In our example, we were registering the sample widgets with the WebSphere Process Server in WebSphere Integration Developer. You work at the file system level when registering your widgets. If your server is running, stop it, while you complete these steps. Once finished restart your server.

  1. Copy the sample widgets' registration files from the installed application to the folder where registration files can be viewed by the runtime. At the file system level, you will find the registration files, sampleWidgets.xml and bspaceSamplesEndpoints.xml, in the following path: <installdir>\profiles\<servername>\installedApps\<nodename>\IBM_BSPACE_SAMPLES.ear\BSpaceWidgetsSamples.war\iWidget\endpoints

    profiles in some products is pf

  2. Copy sampleWidgets.xml, which holds the sample definitions, and bspaceSamplesEndpoints.xml, which holds the sample widget endpoints, to the following path: <installdir>\profiles\<profilename>\BusinessSpace\registryData
  3. Close the file system and return to WebSphere Integration Developer.
  4. Stop and start IBM_BSPACE_SAMPLES, which can be done in the administration console by selecting it in the Enterprise Applications view and clicking Stop and Start.

Now that you have registered your sample widgets, you can begin working with them as described in Working with the sample widgets.