The Enterprise Business Logic application submits events to the WebSphere® Sensor Events using WebSphere Sensor Events API and IBM® Sensor Events.
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);
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);
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);
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);
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);