Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Developer's Guide

- Previous: endpoint-address-uri
- Next: entity-mapping

## enterprise-beans

Specifies all the runtime properties for an EJB JAR file in the application.

### Superelements

sun-ejb-jar (`sun-ejb-jar.xml`)

### Subelements

The following table describes subelements for the `enterprise-beans` element.

Table A–42 `enterprise-beans` Subelements

Element | Required | Description
--- | --- | ---
name | zero or one | Specifies the name string.
unique-id | zero or one | Specifies a unique system identifier. This data is automatically generated and updated at deployment/redeployment. Do not specify or edit this value.
ejb | zero or more | Defines runtime properties for a single enterprise bean within the application.
pm-descriptors | zero or one | Deprecated.
cmp-resource | zero or one | Specifies the database to be used for storing container-managed persistence (CMP) beans in an EJB JAR file.
message-destination | zero or more | Specifies the name of a logical message destination.
webservice-description | zero or more | Specifies a name and optional publish location for a web service.

### Example

    <enterprise-beans>
     <ejb>
    	 <ejb-name>CustomerEJB</ejb-name>
    	 <jndi-name>customer</jndi-name>
    	 <resource-ref>
    		 <res-ref-name>jdbc/SimpleBank</res-ref-name>
    		 <jndi-name>jdbc/PointBase</jndi-name>
    	 </resource-ref>
    	 <is-read-only-bean>false</is-read-only-bean>
    	 <commit-option>B</commit-option>
    	 <bean-pool>
    		 <steady-pool-size>10</steady-pool-size>
    		<resize-quantity>10</resize-quantity>
    		 <max-pool-size>100</max-pool-size>
    		 <pool-idle-timeout-in-seconds>600</pool-idle-timeout-in-seconds>
    	 </bean-pool>
    	 <bean-cache>
    		 <max-cache-size>100</max-cache-size>
    		 <resize-quantity>10</resize-quantity>
    		 <removal-timeout-in-seconds>3600</removal-timeout-in-seconds>
    		 <victim-selection-policy>LRU</victim-selection-policy>
    	 </bean-cache>
     </ejb>
    </enterprise-beans>

- Previous: endpoint-address-uri
- Next: entity-mapping

- © 2010, Oracle Corporation and/or its affiliates