The Carbon Java Framework  

The Carbon EJB Module

Requirements

Printer Friendly Version

Author: Erik M Gottesman (egotte at sapient.com)
Version:
Created:

Requirements

The requirements of the Carbon EJB service are to provide:

  • A means to simply and consistently lookup locally or remotely deployed Enterprise Java Beans
  • An API that encourages the user to maintain the proper security context
  • A mechanism to optionally cache EJB home interfaces
Exceptions
All service methods throw the abstract package-levelized exception HomeFactoryException.
Logging
The EJB service logs trace-level message when the component is configured, an EJB lookup is performed, when it checks for the home interface in its internal cache and when a new home interface is added to the cache.
Extensibility
The current implementation provides a single point of extensibility worth noting, specifically, the protected method cacheHome. In both the case of the LocalHomeFactory and RemoteHomeFactory, this method may be overridden to provide a more elaborate caching scheme, e.g. support for compound keys based on the EJBs logical name plus the security principal.
Messaging

Copyright © 2001-2003, Sapient Corporation