org.apache.openejb.jee.was.v6.ejb
Class Session

java.lang.Object
  extended by org.apache.openejb.jee.was.v6.common.DescriptionGroup
      extended by org.apache.openejb.jee.was.v6.common.CompatibilityDescriptionGroup
          extended by org.apache.openejb.jee.was.v6.common.JNDIEnvRefsGroup
              extended by org.apache.openejb.jee.was.v6.ejb.EnterpriseBean
                  extended by org.apache.openejb.jee.was.v6.ejb.Session

public class Session
extends EnterpriseBean

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 - 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 - the session bean's transaction management type - 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.

Java class for Session complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Session">
   <complexContent>
     <extension base="{ejb.xmi}EnterpriseBean">
       <choice maxOccurs="unbounded" minOccurs="0">
         <element name="serviceEndpoint" type="{java.xmi}JavaClass"/>
       </choice>
       <attribute name="serviceEndpoint" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="sessionType" type="{ejb.xmi}SessionType" />
       <attribute name="transactionType" type="{ejb.xmi}TransactionType" />
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  java.lang.String serviceEndpoint
           
protected  java.util.List<JavaClass> serviceEndpoints
           
protected  SessionEnum sessionType
           
protected  TransactionEnum transactionType
           
 
Fields inherited from class org.apache.openejb.jee.was.v6.ejb.EnterpriseBean
ejbClass, ejbClasses, homeInterface, homeInterfaces, localHomeInterface, localHomeInterfaces, localInterface, localInterfaces, name, remoteInterface, remoteInterfaces, securityIdentities, securityRoleRefs
 
Fields inherited from class org.apache.openejb.jee.was.v6.common.JNDIEnvRefsGroup
ejbLocalRefs, ejbRefs, environmentProperties, messageDestinationRefs, resourceEnvRefs, resourceRefs, serviceRefs
 
Fields inherited from class org.apache.openejb.jee.was.v6.common.CompatibilityDescriptionGroup
description, displayName, largeIcon, smallIcon
 
Fields inherited from class org.apache.openejb.jee.was.v6.common.DescriptionGroup
descriptions, displayNames, extensions, href, icons, id, idref, label, type, uuid, version
 
Constructor Summary
Session()
           
 
Method Summary
 java.lang.String getServiceEndpoint()
          Gets the value of the serviceEndpoint property.
 java.util.List<JavaClass> getServiceEndpoints()
          Gets the value of the serviceEndpoints property.
 SessionEnum getSessionType()
          Gets the value of the sessionType property.
 TransactionEnum getTransactionType()
          Gets the value of the transactionType property.
 void setServiceEndpoint(java.lang.String value)
          Sets the value of the serviceEndpoint property.
 void setSessionType(SessionEnum value)
          Sets the value of the sessionType property.
 void setTransactionType(TransactionEnum value)
          Sets the value of the transactionType property.
 
Methods inherited from class org.apache.openejb.jee.was.v6.ejb.EnterpriseBean
getEjbClass, getEjbClasses, getHomeInterface, getHomeInterfaces, getLocalHomeInterface, getLocalHomeInterfaces, getLocalInterface, getLocalInterfaces, getName, getRemoteInterface, getRemoteInterfaces, getSecurityIdentities, getSecurityRoleRefs, setEjbClass, setHomeInterface, setLocalHomeInterface, setLocalInterface, setName, setRemoteInterface
 
Methods inherited from class org.apache.openejb.jee.was.v6.common.JNDIEnvRefsGroup
getEjbLocalRefs, getEjbRefs, getEnvironmentProperties, getMessageDestinationRefs, getResourceEnvRefs, getResourceRefs, getServiceRefs
 
Methods inherited from class org.apache.openejb.jee.was.v6.common.CompatibilityDescriptionGroup
getDescription, getDisplayName, getLargeIcon, getSmallIcon, setDescription, setDisplayName, setLargeIcon, setSmallIcon
 
Methods inherited from class org.apache.openejb.jee.was.v6.common.DescriptionGroup
getDescriptions, getDisplayNames, getExtensions, getHref, getIcons, getId, getIdref, getLabel, getType, getUuid, getVersion, setHref, setId, setIdref, setLabel, setType, setUuid, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceEndpoints

protected java.util.List<JavaClass> serviceEndpoints

serviceEndpoint

protected java.lang.String serviceEndpoint

sessionType

protected SessionEnum sessionType

transactionType

protected TransactionEnum transactionType
Constructor Detail

Session

public Session()
Method Detail

getServiceEndpoints

public java.util.List<JavaClass> getServiceEndpoints()
Gets the value of the serviceEndpoints property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the serviceEndpoints property.

For example, to add a new item, do as follows:

 getServiceEndpoints().add(newItem);
 

Objects of the following type(s) are allowed in the list JavaClass


getServiceEndpoint

public java.lang.String getServiceEndpoint()
Gets the value of the serviceEndpoint property.

Returns:
possible object is String

setServiceEndpoint

public void setServiceEndpoint(java.lang.String value)
Sets the value of the serviceEndpoint property.

Parameters:
value - allowed object is String

getSessionType

public SessionEnum getSessionType()
Gets the value of the sessionType property.

Returns:
possible object is SessionEnum

setSessionType

public void setSessionType(SessionEnum value)
Sets the value of the sessionType property.

Parameters:
value - allowed object is SessionEnum

getTransactionType

public TransactionEnum getTransactionType()
Gets the value of the transactionType property.

Returns:
possible object is TransactionEnum

setTransactionType

public void setTransactionType(TransactionEnum value)
Sets the value of the transactionType property.

Parameters:
value - allowed object is TransactionEnum


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.