| java.lang.Object org.apache.openejb.jee.SessionBean
All known Subclasses: org.apache.openejb.jee.StatelessBean, org.apache.openejb.jee.StatefulBean,
SessionBean | public class SessionBean implements EnterpriseBean,RemoteBean,Session,TimerConsumer(Code) | | The session-beanType declares an session bean. The
declaration consists of:
- an optional description
- an optional display name
- an optional icon element that contains a small and a large
icon file name
- a name assigned to the enterprise bean
in the deployment description
- an optional mapped-name element that can be used to provide
vendor-specific deployment information such as the physical
jndi-name of the session bean's remote home/business interface.
This element is not required to be supported by all
implementations. Any use of this element is non-portable.
- the names of all the remote or local business interfaces,
if any
- the names of the session bean's remote home and
remote interfaces, if any
- the names of the session bean's local home and
local interfaces, if any
- the name of the session bean's web service endpoint
interface, if any
- the session bean's implementation class
- the session bean's state management type
- an optional declaration of the session bean's timeout method.
- the optional session bean's transaction management type.
If it is not present, it is defaulted to Container.
- an optional list of the session bean class and/or
superclass around-invoke methods.
- an optional declaration of the bean's
environment entries
- an optional declaration of the bean's EJB references
- an optional declaration of the bean's local
EJB references
- an optional declaration of the bean's web
service references
- an optional declaration of the security role
references
- an optional declaration of the security identity
to be used for the execution of the bean's methods
- an optional declaration of the bean's resource
manager connection factory references
- an optional declaration of the bean's resource
environment references.
- an optional declaration of the bean's message
destination references
The elements that are optional are "optional" in the sense
that they are omitted when if lists represented by them are
empty.
Either both the local-home and the local elements or both
the home and the remote elements must be specified for the
session bean.
The service-endpoint element may only be specified if the
bean is a stateless session bean.
|
Method Summary | |
public void | addAroundInvoke(String method) | public void | addBusinessLocal(String businessLocal) | public void | addBusinessRemote(String businessRemote) | public void | addPostActivate(String method) | public void | addPostConstruct(String method) | public void | addPreDestroy(String method) | public void | addPrePassivate(String method) | public List<AroundInvoke> | getAroundInvoke() | public Collection<String> | getBusinessLocal() | public Collection<String> | getBusinessRemote() | public String | getDescription() | public Text[] | getDescriptions() | public String | getDisplayName() | public Text[] | getDisplayNames() | public String | getEjbClass() | public Collection<EjbLocalRef> | getEjbLocalRef() | public Map<String, EjbLocalRef> | getEjbLocalRefMap() | public String | getEjbName() | public Collection<EjbRef> | getEjbRef() | public Map<String, EjbRef> | getEjbRefMap() | public Collection<EnvEntry> | getEnvEntry() | public Map<String, EnvEntry> | getEnvEntryMap() | public String | getHome() | public Icon | getIcon() | public Map<String, Icon> | getIconMap() | public Collection<Icon> | getIcons() | public String | getId() | public List<InitMethod> | getInitMethod() | public String | getJndiConsumerName() | public String | getLocal() | public String | getLocalHome() | public String | getMappedName() | public Collection<MessageDestinationRef> | getMessageDestinationRef() | public Map<String, MessageDestinationRef> | getMessageDestinationRefMap() | public Collection<PersistenceContextRef> | getPersistenceContextRef() | public Map<String, PersistenceContextRef> | getPersistenceContextRefMap() | public Collection<PersistenceUnitRef> | getPersistenceUnitRef() | public Map<String, PersistenceUnitRef> | getPersistenceUnitRefMap() | public List<LifecycleCallback> | getPostActivate() | public List<LifecycleCallback> | getPostConstruct() | public List<LifecycleCallback> | getPreDestroy() | public List<LifecycleCallback> | getPrePassivate() | public String | getRemote() | public List<RemoveMethod> | getRemoveMethod() | public Collection<ResourceEnvRef> | getResourceEnvRef() | public Map<String, ResourceEnvRef> | getResourceEnvRefMap() | public Collection<ResourceRef> | getResourceRef() | public Map<String, ResourceRef> | getResourceRefMap() | public SecurityIdentity | getSecurityIdentity() | public List<SecurityRoleRef> | getSecurityRoleRef() | public String | getServiceEndpoint() | public Collection<ServiceRef> | getServiceRef() | public Map<String, ServiceRef> | getServiceRefMap() | public SessionType | getSessionType() | public NamedMethod | getTimeoutMethod() | public TransactionType | getTransactionType() | public void | setDescriptions(Text[] text) | public void | setDisplayNames(Text[] text) | public void | setEjbClass(String value) | public void | setEjbName(String value) The ejb-nameType specifies an enterprise bean's name. | public void | setHome(String value) | public void | setHomeAndLocal(String localHome, String local) | public void | setHomeAndLocal(Class> localHome, Class> local) | public void | setHomeAndRemote(String home, String remote) | public void | setHomeAndRemote(Class> home, Class> remote) | public void | setId(String value) | public void | setLocal(String value) | public void | setLocalHome(String value) | public void | setMappedName(String value) | public void | setRemote(String value) | public void | setSecurityIdentity(SecurityIdentity value) | public void | setServiceEndpoint(String value) | public void | setSessionType(SessionType value) | public void | setTimeoutMethod(NamedMethod value) | public void | setTransactionType(TransactionType value) |
SessionBean | public SessionBean()(Code) | | |
addAroundInvoke | public void addAroundInvoke(String method)(Code) | | |
addBusinessLocal | public void addBusinessLocal(String businessLocal)(Code) | | |
addBusinessRemote | public void addBusinessRemote(String businessRemote)(Code) | | |
addPostActivate | public void addPostActivate(String method)(Code) | | |
addPostConstruct | public void addPostConstruct(String method)(Code) | | |
addPrePassivate | public void addPrePassivate(String method)(Code) | | |
getDescriptions | public Text[] getDescriptions()(Code) | | |
getDisplayNames | public Text[] getDisplayNames()(Code) | | |
getJndiConsumerName | public String getJndiConsumerName()(Code) | | |
setDescriptions | public void setDescriptions(Text[] text)(Code) | | |
setDisplayNames | public void setDisplayNames(Text[] text)(Code) | | |
setEjbName | public void setEjbName(String value)(Code) | | The ejb-nameType specifies an enterprise bean's name. It is
used by ejb-name elements. This name is assigned by the
ejb-jar file producer to name the enterprise bean in the
ejb-jar file's deployment descriptor. The name must be
unique among the names of the enterprise beans in the same
ejb-jar file.
There is no architected relationship between the used
ejb-name in the deployment descriptor and the JNDI name that
the Deployer will assign to the enterprise bean's home.
The name for an entity bean must conform to the lexical
rules for an NMTOKEN.
Example:
EmployeeService
|
setHomeAndLocal | public void setHomeAndLocal(Class> localHome, Class> local)(Code) | | |
setServiceEndpoint | public void setServiceEndpoint(String value)(Code) | | |
|
|