Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use tcpmon

 
nand rai
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a web application that is running on localhost 8443.

In my application I have a webform where the user enters the data , i store this data to database using a webservice ..


How to use the tcpmon in this situation.

 
Tim Moores
Bartender
Posts: 2790
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So the flow is: users enters data in form -> submits to web app -> calls web service -> web service stores data in DB?

Which part do you want to monitor: user -> web app, or web app -> web service?
 
nand rai
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to monitor the soap request from webapp --> to webservice.

servlet which uses the stub class to call the web service operation.

web service is hosted on a differnet server.

i want to capture the request when this operation happens.

 
Tim Moores
Bartender
Posts: 2790
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should be no problem as long as the web app is under your control; meaning - you can change the WS URL (and port) to point to your tcpmon instance, and from there to the actual WS.
 
nand rai
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Moores wrote:Should be no problem as long as the we
b app is under your control; meaning - you can change the WS URL (and port) to point to your tcpmon instance, and from there to the actual WS.


I am not following the word " you can change the WS URL (and port) to point to your tcpmon instance, and from there to the actual WS". How do i do that. your help is greatly appriciated.
 
Tim Moores
Bartender
Posts: 2790
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tcpmon runs on a machine with a particular IP address on a particular port - that's the IP address and port you need to use for the WS call. That way, the WC call gets sent to tcpmon instead of its actual target. And you need to set tcpmon to forward all incoming traffic to the actual IP address and port where the WS call was supposed to go.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic