The following describes the requirements for installing the JaxView agent stub for Apache Tomcat and Axis:
The following are the steps to set up the agent stub for Apache Axis running on Tomcat:
Note: If you are using Tomcat shipped with JaxView, you may need to copy the files from <jaxView_home>\tomcat\webapps\Hubble\WEB-INF\lib to the shared\lib directory also.
Replace jaxview_server with the address of the server where JaxView is running. If this is the Tomcat installation shipped with JaxView then use LocalHost.
<requestFlow> <handler name="MessageHandlerJaxRpc" type="java:org.apache.axis.handlers.JAXRPCHandler"> <parameter name="hubbleURL" value="http://<jaxview_server>:9090"/> <parameter name="className" value="com.hubble.clientservice.MessageHandlerJaxRpc"/> </handler> </requestFlow> <responseFlow> <handler name="MessageHandlerJaxRpc" type="java:org.apache.axis.handlers.JAXRPCHandler"> <parameter name="hubbleURL" value="http:/<jaxview_server>:9090"/> <parameter name="className" value="com.hubble.clientservice.MessageHandlerJaxRpc"/> </handler>
<parameter name="ProxyUsername" value="username"/> <parameter name="ProxyPassword" value="password"/>
<servlet>
<servlet-name>StubServlet</servlet-name>
<servlet-class>
com.hubble.clientservice.StubServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>StubServlet</servlet-name>
<url-pattern>/servlet/StubServlet</url-pattern>
</servlet-mapping>
These settings are needed to allow the agent to be configured remotely from JaxView.
The following are the steps to set up the agent stub for Tomcat:
Note: If you are using Tomcat shipped with JaxView, you may need to copy the files from <jaxView_home>\tomcat\webapps\Hubble\WEB-INF\lib to the shared\lib directory also.
For example, locate the jaxrpc-ri.xml file in the /web-inf/jaxrpc-ri.xml file. Insert the following in the jaxrpc-ri.xml file after <endpoint>
Replace jaxview_server with the address of the server where JaxView is running.
<handlerChains> <chain runAt="server"> <handler className="com.hubble.clientservice.MessageHandlerJaxRpc"> <property name="hubbleURL" value="http://<jaxview_server>:9090"/> </handler> </chain> </handlerChains>
<parameter name="ProxyUsername" value="username"/> <parameter name="ProxyPassword" value="password"/>
<servlet>
<servlet-name>StubServlet</servlet-name>
<servlet-class>
com.hubble.clientservice.StubServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>StubServlet</servlet-name>
<url-pattern>/servlet/StubServlet</url-pattern>
</servlet-mapping>
These settings are needed to allow the agent to be configured remotely from JaxView.