The Enterprise Bean Processing Exit Class - IBM BJ0NJML - Service And Asset Management Integration Manual

Integration guide
Table of Contents

Advertisement

Outbound Customization

The Enterprise Bean Processing Exit Class

220
You can use an exit placeholder for class customization when transactions are sent
to an external system using an enterprise bean. This exit class is optional and is
called before the enterprise bean is called.
The following figure shows the various enterprise bean processing exit classes the
system uses when sending transactions to an external system.
The implementation of this Java class must resolve the method signature of the
enterprise bean that is being invoked through this handler and the parameters
that the method requires. If no value is specified for this property, the system
applies a default exit called DefaultEJBExit. This default exit attempts to resolve
the enterprise bean method signature and parameters.
This class must implement the psdi.iface.router.EJBExit interface and the
following methods:
public Class[] getClassParams()
getClassParams()
The
array of Java classes.
The following method can perform the noted processes:
Create an array of parameter values that correspond with the signature of
the external enterprise bean method to be called.
public Object[] getObjectParams(byte[] data, String
interfaceName, String destinationName)
The parameters of the enterprise beans are returned in the form of an array of Java
Objects.
The following method can perform the noted processes:
Returns callback after the successful invocation of the enterprise bean
with an object as the response of the invocation.
public void responseOk(Object response)throws MXException
The
responseOk()
method is called after a successful enterprise bean invocation.
The following method can perform the noted processes:
Returns callback after the unsuccessful invocation of the enterprise bean.
public void responseError(Exception e) throws MXException
If an error is encountered during the enterprise bean invocation, the
responseError()
method is called with the originating exception as a parameter.
You enter the fully qualified name of the Java class in the EJBEXIT property of the
endpoint that implements the enterprise bean handler.
method returns the method signature in the form of an
Integration Guide

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents