Handlers; Enterprise Bean Handler - IBM BJ0NJML - Service And Asset Management Integration Manual

Integration guide
Table of Contents

Advertisement

Handlers

Enterprise Bean Handler

CONTEXTFACTORY
Property
EJBEXIT Property
Endpoints and Handlers
A handler specifies how to route outbound data to a specific endpoint location, in
a specific format.
The Enterprise JavaBean (EJB) handler is a Java component that consists of
enterprise bean clients. The handler publishes a set of properties that a client uses
to communicate with the target. The handler delivers system messages to the
enterprise bean client. The target client can run on the local application server or a
remote application server.
For the handler to establish a connection, the remote class and home class must be
available in the class path of the handler. If the client is on a remote application
server that is different from the handler application server, the client jar file
reference must be in the class path of the handler.
Conversely, the handler picks up the context factory class name from the local
application server when the enterprise bean client is on a remote application
server that is the same as the handler application server.
This required property specifies a J2EE context factory class name. The
documentation for your application server contains the name of the default
context factory to use.
The CONTEXTFACTORY uses the following property when the target client runs
on an IBM WebSphere Application Server:
com.ibm.websphere.naming.WsnInitialContextFactory
This optional property is used for customization. This property specifies the fully
qualified name of a custom Java class that implements the EJBExit interface.
If you do not specify a value for this property, the default exit runs the
DefaultEJBExit. The system then attempts to resolve the enterprise bean method
signature and parameters.
If the enterprise bean client has its own method signature and parameters, create
a Java class that contains your version of the EJBExit interface and
implementations of the following methods.
public Class[] getClassParams()
The getClassParams() method returns the method signature in the form of an
array of Java classes.
public Object[] getObjectParams(byte[] data, String
interfaceName, Map String,? metaData)throws MXException
The getObjectParams() method returns the parameters of the enterprise bean
business method in the form of an array of Java objects.
public void responseOk(Object response)throws MXException
Handlers
145

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents