Show Table of Contents
6.18. Configuring Agent Communication
Both the JBoss ON agent and server use the same underlying communications services. The types of connections used for agent-server communication are defined through agent preferences and can be edited by changing those preferences. The agent uses two settings for communications:
- A parameter which defines the protocol that the agent uses to talk to the server (
rhq.agent.server.transport) and any additional transport parameters (
- A parameter which defines the protocol that the agent expects for incoming communications from the server (
rhq.communications.connector.transport) and then any optional transport parameters (
Both JBoss ON servers and agents use communications layers that are build on the JBoss Remoting framework. Agents support four different transport types:
- servlet (only for agent to server communications)
- socket (only for server to agent communications)
Unlike JBoss ON servers, JBoss ON agents do not host a servlet container. This means that servlets cannot be used for server-to-agent communications; these connections use sockets. Only agent-to-server connections use servlets.
The behavior of connections between agents and servers can be controlled by setting transport parameters. The connections between agents and servers are defined by strings which look, roughly, like URLs, with this basic format:
Both servers and agents have a
rhq.communications.connector.transport-paramsconfiguration settings which allows transport parameters to be set. These parameters are appended to the end of the URL and can configure both server-side and client-side behavior. For example, the
backlogparameter is used by JBoss ON servers; with this URL, the server sets its backlog value to 200, but this setting is ignored by agents since they are clients. Likewise, the
enableTcpNoDelayparameter is used by agents when they connect to servers, but is ignored by the servers themselves.
For more information on all available transport parameters, see the JBoss Remoting documentation at http://labs.jboss.com/portal/jbossremoting/docs/guide/ch05.html.