Here is the list of possible services
registry,jmx,security,jtm,db,mail,wc,dbm,wm,resource,cmi,ha,versioning,ejb2,ejb3,jaxrpc,jaxws,web,ear,depmonitor,discovery,resourcemonitor,smartclient,wsdl-publisher
In this chapter we will describe how to configure each service in
the jonas.properties
file.
The configuration of the cmi service
is available through the file
$JONAS_BASE/conf/cmi-config.xml
.
The CMI service can be configured in two modes:
server mode with a cluster view manager created locally, i.e. with a local instance of a replicated CMI registry.
client mode without a local cluster view manager, in this case a list of providers urls (i.e. a list of cluster view manager urls) is given for accessing to the remote CMI registries.
The server mode is simpler to configure, the client mode requires to define statically a list of providers urls. The server mode starts a Group Communication Protocol instance (e.g. JGroups) and thus increases the resources consumption compare to the client mode.
Note | |
---|---|
The CMI configuration file may contain two parts: a
|
The server element contains the following elements:
Example 2.1. Configuring the cmi service in the server mode
<cmi xmlns="http://org.ow2.cmi.controller.common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jgroups="http://org.ow2.cmi.controller.server.impl.jgroups"> <server> <jndi> <protocol name="jrmp" noCmi="false" /> </jndi> <viewManager class="org.ow2.cmi.controller.server.impl.jgroups.JGroupsClusterViewManager"> <jgroups:config delayToRefresh="60000" loadFactor="100" confFileName="jgroups-cmi.xml" recoTimeout="30000" groupName="G1"> <components> <event /> </components> </jgroups:config> </viewManager> </server> </cmi>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Note | |
---|---|
Refer to the clustering guide for issues related to JGroups. |
The client element contains the following elements:
Example 2.2. Configuring the cmi service in the client mode
<cmi xmlns="http://org.ow2.cmi.controller.common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <client noCmi="false"> <jndi> <protocol name="jrmp"> <providerUrls> <providerUrl>rmi://localhost:1099</providerUrl> <providerUrl>rmi://localhost:2001</providerUrl> </providerUrls> </protocol> </jndi> </client> </cmi>
|
|
|