Enterprise Bean -> General tabbed pane -> Sun-specific Settings button
Use the General Settings to specify the EJB Name, the JNDI Name, the Principal Name, and the Pass By Reference Setting for this component.
This option is grayed out when a stateful session bean is selected on the General page of this wizard. Some beans are added to a method-ready pool as a part of their lifecycle. For example, a stateless session bean that has a local or remote client view has a single create()
method. It and the corresponding ejbCreate
method have no arguments. Since stateless session bean instances are typically pooled, the time of the client's invocation of the create method may not be directly related to the container's invocation of the ejbCreate
method on the stateless session bean instance.
Set these parameters for the bean pool:
The Bean Cache settings are available when a stateful session bean or an entity bean is selected on the General page of this wizard. It typically reads and updates data in a database on behalf of the client. Within a transaction, some of this data may be cached in the instance.
For example, the session bean must explicitly manage cached database data. A session bean instance must write any cached database updates prior to a transaction completion, and it must refresh its copy of any potentially stale database data at the beginning of the next transaction. A session bean must also refresh any Statement objects before they are used in a new transaction context. A session bean that caches the persistent state of an entity bean with container-managed persistence should refresh this stale state at the beginning of the next transaction. A session bean that caches references to the collection objects that represent container-managed relationships and iterators for container-managed collections must refresh this stale state before accessing these objects in a new transaction context.
Enter the appropriate values for these fields:
CacheOverFlowException
is thrown.The backup store is monitored by a background thread (or sweeper thread) to remove unwanted entries. If no victims could be selected, then the value in the Is Cache Overflow Allowed field will determine if a CacheOverFlowException
is thrown or not.
The possible values are:
When an Entity bean is selected on the General page of this wizard, the Entity Settings section will be available.
Select from the following commit-time options: