134 Problem Determination Using Self-Managing Autonomic Technology
if (_header != null) {
Vector params = new Vector();
Parameter cbeXMLParam = new Parameter("cbeXML",
org.w3c.dom.Element.class, cbeXML,
Response resp = call.invoke(getURL(), SOAPActionURI);
//Check the response.
if (resp.generatedFault()) {
Fault fault = resp.getFault();
throw new SOAPException(fault.getFaultCode(), fault
public void setHeader(Header header) {
_header = header;
public synchronized void sendEvent(org.w3c.dom.Element cbeXML)
throws Exception {
// delegate to method sendEvent_
protected Call createCall() {
SOAPHTTPConnection soapHTTPConnection = new SOAPHTTPConnection();
if (setTcpNoDelayMethod != null) {
try {
new Object[] { Boolean.TRUE });
} catch (Exception ex) {
Call call = new Call();
Chapter 4. Generic Log Adapter 135
SOAPMappingRegistry smr = call.getSOAPMappingRegistry();
return call;
public void sendEvent(CommonBaseEvent arg0) throws Exception {
// convert the cbe to an XML element and then send that out using the
// primary method
4.5.2 Testing the custom outputter
To test the custom outputter, we need to create an adapter configuration file that
specifies the executable class of the custom outputter.
In order to test our ITSOSHIMOutputter, we created an adapter configuration file
and configured the outputter component with
Figure 4-38 shows the adapter configuration file using the ITSOSHIMOutputter.
Figure 4-38 Adapter configuration file using ITSOSHIMOutputter
136 Problem Determination Using Self-Managing Autonomic Technology
The Outputter element in context instance does not require any properties. The
Output Type is set to undeclared, as shown in Figure 4-39.
Figure 4-39 Context Instance Outputter element for ITSOSHIMOutputter
After the adapter configuration file is created, it needs to be deployed using one
of the methods described in 4.4, “Deploying and running the adapter
configuration file” on page 121.
Due to the ITSOSHIMOutputter custom outputter functionality, it also requires the
following libraries in addition to the libraries required by the Generic Log Adapter
Runtime. The following JAR files must be included in the CLASSPATH to run the
Generic Log Adapter Runtime to run the adapter file using the
ITSOSHIMOutputter. We include these libraries in the examples provided with
this book. For details, refer to Appendix A, “Additional material” on page 379.
򐂰 awp-common.jar
򐂰 j2ee.jar
򐂰 mail.jar
򐂰 soap.jar
Note: The libraries listed in this section are required for the
ITSOSHIMOutputter. Make sure to include all the libraries required for your
custom outputter in the CLASSPATH of the Generic Log Adapter Runtime.

Get Problem Determination Using Self-Managing Autonomic Technology now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.