sun-ejb-jar.xml Visual Editor: Entity Bean
See Also
You get to this pane by expanding the Sun Configuration node in the sun-ejb-jar.xml
visual editor and clicking the entity bean node (
).
This pane lets you edit the sun-ejb-jar.xml deployment descriptor entries
for entity beans.
In addition to the general bean settings, the pane contains the following configuration tabs:
If the Entity Bean uses container-managed persistence (CMP), the pane
contains the following additional configuration tabs:
General Bean Properties
Each EJB has the following elements:
- Name. The name field contains the name of the bean. This name cannot be changed in the visual editor.
- JINDI name.
This specifies the JNDI name of the entity bean. In the case of session beans, this name
specifies the global JNDI name of the EJBHome object. This name is required if the session bean exposes a remote view.
- Pass by Reference.
This specifies the passing method used by the enterprise bean
calling a remote interface method in another bean co-located within the same process.
The following three options are available:
- No value set (empty). When no value is set, the default passing method is used. The default is pass-by-value.
- True. When set to True, pass-by-reference semantics is used.
- False. When set to False, the enterprise bean uses pass-by-value semantics for calls to remote interfaces.
- Use of the Pass by Reference feature results in non-portable applications.
Entity Bean Properties
The following entity bean settings can also be modified:
- Is Read Only Bean. Selecting True specifies that the bean is a read-only bean that is never
modified by an Enterprise Bean client. If not defined, the default value of False is used.
- Refresh Period In Seconds. This specifies the rate at which a read-only bean must be
refreshed from the JDBC datasource. Values are 0 (never refreshed)and positive number
(refreshed at specified intervals). This rate is just a hint to the container. The Default value is 0.
- Commit Option. This specifies the commit option used on transaction completion.
For the Sun Java System Application Server, the valid values are B or C. The default value is B.
(Commit option A is not supported for the current release of the Sun Java System Application Server.)
- Mapping Properties. This property is currently not used.
- See Also
- sun-ejb-jar.xml Visual Editor
Entity Bean Configuration Tabs
Session Bean
Message Bean
Sun Configuration
Web Service Descriptor
- About Entity Beans
- Defining a CMP Field
- Configuring EJB Deployment Descriptors
Legal Notices