This client regularly tests the state of a JMS connector and publishes the results to JMX.
usage: java -DJNDI_FILE=./jndi.properties -DPERIOD=1 -DTIMEOUT=5000
-DCF=cf -DQUEUE=queue
-jar jmscheck.jar [help]
Options, set by Java environment variable ("-Dproperty=value" in command line):
- JNDI_FILE: Path of JNDI properties file. If not defined, Joram's default are
used. "fr.dyade.aaa.jndi2.client.NamingContextFactory" for JNDI Factory,
"localhost", and 16400 for host and port.
These values can be overloaded by specific properties below.
- JNDI_FACTORY: Classname of the JNDI factory (cf java.naming.factory.initial
property).
- JNDI_HOST: Hostname ou IP address of JNDI server.
- JNDI_PORT: Listening port of JNDI server.
- PERIOD: Period between 2 checks, by default 60s.
- TIMEOUT: Maximum amount of time to wait connecting and receiving messages,
by default 10s.
For each JMS connector to monitor there is 4 properties to define:
- CF: JNDI name of the ConnectionFactory to use.
- QUEUE: Internal name of JMS destination.
- USER: User name for authentication, if no defined uses the ConnectionFactory
default.
- PASS: Password for authentication, if no defined uses the ConnectionFactory
default.
If there are multiple connectors to monitor, suffix each property with 1, 2,
3, etc.
All these properties can be defined in a file whose name is given by the
CONF_FILE property. In this case the other properties defined in the command
line are ignored.