|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jk.core.JkHandler org.apache.jk.common.JkMX
public class JkMX
Load the HTTP or RMI adapters for MX4J and JMXRI. Add "mx.enabled=true" in jk2.properties to enable it. You could also select http and/or jrmp protocol, with mx.httpPort, mx.httpHost, mxjrmpPort and mx.jrmpPort.
If you run into an error message like "SystemId Unknown; Line #12; Column #81; Cannot add attribute name after child nodes or before an element is produced. Attribute will be ignored." after setting mx.enabled to true, you probably need a newer version of Xalan. See the RELEASE-NOTES document section on XML Parsers for more information.
Field Summary |
---|
Fields inherited from class org.apache.jk.core.JkHandler |
---|
domain, ERROR, HANDLE_FLUSH, HANDLE_RECEIVE_PACKET, HANDLE_SEND_PACKET, HANDLE_THREAD_END, id, LAST, name, next, nextName, OK, oname, properties, wEnv |
Constructor Summary | |
---|---|
JkMX()
|
Method Summary | |
---|---|
void |
addHandlerCallback(JkHandler w)
Experimental, will be replaced. |
void |
destroy()
Clean up and stop the handler |
java.lang.String |
getAuthMode()
|
java.lang.String |
getAuthPassword()
|
java.lang.String |
getAuthUser()
|
boolean |
getEnabled()
|
java.lang.String |
getHttpHost()
|
int |
getHttpPort()
|
java.lang.String |
getJrmpHost()
|
int |
getJrmpPort()
|
boolean |
getLog4jEnabled()
|
int |
getPort()
|
boolean |
getUseXSLTProcessor()
|
void |
init()
Should register the request types it can handle, same style as apache2. |
void |
loadAdapter()
Initialize the worker. |
void |
setAuthMode(java.lang.String mode)
|
void |
setAuthPassword(java.lang.String password)
|
void |
setAuthUser(java.lang.String user)
|
void |
setEnabled(boolean b)
Enable the MX4J adapters (new way) |
void |
setHttpHost(java.lang.String host)
|
void |
setHttpPort(int i)
Enable the MX4J HTTP internal adapter |
void |
setJrmpHost(java.lang.String host)
|
void |
setJrmpPort(int i)
Enable the MX4J JRMP internal adapter |
void |
setLog4jEnabled(boolean b)
Enable the Log4j MBean) |
void |
setPort(int i)
Enable the MX4J adapters (old way, compatible) |
void |
setUseXSLTProcessor(boolean uxsltp)
|
Methods inherited from class org.apache.jk.core.JkHandler |
---|
createMsgContext, createMsgContext, getDomain, getId, getName, getNext, getObjectName, getProperty, handleNotification, invoke, pause, postDeregister, postRegister, preDeregister, preRegister, resume, setId, setName, setNext, setNext, setProperty, setWorkerEnv |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JkMX()
Method Detail |
---|
public void setEnabled(boolean b)
public boolean getEnabled()
public void setLog4jEnabled(boolean b)
public boolean getLog4jEnabled()
public void setPort(int i)
public int getPort()
public void setHttpPort(int i)
public int getHttpPort()
public void setHttpHost(java.lang.String host)
public java.lang.String getHttpHost()
public void setAuthMode(java.lang.String mode)
public java.lang.String getAuthMode()
public void setAuthUser(java.lang.String user)
public java.lang.String getAuthUser()
public void setAuthPassword(java.lang.String password)
public java.lang.String getAuthPassword()
public void setJrmpPort(int i)
public int getJrmpPort()
public void setJrmpHost(java.lang.String host)
public java.lang.String getJrmpHost()
public boolean getUseXSLTProcessor()
public void setUseXSLTProcessor(boolean uxsltp)
public void loadAdapter() throws java.io.IOException
java.io.IOException
public void destroy()
JkHandler
destroy
in class JkHandler
public void init() throws java.io.IOException
JkHandler
init
in class JkHandler
java.io.IOException
public void addHandlerCallback(JkHandler w)
JkHandler
addHandlerCallback
in class JkHandler
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |