carol.properties

Access to JNDI is bound to the carol.properties file that must be accessible from the classpath.

Usually, access to JNDI is bound to a jndi.properties file that must be accessible from the classpath. This is slightly different within JOnAS. Since JOnAS 3.1.2, multi-protocol support is provided through the integration of the CAROL component. This currently allows the support of RMI/JRMP, RMI/IIOP, JEREMIE, and CMI (clustered protocol) by just changing the configuration. In JOnAS versions earlier than 3.1.2, it was neccessary to rebuild JOnAS for switching e.g. from RMI/JRMP to JEREMIE, and to change the value of the OBJECTWEB_ORB environment variable value. OBJECTWEB_ORB is no longer used. This configuration is provided within the carol.properties file (that includes what was provided in the jndi.properties file). The carol.properties file is supplied with the JOnAS distribution in the $JONAS_ROOT/conf directory.

The carol.properties file contains the following:


# jonas rmi acativation (jrmp, iiop, jeremie, cmi) 
carol.protocols=jrmp

# RMI JRMP URL
carol.jrmp.url=rmi://localhost:1099

# RMI JEREMIE URL
carol.jeremie.url=jrmi://localhost:2000

# RMI IIOP URL
carol.iiop.url=iiop://localhost:2001

# general rules for jndi
carol.jndi.java.naming.factory.url.pkgs=org.objectweb.jonas.naming

######################################################################
#             Configuration for CMI (clustering)
######################################################################

# java.naming.provider.url property
# For a server : the URL on which the registry will be started
# For clients : lists the registries available
carol.cmi.url=cmi://localhost:2002

# Multicast address used by the registries in the cluster
#carol.cmi.multicast.address=224.0.0.35:35467

# IP address or network mask of the local network interface to use to send
# multicast messages
# Needed only when the server has several network interfaces and the multicast
# messages do not go through to interface you want them to use
# Works only on JDK 1.4
#carol.cmi.multicast.itf 192.168.25.0/24

# Groupname for Javagroups. No need to change if don't know.
carol.cmi.multicast.groupname=G1

# Factor used for this server in wheighted round robin algorithms
carol.cmi.rr.factor=100

# If enabled, cluster stubs will print messages on some error cases
carol.cmi.stub.debug=false