Skip to main content
************* PRERELEASE CONTENT *************
Previous sectionNext section

Business Services

Business services connect with external systems and receive messages from them through an inbound adapter. For general information related to all production components written in Java, see About Business Hosts and Adapters.

Java and .NET Classes

A business service written in Java extends com.intersystems.enslib.pex.BusinessService.

A business service written in .NET extends InterSystems.EnsLib.PEX.BusinessService.

Using the Business Service

The OnProcessInput() method takes an arbitrary object from the ProcessInput() method of the business service’s adapter, and returns an arbitrary object. These arbitrary objects do not need to be persistent.

For information about sending messages between the business service and another business host, see Messaging.

When you want to integrate the business service into the production:

  1. Open the production in the Management Portal and add a business service based on the PEX class EnsLib.PEX.BusinessService.

  2. Define the remoteClassname setting of the new PEX business service as the Java or .NET class you created for the custom business service.

  3. Use the gatewayHost and gatewayPort settings of the PEX business service to define the values of the Object Gateway.

For example, suppose you have a business service written in a Java class called MyJavaBusinessService. To incorporate this custom business service into the production, you go to the Management Portal and add a business service based on the PEX class EnsLib.PEX.BusinessService. Once added, edit the RemoteClassname setting of the PEX business service to point to the Java classname MyJavaBusinessService.