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.
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 |
---|---|
Some protocols may require some libraries that are not packaged by default in EasyBeans. |
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.
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.
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.
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.