Java Reference
In-Depth Information
Figure 13.5
Output from your JMX agent, showing the MBean subscribed to a JMS topic.
13.4.3
Running the debugger subscriber
The IR signal transmitter simulator class is also started with a command script,
shown in listing 13.7. It sets up the classpath to include the JMS JAR s from the
JBoss provider before starting the class process.
Listing 13.7
runDeviceDebug.bat
@echo OFF
set CLIENT_CLASS_DIR=c:\JMXbook\build
REM Directory where jndi.properties is located
set JNDI_RESOURCE_DIR=resources
set JBOSS_DIST=d:\JBoss-2.4.4
REM Required libs to run client
set CLASSPATH=%JBOSS_DIST%\client\jbossmq-
client.jar;%JBOSS_DIST%\client\jnp-client.jar
set CLASSPATH=%CLASSPATH%;%JBOSS_DIST%\client\jta-
spec1_0_1.jar;%JBOSS_DIST%\client\jboss-j2ee.jar
set CLASSPATH=%CLASSPATH%;%JBOSS_DIST%\lib\ext\oswego-
concurrent.jar;%JBOSS_DIST%\client\log4j.jar
REM Aggregated classpath
set CLASSPATH=%CLASSPATH%;%CLIENT_CLASS_DIR%;%JNDI_RESOURCE_DIR%
echo "Running with classpath %CLASSPATH%"
%JAVA_HOME%\bin\java -classpath %CLASSPATH%
jmxbook.ch13.DebugSubscriber
Search WWH ::




Custom Search