org.apache.jk.common
Class JkMX
- MBeanRegistration, NotificationListener
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.
ERROR , HANDLE_FLUSH , HANDLE_RECEIVE_PACKET , HANDLE_SEND_PACKET , HANDLE_THREAD_END , LAST , OK , domain , id , mserver , name , next , nextName , oname , properties , wEnv |
addHandlerCallback , createMsgContext , destroy , getDomain , getId , getName , getNext , getObjectName , getProperty , handleNotification , init , invoke , pause , postDeregister , postRegister , preDeregister , preRegister , resume , setId , setName , setNext , setNext , setProperty , setWorkerEnv |
addHandlerCallback
public void addHandlerCallback(JkHandler w)
Experimental, will be replaced. This allows handlers to be
notified when other handlers are added.
- addHandlerCallback in interface JkHandler
destroy
public void destroy()
Clean up and stop the handler
- destroy in interface JkHandler
getEnabled
public boolean getEnabled()
getHttpHost
public String getHttpHost()
getHttpPort
public int getHttpPort()
getJrmpHost
public String getJrmpHost()
getJrmpPort
public int getJrmpPort()
getPort
public int getPort()
getUseXSLTProcessor
public boolean getUseXSLTProcessor()
init
public void init()
throws IOException
Should register the request types it can handle,
same style as apache2.
- init in interface JkHandler
loadAdapter
public void loadAdapter()
throws IOException
Initialize the worker. After this call the worker will be
ready to accept new requests.
setEnabled
public void setEnabled(boolean b)
Enable the MX4J adapters (new way)
setHttpHost
public void setHttpHost(String host)
setHttpPort
public void setHttpPort(int i)
Enable the MX4J HTTP internal adapter
setJrmpHost
public void setJrmpHost(String host)
setJrmpPort
public void setJrmpPort(int i)
Enable the MX4J JRMP internal adapter
setPort
public void setPort(int i)
Enable the MX4J adapters (old way, compatible)
setUseXSLTProcessor
public void setUseXSLTProcessor(boolean uxsltp)
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.