org.apache.tuscany.sca.host.ejb
Interface EJBHost

All Known Implementing Classes:
ExtensibleEJBHost

public interface EJBHost

Interface implemented by host environments that allow EJBs to be registered.

This interface allows a system service to register an EJB session bean to handle inbound requests.


Method Summary
 void addSessionBean(java.lang.String ejbName, EJBSessionBean sessionBean)
          Add an EJB session bean.
 EJBSessionBean getSessionBean(java.lang.String ejbName)
          Returns the EJB session bean descriptor registered under the given EJB name.
 EJBSessionBean removeSessionBean(java.lang.String ejbName)
          Remove an EJB session bean.
 

Method Detail

addSessionBean

void addSessionBean(java.lang.String ejbName,
                    EJBSessionBean sessionBean)
                    throws EJBRegistrationException
Add an EJB session bean.

Parameters:
ejbName - the EJB name
sessionBean - the EJB session bean descriptor
Throws:
EJBRegistrationException

removeSessionBean

EJBSessionBean removeSessionBean(java.lang.String ejbName)
                                 throws EJBRegistrationException
Remove an EJB session bean.

Parameters:
ejbName - the EJB name
Returns:
the EJB session bean descriptor that was registered under that name
Throws:
EJBRegistrationException

getSessionBean

EJBSessionBean getSessionBean(java.lang.String ejbName)
                              throws EJBRegistrationException
Returns the EJB session bean descriptor registered under the given EJB name.

Parameters:
ejbName - the EJB name
Returns:
the EJB session bean descriptor
Throws:
EJBRegistrationException