WebSphere WebSphere Enterprise Service Bus, Version 6.0.1 Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

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();

Task topic

Terms of Use | Rate this page

Timestamp iconLast updated: 13 Dec 2005
http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.websphere.wesb.doc\doc\tcei_admin_createEventCatalogBean.html

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