getEventStore()

Creates a reference to the connector's event store.

Syntax

public CWConnectorEventStore getEventStore();

Parameters

None.

Return values

A CWConnectorEventStore object that provides access to the connector's event store. If the event-store-factory class cannot be located, the method returns null.

Exceptions

None.

Notes

The getEventStore() method is the event-store factory, whose task is to instantiate an event-store object for the connector. Through this event-store object, the connector can access its event store. The getEventStore() method calls the getEventStore() method of your event-store-factory class, which implements the CWConnectorEventStoreFactory interface.

Important:
The CWConnectorAgent class provides a default implementation for the getEventStore() method. Therefore, you can either use this default implementation or override the method to implement your own mechanism to instantiate an event-store object.

The default implementation of the getEventStore() method that the CWConnectorAgent class provides checks the EventStoreFactory connector configuration property for the name of the event-store-factory class (which implements the CWConnectorEventStoreFactory interface), as follows:

The EventStoreFactory property must specify the entire class name for the event-store factory instance. For information on the format of this property, see CWConnectorEventStoreFactory interface. For example, the WebSphere Business Integration Adapter for JDBC contains an event-store factory that provides access to a JDBC event store. Therefore, the EventStoreFactory property might be set as follows:

com.crossworlds.connectors.JDBC.JDBCEventStoreFactoryInstance

The default implementation of the pollForEvents() method calls this getEventStore() method to retrieve a reference to the event store. For more information, see Retrieving event records.

See also

getEventStore(),, pollForEvents()

Copyright IBM Corporation 1997, 2004. All Rights Reserved.