Runtime components : Channels components : Single action EJB : Tasks : Configuring a single action EJB
  
Configuring a single action EJB
You can customize the initialization configuration of your Single Action EJB by defining the environment entries in the EJB deployment descriptor (ejb-jar.xml). Usually the environment entries contain three attributes:
id - Indicates the name of this Single Action EJB. This attribute is not mandatory.
context - Indicates the name of the context for this single Action EJB.
contextMode - Indicates whether the context is local or distributed. The value for this field is either local or remote.
Example
The following is an example of the environment entries defined in the deployment descriptor:
<env-entry>
<env-entry-name>id</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>myAction</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>context</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>actionCtx</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>contextMode</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>local</env-entry-value>
</env-entry>
See also
Tasks