|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.tests.services.monitoring.jmx.JmxTest
public class JmxTest
JUnit Test Class for the JMX package.
If one wants to observe the SpringBeans of this test environment, then the commented part at the end of the second method should be uncommented. The SpringBeans of both ApplicationContexts of the first test can be accessed by entering http://localhost:9092/ at your web browser. The SpringBeans of the second test of the first ApplicationContext can be accessed by http://localhost:9093/ . The ones of the second ApplicationContext can be viewed by a management console which supports JSR 160 (JMX Remoting) connections. One such console is MC4J which can be found at http://mc4j.sourceforge.net/ .
| Field Summary | |
|---|---|
(package private) String |
m_fileName1
Configuration file number 1. |
(package private) String |
m_fileName2
Configuration file number 2. |
(package private) String |
m_fileName3
Configuration file number 3. |
(package private) String |
m_fileName4
Configuration file number 4. |
(package private) String |
m_mandatoryFiles
All xml files in the 'mandatory' folder. |
private static org.slf4j.Logger |
s_logger
Private logger of this class. |
| Constructor Summary | |
|---|---|
JmxTest()
|
|
| Method Summary | |
|---|---|
void |
testRegisteredMBeanWithTwoAppCxtsAndOneJmxInstance()
This test loads two ApplicationContexts where MBeans are registered at the same MBean Server and checks if the MBeans are really registered at the MBean Server. |
void |
testRegisteredMBeanWithTwoAppCxtsAndTwoMBeanServers()
This test loads two ApplicationContexts where MBeans are registered at two different MBean Servers and checks if the MBeans are really registered at the corresponding MBean Server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.slf4j.Logger s_logger
String m_mandatoryFiles
String m_fileName1
String m_fileName2
String m_fileName3
String m_fileName4
| Constructor Detail |
|---|
public JmxTest()
| Method Detail |
|---|
public void testRegisteredMBeanWithTwoAppCxtsAndOneJmxInstance()
throws MalformedObjectNameException
MalformedObjectNameException - The format of the String does not correspond to a valid
ObjectName
public void testRegisteredMBeanWithTwoAppCxtsAndTwoMBeanServers()
throws MalformedObjectNameException
MalformedObjectNameException - The format of the string does not correspond to a valid
ObjectName
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||