Adobe COLDFUSION 9 Manual page 1126

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using Web Elements and External Objects
<cfcomponent displayName="testerdebug" hint="Test for underscores">
<cffunction access="remote" name="echo_me" output="false" returntype="string"
displayname="Echo Test" hint="Header test">
<cfargument name="in_here" required="true" type="string">
<cfset var soapreq = "">
<cfif IsSOAPRequest()>
<cfset soapreq = GetSOAPRequest()>
<cflog text="#soapreq#"
log="APPLICATION"
type="Information">
...
Using the TCP monitor
TCPMonitor is a swing-based application that lets you watch the request and response flow of HTTP traffic. You can
also watch the request and response flow of SOAP traffic. TCPMonitor replaces the Sniffer service formerly used in
Macromedia JRun.
Run TCPMonitor
On Windows and UNIX platforms, you can execute the TCPMonitor by launching the sniffer utility in the
jrun_root/bin directory.
The TCP Monitor main window appears.
TCPMonitor is a swing-based application that lets you watch the request and response flow of HTTP traffic.
However, you can also use it to watch the request and response flow of SOAP traffic.
To run TCPMonitor:
On Windows and UNIX platforms, you can execute the TCPMonitor by launching the sniffer utility in the
1
cf_root/bin (server configuration) or jrun_root/bin (multiserver configuration) directory.
The TCP Monitor main window appears.
Note: In the J2EE configuration, run the utility directly out of the JAR file by using the following command:
java -cp cf_webapp_root/WEB-INF/cfusion/lib/axis.jar java org.apache.axis.utils.tcpmon
[listening_port] [target_host] [target_port]
2
Enter the values in the main window as described in the following table:
Field
Listen Port#
Listener
Proxy
Description
Enter a local port number, such as 8123, to monitor for incoming connections. Instead of requesting
the usual port on which your server runs, you request this port. TCPMonitor intercepts the request
and forwards it to the Target Port.
Select Listener to use TCPMonitor as a sniffer service in JRun.
Select Proxy to enable proxy support for TCPMonitor.
Last updated 8/5/2010
1121

Advertisement

Table of Contents
loading

Table of Contents