5.2. Configuration

Each element defined inside the <components> element are components

Note that some elements are required only for the standalone mode. When EasyBeans run inside JOnAS, JMS, RMI, HSQL, and JDBC pools are configured through JOnAS server.

5.2.1. RMI component

The RMI configuration is done by using the <rmi> element.

In order to run EasyBeans with multiple protocols, <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]Note

Some protocols may require some libraries that are not packaged by default in EasyBeans.

5.2.2. Transaction component

The Transaction Component is defined by the <tm> element.

A timeout attribute can be defined on this element. It is the transaction timeout (in seconds). By default it is 60 seconds.

The default implementation used is the implementation provided by JOTM objectweb project.

5.2.3. JMS component

The JMS component is used for JMS Message Driven Beans. Attributes are the port number and the hostname.

The default implementation used is the implementation provided by JORAM objectweb project.

5.2.4. HSQL database

An embedded database can be run by EasyBeans. 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.

5.2.5. JDBC pool

This component allows to bind JDBC datasource into JNDI. The jndi name that will be used is provided by the jndiName attribute.

Required attributes are username, password, url and driver.

Optional attributes are poolMin, poolMax and pstmtMax. It allows to set the minimum size of the pool, the maximum size and the size of the prepared statement cache.

5.2.6. SmartServer component

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 providing all classes. Classes are loaded on demand.

[Note]Note

There is a chapter about the Smart factory.