WebSphere brand IBM WebSphere Sensor Events, Version 6.2

Integrating an enterprise system using APIs

The Enterprise Business Logic application submits events to the WebSphere® Sensor Events using WebSphere Sensor Events API and IBM® Sensor Events.

The following are some of the inbound events to the WebSphere Sensor Events server:
Portal ON/OFF
WebSphere Sensor Events API can be used to submit this event to the WebSphere Sensor Events server.
Portal (Location) ON

To get the seapiAccess object if WebSphere Sensor Events is local to the Enterprise Business Logic (EBL):

SensorEventsAPIAccess seapiAccess SensorEventsAPIContext.getSensorEventsAPIAccess();

To get the seapiAccess object if WebSphere Sensor Events is remote from the EBL:

SensorEventsAPIAccess seapiAccess SensorEventsAPIContext.getSensorEventsAPIAccess(<Server Name>)

To send a message to start the portal (Location):

seapiAccess.startLocation(locationid);
Portal (Location) OFF

To get the seapiAccess object if WebSphere Sensor Events is local to the EBL:

SensorEventsAPIAccess seapiAccess SensorEventsAPIContext.getSensorEventsAPIAccess();

To get the seapiAccess object if WebSphere Sensor Events is remote from the EBL:

SensorEventsAPIAccess seapiAccess SensorEventsAPIContext.getSensorEventsAPIAccess(<Server Name>)

To send a message to stop the portal (Location):

seapiAccess.stopLocation(locationid);
Accept/Reject
The WebSphere Sensor Events API can be used to submit this event to the WebSphere Sensor Events server.
Sending an acceptance message to the Light Tree agent

To get the seapiAccess object if WebSphere Sensor Events is local to the EBL:

SensorEventsAPIAccess seapiAccess SensorEventsAPIContext.getSensorEventsAPIAccess();

To get the seapiAccess object if WebSphere Sensor Events is remote from the EBL:

SensorEventsAPIAccess seapiAccess SensorEventsAPIContext.getSensorEventsAPIAccess(<Server Name>)

To send an acceptance message (Location):

seapiAccess.sendAcceptToLightStack (locationid);
Sending a rejection message to the Light Tree agent

To get the seapiAccess object if WebSphere Sensor Events is local to the EBL:

SensorEventsAPIAccess seapiAccess SensorEventsAPIContext.getSensorEventsAPIAccess();

To get the seapiAccess object if WebSphere Sensor Events is remote from the EBL:

SensorEventsAPIAccess seapiAccess SensorEventsAPIContext.getSensorEventsAPIAccess(<Server Name>)

To send a rejection message (Location):

seapiAccess.sendRejectToLightStack (locationid);
Sending an application pong message

To get the seapiAccess object if WebSphere Sensor Events is local to the EBL:

SensorEventsAPIAccess seapiAccess SensorEventsAPIContext.getSensorEventsAPIAccess();

To get the seapiAccess object if WebSphere Sensor Events is remote from the EBL:

SensorEventsAPIAccess seapiAccess SensorEventsAPIContext.getSensorEventsAPIAccess(<Server Name>)

To send the application pong message (as XML):

seapiAccess.sendApplicationPongPayload(applicationPingPayload_As_XML_String);

Library | Support | Terms of use

(c) Copyright IBM Corporation 2004, 2009. All rights reserved.
U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.