Handlers
146
Integration Guide
The responseOk() method is called after a successful enterprise bean
invocation.
public void responseError(Exception e) throws MXException
The responseError() method is called with the originating exception as a
parameter if an error is encountered during enterprise bean invocation.
The following code illustrates what your implementation of getClassParams()
looks like when the enterprise bean client has a business method with a byte array
and a string:
Class[] classParams = {byte[].class, String.class};
return classParams;
The following code illustrates what your implementation of getObjectParams ()
looks like when the enterprise bean client has a business method with a byte array
and a string:
byte[] data = ...;
String ifaceType = ...;
Object[] objParams = {data,ifaceType};
return objParams;
Complete one of the following actions to identify the location of the package
structure for the EJBExit class file:
T Place the class in the Java package structure applications/maximo/
businessobjects/classes folder.
T Modify the mboweb\webmodule\META-INF\MANIFEST.MF class path
to include the package structure.
T Rebuild the application EAR file and include the EJBExit class file.
JNDINAME Property The following required property specifies the name by which the enterprise bean
client is registered in the application server Java Naming and Directory Interface
(JNDI) tree.
METHODNAME Property This required property specifies the public business method that is exposed by
the enterprise bean client that is invoked by this handler.
PROVIDERURL Property This required property specifies the URL of the target application server on which
the enterprise bean is running. The system then maps to the
java.naming.provider.url property and creates the InitialContext object.
Server File name Property
IBM
WebSphere
Application
Server
ibm-ejb-jar-bnd.xml <ejbBindings xmi:id="Session_enterpriseservice_Bnd"
jndiName="ejb/maximo/remote/enterpriseservice">
<enterpriseBean xmi:type="ejb:Session" href="META-INF/ejb-
jar.xml#Session_enterpriseservice"/>
</ejbBindings>