Jungi's Blog...


« Export EJB client... | Main | Remember The Milk »
Wednesday Nov 08, 2006

tcpmon in NetBeans 5.5

Summary

tcpmon is a utility to monitor a TCP connection, authored by Inderjeet Singh and hosted on https://tcpmon.dev.java.net/ which runs in in standalone mode, as Java Web Start application and now also directly from NetBeans.

Installation of tcpmon module

Download org-netbeans-modules-tcpmon-library.nbm and org-netbeans-modules-tcpmon-integration.nbm from tcpmon project homepage and install them into NetBeans using Tools -> Update Center -> Install Manually Downloaded Modules.

Using tcpmon module

After installing tcpmon's modules into NetBeans 5.5 you can just run "Run with TCP Monitor" action and see the results. Sources of these modules are available in CVS on tcpmon.dev.java.net.

Where's Run with TCP Monitor action:
TCP Monitor Action


Sample Output:
TCP Monitor Output Window


Admin Interface:
TCP Monitor Admin Window


Few Notes:

  • This action is currently available in all project types where standalone JAX-WS 2.0 ws client can be (J2SE, Web, EJB and AppClient) and it works for clients/references created directly by the IDE, that means that if one manually changes eg. @WebServiceRef.wsdlLocation in some servlet then the action will not work correctly.
  • The "Run with TCP Monitor" action is not available for JAX-RPC ws clients yet, but you can create your own monitor (it can be created via Admin tab in TCP Monitor window) and using eg. ((javax.xml.rpc.Stub) <WS>Port)._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, "http://localhost:<newPort>/some/path/toWs?wsdl"); force the client to connect to the service through the monitor.
  • Sometimes it lasts a bit longer to display conversation between service and client in output tabs.
  • All ws clients in project are being monitored automatically now (possibility for improvement).

Comments:

Post a Comment:
Comments are closed for this entry.

Today's Page Hits: 13