Version 9.5 SP1
 —  EntireX Adapter Installation and User's Guide  —

Listeners and Adapter Notifications

Listeners are used for inbound connections to the Integration Server. They are needed for RPC Listener connections, Reliable RPC Listener connections, and Direct RPC Listener connections.

Adapter notifications monitor an EntireX RPC service and notify the Integration Server when a message arrives on the EntireX RPC service for Reliable RPC.

Important:
Use the Integration Server Wrapper of the EntireX Workbench to create RPC Listener connections with listeners and Reliable RPC Listener connections with listeners, notifications, triggers, and document types. This document describes steps to manually configure these objects. This is needed for advanced configurations, for example triggers with filters.

The following topics are covered:


Remarks on Reliable RPC Listener Connections

A generated trigger object needs a trigger service that it can call. The input signature for a trigger service needs to have a document reference to the generated publishable document type. While an Integration Server service normally does not have such an input signature, we have to use a workaround to enable the Integration Server service to retrieve the input data from the publishable document. Therefore you can use the service com.softwareag.entirex.wmadapter.Deployment:putDocDataToPipeline, which retrieves all input data from the incoming document and puts it in the pipeline where the Integration Server service is able to retrieve the data. The following section provides a detailed description on how to use the putDocDataToPipeline service.

Top of page

Before Configuring New Listeners

  1. Start the Integration Server and the IS Administration Console if they are not already running.

  2. Make sure that you have webMethods administrator privileges so that you can access the EntireX Adapter's administrative screens.

    Note:
    For information on setting user privileges, see IS Administration Console's Guide.

    1. Using the IS Administration Console, make sure that the WmEntireX package is enabled. To verify the status of the WmEntireX package, see Enabling and Disabling Packages.

    2. Using the IS Administration Console, configure a valid connection, for instance by copying a generated connection. For more information on configuring connections, see EntireX Adapter Connections (main section).

    3. Start the Designer if it is not already running.

    4. Make sure you are viewing the Designer in the Service Development perspective, as described in Switching Perspectives in the Designer online help.

    5. Using the Designer, create a user-defined package to contain the listener, if you have not already done so. For more information on managing packages, see Package Management.

Top of page

Configuring New Listeners

When you configure listeners of the EntireX Adapter, you specify information that the Integration Server uses to listen for, and get messages on, a specified EntireX broker. The broker is specified in the connection associated with the listener. You configure EntireX Adapter Listeners using the IS Administration Console.

Start of instruction setTo configure a new listener

  1. In the Adapters menu in the IS Administration Console's navigation area, click EntireX Adapter.

  2. In the EntireX Adapter menu, click Listeners.

  3. On the Listeners screen, click Configure New Listener.

  4. On the Listener Types screen, select EntireX Listener.

  5. On the Configure Listener Type screen, in the EntireX Adapter section, use the following fields:

    Field Description
    Package The package in which to create the listener.
    Folder Name The folder in which to create the listener.
    Listener Name The name of the listener.
    Connection Name The connection to associate with the listener. From the list of connections, select an appropriate connection that you created on the Configure Connections Type screen. Use separate connections for the adapter services and the adapter listeners.
    Retry Limit The number of times the adapter tries to reconnect if the adapter fails to connect, or loses connection with the EntireX broker. Default: 5.
    Retry Backoff Timeout The number of seconds that elapse between each of the retries specified in the retry limit. Default: 10.
    EntireX Subprogram Names A list of subprogram names, separated by blanks. This list and the following list of service names is usually generated by the EntireX Workbench.
    Service Names A list of Integration Server services, separated by blanks. Each service corresponds to a subprogram name. For the subprogram the service at the same position in the list is called. The lists must have the same number of names.
    Minimum Listener Threads The number of worker threads for this listener that should be started when the listener is enabled. If set to 0, worker threads are started on demand. Default: 1.
    Maximum Listener Threads The maximum number of listener threads to start. Default: 1.
    Entry Handler Service The name of an Integration Server service which will be called in addition before the listener calls a service listed in Service Names. The specification pub.wmentirex.listener:entryExitHandlerSpecification describes the interface of the handler service.
    Exit Handler Service The name of an Integration Serverservice which will be called in addition after the listener has called a service listed in Service Names. The specification pub.wmentirex.listener:entryExitHandlerSpecificationdescribes the interface of the handler service.
    Execute Service with Client Credentials If enabled, the RPC client has to provide RPC user ID and RPC password. These credentials are then used to execute the Integration Server service. Note that currently the RPC user ID and password are limited to 8 characters. Default: false.
    Null Value Suppression See Configuring Null Value Suppression.
  6. Save the listener.

Top of page

Testing Listeners

You can test listeners to ensure that you have configured them correctly.

Start of instruction setTo test a listener

  1. Configure a listener using the IS Administration Console. For instructions on how to configure a listener, see Configuring New Listeners.

  2. For Reliable RPC Listener Connections only (asynchronous calls): Configure a listener notification using the Designer. See webMethods Service Development Help for more information.

  3. For Reliable RPC Listener Connections only (asynchronous calls): Enable the listener notification using the IS Administration Console. For instructions on how to enable a listener notification, see Managing EntireX Adapter Notifications.

  4. Enable the listener using the IS Administration Console.

    Important:
    The broker configured in the connection associated with the listener must be running while the listener is enabled.

  5. Use an RPC client to call the RPC server specified in the connection associated with the listener.

    As a result, the listener receives the call, uses the parameters to call the flow service or the Java service, and returns the results to the RPC client.

    Notes:

    1. On error a listener may go into the disabled state.
    2. If a listener is disabled, it will not start at next start of Integration Server.

Top of page

Viewing Listener Parameters

You can view a listener's parameters using the IS Administration Console or the Designer. You can also view the notification order of a listener.

Start of instruction setTo view a listener's parameters using the IS Administration Console

  1. In the Adapters menu in the navigation area of the IS Administration Console, click EntireX Adapter.

  2. In the EntireX Adapter menu, click Listeners.

  3. On the listeners page, click the View icon for the listener that you want to see.

    As a result, the View Listener screen displays the parameters for the listener. For descriptions of the listener parameters, see Configuring New Listeners.

  4. Click Return to EntireX Adapter Listeners to return to the main listeners screen.

Note:
Alternatively, you can use the Designer. See webMethods Service Development Help for more information.

Top of page

Before Configuring or Managing Notifications

Start of instruction setTo prepare to configure or manage EntireX Adapter notifications

  1. Start your Integration Server and the IS Administration Console, if they are not already running.

  2. Make sure you have webMethods administrator privileges so that you can access the EntireX Adapter's administrative screens. See Administering webMethods Integration Server for information on setting user privileges.

  3. Using the IS Administration Console, make sure the WmEntireX package is enabled. See Enabling and Disabling Packages for instructions.

  4. Using the IS Administration Console, configure an adapter connection to use with the notification. See Configuring Adapter Connections.

  5. Start the Designer if it is not already running.

  6. Make sure you are viewing the Designer in the Service Development perspective, as described in Switching Perspectives in the Designer online help.

  7. Using the Designer, create a user-defined package to contain the notification, if you have not already done so.

    Important:
    When you configure notifications, you should always define them in user-defined packages rather than in the WmEntireX package. For more information on managing packages for the adapter, see Package Management.

    Important:
    You must enable a notification before you can use it. See Managing EntireX Adapter Notifications for instructions.

Top of page

Configuring Adapter Notifications

When you configure EntireX Adapter notifications, you specify information that the Integration Server uses to read data from an EntireX broker and call a specified flow service or Java service. For more information on notifications, see Listeners and Adapter Notifications (separate sections). Be sure to review the section Before Configuring or Managing Notifications before you configure EntireX Adapter notifications.

Adapter notifications are only used for Reliable RPC Listener Connections.

Start of instruction setTo configure an EntireX Adapter notification

  1. From the Designer File menu, choose New...

  2. Select Adapter Notification from the list of elements and click Next.

  3. Select EntireX Adapter as the adapter type and click Next.

  4. Select the appropriate Adapter Connection Name and click Next.

  5. Select the Asynchronous Listener Notification template and click Next.

  6. Select an Adapter Notification Listener and click Next.

  7. Type a unique name for the notification and select the appropriate folder. Click Next.

  8. Select a service to be called when an RPC call arrives at the listener. Click Next.

  9. The names of the request and reply documents are displayed. Click Finish.

    As a result, the editor for the adapter notification appears.

    Note:
    You can select the Adapter Settings tab at any time to confirm adapter service properties such as the Adapter Name, Adapter Connection Name, and Adapter Notification Template, as necessary.

  10. Select the Listener Notification tab and choose the EntireX Subprogram Name. You may select Map Data Types to String to map all IDL parameters to java.lang.String. Otherwise, the IDL data types are mapped to Java primitive data types.

    As a result, the tables of output parameters and input parameters display the names, the IDL data types and the Java data types in the pipeline.

    Note:
    For information on using the Permissions tab to assign an access control list (ACL) to an element, see

  11. From the File menu, choose Save (or Save All).

    Note:
    You must schedule and enable the notification using the IS Administration Console before you can use it. See Managing EntireX Adapter Notifications for details.

Top of page

Managing EntireX Adapter Notifications

You must enable an EntireX Adapter notification before you can use it to monitor EntireX brokers for messages. Use the IS Administration Console along with the following procedure to do so.

Note:
You must have webMethods administrator privileges to access the EntireX Adapter's administrative screens. See the Administering webMethods Integration Server for information on setting user privileges.

Start of instruction setTo enable (or disable) an EntireX Adapter notification

  1. Start the IS Administration Console.

  2. From the Adapters menu in the navigation area of the IS Administration Console, choose EntireX Adapter.

  3. From the navigation area, select Listener Notifications.

  4. In the Listener Notifications table, you can enable and disable the notification.

    Important:
    You cannot enable a notification if the adapter connection that the notification is using is disabled.

    As a result, the name of the package is displayed.

Top of page

Viewing Notifications

Use the Designer to view a notification. Make sure you are using the Designer in the Service Development perspective, as described in Switching Perspectives in the Designer online help.

Start of instruction setTo view a notification

  1. In the Designer Package Navigator view, expand the package and folder that contain the notification you want to view.

  2. Select the notification you want to view.

    The Designer displays the notification in the Adapter Notification Editor.

Top of page

Editing Notifications

Use the Designer to edit notifications. Make sure you are using the Designer in the Service Development perspective, as described in Switching Perspectives in the Designer online help. You can change which connection an adapter notification uses.

Start of instruction setTo edit a notification

  1. In the Designer Package Navigator view, expand the package and folder that contain the notification you want to view.

  2. Select the notification you want to edit.

    The Designer displays the notification in the Adapter Notification Editor.

  3. Modify the values for notification's parameters as needed. For detailed descriptions of the notification's parameters, see the section on configuring a notification.

Top of page

Deleting Notifications

Use the Designer to delete adapter notifications. Make sure you are viewing the Designer in the Service Development perspective, as described in Switching Perspectives in the Designer online help.

Start of instruction setTo delete a notification

  1. In the Designer Package Navigator view, expand the package and folder that contain the notification you want to delete.

  2. Right-click the notification and then click Delete.

Top of page