en.help.task-ejbgeneral.html Maven / Gradle / Ivy
Show all versions of console-ejb-lite-plugin-help Show documentation
To Configure EJB Settings
- In the navigation tree, select the Configuration node.
- Select the EJB Container node.
The Enterprise Java Beans (EJB) page opens.
- In the Session Store Location field, type a new value for the session
store location.
This field specifies the directory where passivated stateful session beans and persisted SFSB
checkpoint states are stored on the file system. The default value is ${com.sun.aas.instanceRoot}/session-store.
Passivated beans are stateful session beans that have had their state written to
a file on the file system. Passivated beans typically have been idle for
a certain period of time, and are not currently being accessed by clients.
Similarly, persisted SFSB checkpoint states are individual SFSBs that have had their state
written to a file on the file system.
This setting is applicable to SFSB checkpoint states only if EJB container availability
is disabled. To disable availability, see To Configure Availability Settings for the EJB Container.
- Select the Option B or Option C radio button to set the
Commit Option.
The Commit Option specifies how the container caches passivated bean instances between transactions.
- If you select Option B (the default), the container caches a ready instance
between transactions.
- If you select Option C, the container does not cache a ready
instance between transactions.
- In the Initial and Minimum Pool Size field, type the minimum number of
beans to be maintained in the pool.
The default value is 0.
- In the Maximum Pool Size field, type the maximum number of beans that
the container can maintain in the pool at one time.
The default value is 32.
- In the Pool Resize Quantity field, type the number of beans that will
be removed from the pool if they are idle for more than
the time specified in the Pool Idle Timeout field.
The value must be at least 0 and less than the Maximum Pool
Size value. The default value is 8.
- In the Pool Idle Timeout field, type the time, in seconds, that a
bean in the pool can remain idle before it will be removed
from the pool.
After this amount of time, the bean is destroyed. A value of
0 means that a bean can remain idle indefinitely. The default value is
600.
- In the Max Cache Size field, type the maximum number of beans to
be held in the cache.
Increase the maximum number of beans to cache to eliminate the overhead of
bean creation and destruction. However, if the cache is increased, the server consumes
more memory and resources. Be sure your operating environment is sufficient for your
cache settings. A value of 0 indicates an unbounded cache. The default value
is 512.
- In the Cache Resize Quantity field, type the number of beans to passivate
when the cache is full.
When the maximum number of cached beans is reached, the container removes a
number of passivated beans from the backup store. This value also specifies the
number of beans to be created if a request arrives when the pool
has no available beans. The value must be greater than 1 and less
than the Max Cache Size value. The default value is 32.
- In the Removal Timeout field, type the number of seconds after which a
passivated bean is removed from the session store.
A value of 0 specifies that the container does not remove inactive beans
automatically. If the Removal Timeout value is less than or equal to the
Cache Idle Timeout value, beans are removed immediately without being passivated. The default value
is 5400.
- From the Removal Selection Policy drop-down list, select the policy the container uses
to remove stateful session beans from the cache.
The choices are as follows:
- Not recently used (NRU)
(Default) Removes a bean that hasn’t been used recently.
- First in, first out (FIFO)
Removes the oldest bean in the cache.
- Least recently used (LRU)
Removes the least recently accessed bean.
- In the Cache Idle Timeout field, type the maximum number of seconds that
a bean can remain idle in the cache.
After this amount of time, the container can passivate this bean. A value
of 0 specifies that beans never become candidates for passivation. The default value
is 600.
- (Optional) In the Additional Properties section, specify additional properties.
The GlassFish Server does not define any additional properties for the EJB container.
- To add a property, click the Add Property button. In the blank row
that appears, type the property name in the Name field, and type
the property value in the Value field.
- To modify a property, edit that property's Value field.
- To delete a property, select the checkbox to the left of the
Name field of the property that you are deleting, then click the Delete
Properties button.
- Click Save.
Tip - To return to the default settings, click the Load Defaults button, then click
Save.
- Restart the GlassFish Server.
See Also
-
-
-
Copyright © 2005, 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices