摘要 |
A method and object-oriented computing system in which a Java(TM) implementation of a service is provided dynamically at runtime via a Java(TM) interface for the service in accordance with the needs of a client computer in one of two varieties: an Enterprise Java Beans(TM) (EJB) implementation or, alternatively, a non-EJB implementation. Thus, the same service is accessible, without requiring any programming code changes, to both clients operating in an EJB environment and clients operating in a non-EJB environment. The client accesses the service through two non-EJB interfaces, one for the service (object or bean) itself, and the other for an abstract factory class. Both of these client interfaces are non-EJB to avoid dependence upon client access to EJB packages, which may exist for some clients and not for others. These interfaces operate at runtime to provide a non-EJB implementation for the service in the event the client accessing the service is not operating in an EJB environment and, alternatively, to provide an EJB implementation for the service in the event that the client accessing the service is operating in an EJB environment.
|