All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----javax.ejb.deployment.DeploymentDescriptor | +----javax.ejb.deployment.SessionDescriptor
A serialized instance of the SessionDescriptor class is used as the standard format for passing the session enterprise Bean's declarative deployment attributes in the ejb-jar file.
The Bean provider tools use the setter functions to initialize an instance of the deployment descriptor. The Bean provider tools then serialize the instance into the ejb-jar file.
The getter functions are used by the container tools at deployment time. The tools deserialize the instance from the ejb-jar file, and use the getter functions to obtain information about the enterprise Bean.
Note that the Enterprise JavaBeans architecture does not prescribe whether the actual deployment descriptor class is used by the container at runtime. Therefore, the container is allowed to import the information from the deployment descriptor at deployment time, and store the information in a container-specific format. The container is however required to enforce the declarative attributes at runtime, as specified by the Enterprise JavaBeans specification.
After an enterprise Bean has been installed into a container, the container tools can be used to view and change the values of the deployment attributes. As changing the values of the deployment descriptor attributes may alter the semantics of a deployed application, the container may restrict changes to certain attributes.
The methods of the SessionDescriptor class conform to the JavaBeans property design pattern.
public static final int STATELESS_SESSION
public static final int STATEFUL_SESSION
public SessionDescriptor()
public int getSessionTimeout()
public void setSessionTimeout(int value)
public int getStateManagementType()
public void setStateManagementType(int value)
All Packages Class Hierarchy This Package Previous Next Index