Each element defined inside the
<components>
element is a component.
Note that some elements are required only for the standalone mode. JMS, RMI, HSQL, and JDBC pools are configured through JOnAS server when EasyBeans runs inside JOnAS.
The RMI configuration is done using the
<rmi>
element.
To run EasyBeans with multiple protocols, the
<protocol>
element can be added more than
once.
The hostname and port attributes are configurable.
Protocols could be "jrmp, jeremie, iiop, cmi". The default is jrmp.
Note | |
---|---|
Some protocols may require libraries that are not packaged by default in EasyBeans. |
The Transaction Component is defined by the
<tm>
element.
A timeout
attribute, which is the transaction
timeout (in seconds), can be defined on this element. The default is 60
seconds.
The implementation provided by the JOTM objectweb project is the default implementation.
The JMS component is used for JMS Message Driven Beans. Attributes are the port number and the hostname.
Also, the workmanager settings can be defined: minThreads, maxThreads and threadTimeout. The values are printed at the EasyBeans startup.
The default implementation is the implementation provided by the JORAM objectweb project.
EasyBeans can run an embedded database. Available attributes are
the port number and the database name. The
<hsqldb>
may be duplicated in order to run
several HSQLDB instances.
Users are defined through the <user>
element.
This component allows the JDBC datasource to be bound into JNDI.
The jndi name used is provided by the jndiName
attribute.
Required attributes are username
,
password
, url
and
driver
.
Optional attributes are poolMin
,
poolMax
and pstmtMax
. This
component provides the option to set the minimum size of the pool, the
maximum size, and the size of the prepared statement cache.
Mails can be sent by using the mail component that provides either Session or MimePartDataSource factories.
This component is used by the Smart JNDI factory on the client side. This allows the client to download missing classes. The client can be run without a big jar file that provides all the classes. Classes are loaded on demand.
Note | |
---|---|
Refer to the Chapter titled, Smart JNDI Factory, for more information about this feature. |