| Home >> All >> org >> springframework >> ejb |
| | org.springframework.ejb.access.* (6) | | org.springframework.ejb.support.* (7) |
Package Samples:
org.springframework.ejb.access
org.springframework.ejb.support
Classes:
SimpleRemoteStatelessSessionProxyFactoryBean: Convenient factory for remote SLSB proxies. If you want control over interceptor chaining, use an AOP ProxyFactoryBean with SimpleRemoteSlsbInvokerInterceptor rather than rely on this class. See org.springframework.jndi.JndiObjectLocator for info on how to specify the JNDI location of the target EJB. In a bean container, this class is normally best used as a singleton. However, if that bean container pre-instantiates singletons (as do the XML ApplicationContext variants) you may have a problem if the bean container is loaded before the EJB container loads the target EJB. That is because by default ...
SimpleRemoteSlsbInvokerInterceptor: Basic invoker for a remote Stateless Session Bean. "Creates" a new EJB instance for each invocation. See org.springframework.jndi.JndiObjectLocator for info on how to specify the JNDI location of the target EJB. In a bean container, this class is normally best used as a singleton. However, if that bean container pre-instantiates singletons (as do the XML ApplicationContext variants) you may have a problem if the bean container is loaded before the EJB container loads the target EJB. That is because by default the JNDI lookup will be performed in the init method of this class and cached, but the ...
LocalStatelessSessionProxyFactoryBean: Convenient factory for local Stateless Session Bean (SLSB) proxies. If you want control over interceptor chaining, use an AOP ProxyFactoryBean with LocalSlsbInvokerInterceptor rather than rely on this class. See org.springframework.jndi.JndiObjectLocator for info on how to specify the JNDI location of the target EJB. In a bean container, this class is normally best used as a singleton. However, if that bean container pre-instantiates singletons (as do the XML ApplicationContext variants) you may have a problem if the bean container is loaded before the EJB container loads the target EJB. That is ...
AbstractEnterpriseBean: Superclass for all EJBs. Package-visible: not intended for direct subclassing. Provides a standard way of loading a BeanFactory. Subclasses act as a facade, with the business logic deferred to beans in the BeanFactory. Default is to use a ContextJndiBeanFactoryLocator, which will initialize an XML ApplicationContext from the class path (based on a JNDI name specified). For a different locator strategy, setBeanFactoryLocator may be called ( before your EJB's ejbCreate method is invoked, for example, in setSessionContext ). For use of a shared ApplicationContext between multiple EJBs, where the container ...
AbstractStatelessSessionBean: Convenient superclass for stateless session beans (SLSBs), minimizing the work involved in implementing an SLSB and preventing common errors. Note that SLSBs are the most useful kind of EJB. As the ejbActivate() and ejbPassivate() methods cannot be invoked on SLSBs, these methods are implemented to throw an exception and should not be overriden by subclasses. (Unfortunately the EJB specification forbids enforcing this by making EJB lifecycle methods final.) There should be no need to override the setSessionContext() or ejbCreate() lifecycle methods. Subclasses are left to implement the onEjbCreate() ...
LocalSlsbInvokerInterceptor: Invoker for a local Stateless Session Bean. Caches the home object. A local EJB home can never go stale. See org.springframework.jndi.JndiObjectLocator for info on how to specify the JNDI location of the target EJB. In a bean container, this class is normally best used as a singleton. However, if that bean container pre-instantiates singletons (as do the XML ApplicationContext variants) you may have a problem if the bean container is loaded before the EJB container loads the target EJB. That is because by default the JNDI lookup will be performed in the init method of this class and cached, but ...
AbstractStatefulSessionBean: Convenient superclass for stateful session beans. SFSBs should extend this class, leaving them to implement the ejbActivate() and ejbPassivate() lifecycle methods to comply with the requirements of the EJB specification. Note: Subclasses should invoke the loadBeanFactory() method in their custom ejbCreate and ejbActivate methods, and should invoke the unloadBeanFactory() method in their ejbPassivate method. Note: The default BeanFactoryLocator used by this class's superclass (ContextJndiBeanFactoryLocator) is not serializable. Therefore, when using the default BeanFactoryLocator, or another variant ...
AbstractMessageDrivenBean: Convenient superclass for MDBs. Doesn't require JMS, as EJB 2.1 MDBs are no longer JMS-specific: see the AbstractJmsMessageDrivenBean subclass. This class ensures that subclasses have access to the MessageDrivenContext provided by the EJB container, and implement a no argument ejbCreate() method as required by the EJB specification. This ejbCreate() method loads a BeanFactory, before invoking the onEjbCreate() method, which should contain subclass-specific initialization. NB: We cannot use final methods to implement EJB API methods, as this violates the EJB specification. However, there should ...
AbstractSessionBean: Superclass for all session beans. Not intended for direct client subclassing; derive from AbstractStatelessSessionBean or AbstractStatefulSessionBean instead. This class saves the session context provided by the EJB container in an instance variable and provides a NOP implementation of the ejbRemove() lifecycle method.
AbstractSlsbInvokerInterceptor: Superclass for AOP interceptors invoking local or remote Stateless Session Beans. Such an interceptor must be the last interceptor in the advice chain. In this case, there is no direct target object: The call is handled in a special way, getting executed on an EJB instance retrieved via an EJB home.
SmartSessionBean: Interface to be implemented by Session Beans that want to expose important state to cooperating classes. Implemented by Spring's AbstractSessionBean class and hence by all of Spring's specific Session Bean support classes.
AbstractRemoteSlsbInvokerInterceptor: Superclass for interceptors proxying remote Stateless Session Beans. Such an interceptor must be the last interceptor in the advice chain. In this case, there is no target object.
AbstractJmsMessageDrivenBean: Convenient superclass for JMS MDBs. Requires subclasses to implement the JMS interface MessageListener.
| Home | Contact Us | Privacy Policy | Terms of Service |