You can later bring this dead server back to join the cluster
without disturbing the cluster setup.
Sample demonstrating JMX
To demonstrate JMX in ServiceMix, we will use the same sample we used for
Chapter 9 (Pojo Binding Using Jsr181). The sample ch09\Jsr181BindPojo is repeated
in this chapter and is kept in folder ch17\04_JMX.
Enable JMX in ServiceMix Application
ServiceMix uses the following parameter for enabling JMX:
The default namingPort: 1099.
The default container name: jmxrmi.
The JMX Service URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi.
These are the default settings for ServiceMix version 3.x. For version 2.x, JMX Service
URL alone changes to: service:jmx:rmi:///jndi/rmi://localhost:1099/
defaultJBIJMX.
The above values are configured through %SERVICEMIX_HOME%\conf\jmx.xml.
To start simple, edit the jmx.xml file to disable the security feature. This can be
done by first searching for "Comment the following lines to disable JAAS
authentication for jmx" and then commenting the succeeding lines.
Now, bring ServiceMix up. This can be done by trying out any of the samples in the
previous chapters or you can use the JMX sample provided with this chapter.
Pages:
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517