Hi, after searching axis mailing archives, I have not found any solution to
my problem. I have to post here.
I am trying to run tcpmon in my program ( org.apache.axis.utils.tcpmon tcp =
new org.apache.axis.utils.tcpmon( 8007, "localhost", 8080 ); ) rather than a
command line.

My problems are:
1. When I do request and response between service and client, a error
occurs.
The error is java.net.SocketException: Socket closed
                      at
java.net.SocketInputStream.read(SocketInputStream.java:128)
                      at
org.apache.axis.utils.tcpmon$SocketRR.run(tcpmon.java:459)
But tcp display area looks like fine to display the soap message.
What is the reason? How to solve it?

2. For getting tcpmon status, I add a WindowListener as below:
 
tcp.addWindowListener( new WindowAdapter( )
   {
      public void windowClosing( WindowEvent ev )
      {
         System.out.println( "tcp closing" );
      }
      public void windowClosed( WindowEvent ev )
      {
         System.out.println( "tcp closd" );
      }  
      public void windowActivated( WindowEvent ev )
      {
         System.out.println( "tcp activates" );
      }           
      public void windowDeactivated( WindowEvent ev )
      {
         System.out.println( "tcp deactivates" );
      }                 
      public void windowIconified( WindowEvent ev )
      {
         System.out.println( "tcp iconified" );
      }       
      public void windowDeiconified( WindowEvent ev )
      {
         System.out.println( "tcp deiconified" );
      }        
      public void windowOpened( WindowEvent ev )
      {
         System.out.println( "window opened" );
      }  
   }
);

When I do some operation to tcp(say, window open, window iconify, ...), it
looks the tcp window listener works. But when I close the tcp frame by
clicking "X", my all program exits as well. What is the reason?

3. How only to exit tcp by programming ?


Thanks a lot

Xiao

Reply via email to