Skip to main content

Outbound Adapters

Business operations use outbound adapters to send out specific types of data from the production. You can write a custom outbound adapter that is used by an ObjectScript business operation, or it can be used by a business operation that is also written in Java or .NET. For general information related to all production components written in Java or .NET, see About Business Hosts and Adapters.

Java and .NET Classes

An outbound adapter written in Java extends com.intersystems.enslib.pex.OutboundAdapter .

An outbound adapter written in .NET extends InterSystems.EnsLib.PEX.OutboundAdapter .

Using the Outbound Adapter

Within the outbound adapter, you can create all the methods you need to successfully send out data from the production. Each of these methods can be called from the business operation associated with the adapter. The business operation calls these methods by using the OutboundAdapter.Invoke() method.

In the Management Portal, a business operation has a setting, AdapterClassname, that specifies the class of the outbound adapter being used. When the outbound adapter is written in Java or .NET, the business service’s AdapterClassname setting must be EnsLib.PEX.OutboundAdapter. In addition, the remoteClassname setting must be set to the name of the Java class of the outbound adapter.