Creating an event catalog bean

An event catalog bean is used to access the event catalog.

Why and when to perform this task

The event catalog is implemented as a stateless session bean using the Enterprise JavaBean architecture. To access the event catalog, an event catalog application must first create an instance of the event catalog session bean.

Steps for this task

Use the home interface to create an instance of the event catalog session bean.
//use home interface to create event catalog bean
InitialContext context = new InitialContext();
Object eventCatalogHomeObj = 
     context.lookup("ejb/com/ibm/events/catalog/EventCatalog");
EventCatalogHome eventCatalogHome = (EventCatalogHome)
  PortableRemoteObject.narrow(eventCatalogHomeObj,
                              EventCatalogHome.class);
eventCatalog = (EventCatalog) eventCatalogHome.create();

Terms of use |

Last updated: Tue Feb 21 17:36:50 2006

(c) Copyright IBM Corporation 2005.
This information center is powered by Eclipse technology (http://www.eclipse.org)