Skip to main content

WASports: A WebSphere Port Application

  • Chapter
  • First Online:
Swing for Jython
  • 892 Accesses

Abstract

One of the first topics that grabbed my imagination when I started thinking about graphical wsadmin scripts was the possibility of displaying and managing all of the TCP/IP port numbers being used by a WebSphere Application Server cell. Trying to use the administration console to view the port numbers being used by all of the servers in a cell can be frustrating and tedious. I wanted an iterative graphical application that can be used to quickly and easily understand which application servers exist in the cell, and use a tree structure to show the hierarchical relationship between these servers.  Additionally I wanted to be able to show the port numbers being used by each of these servers. This chapter shows how to build this application using the same type of iterative approach used previously.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Note that if the server name is not unique, a qualifying -nodename parameter must be specified.

  2. 2.

    For example, see the code\Chap_11\Tree4.py sample script.

  3. 3.

    The complete script can be found in the code\Chap_22\ListPorts.py file.

  4. 4.

    Remember that many of the scripts listed in the book are written to fit within the available horizontal space.

  5. 5.

    Where TSL is an acronym for TreeSelectionListener.

  6. 6.

    See https://www.python.org/dev/peps/pep-0257/ .

  7. 7.

    Remember that old curse, “may you live in interesting times?” See http://en.wikipedia.org/wiki/May_you_live_in_interesting_times .

  8. 8.

    For example, %WAS_HOME%\optionalLibraries\jython\Lib\xml\dom\minidom.py.

  9. 9.

    I admit that I tend to use the J2EE Reference because WebSphere is an Application Server.

  10. 10.

    See http://docs.oracle.com/javaee/1.4/tutorial/information/faq.html .

  11. 11.

    See http://docs.oracle.com/javaee/1.4/tutorial/doc/index.html or http://docs.oracle.com/javaee/1.4/tutorial/doc/J2EETutorial.pdf .

  12. 12.

    Just because it is possible to write a one-line statement to perform this task does not mean that you should.

  13. 13.

    Note that line 4 is too long to fit in the available space and is continued on the next line.

  14. 14.

    For example, see http://www.w3schools.com/dtd/dtd_intro.asp .

  15. 15.

    Note the use of capitalization to differentiate this method name from the import keyword.

  16. 16.

    The complete source can be found in ...\code\Chap_22\WASports_11.py.

  17. 17.

    Personal note: I learned the hard way that SwingWorker threads can fail silently (exceptions aren’t displayed), so it is good to consider using try/except blocks in these kinds of threads.

  18. 18.

    See http://docs.oracle.com/javase/tutorial/uiswing/components/table.html#sorting .

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Robert A. Gibson

About this chapter

Cite this chapter

Gibson, R.A. (2015). WASports: A WebSphere Port Application. In: Swing for Jython. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0817-5_22

Download citation

Publish with us

Policies and ethics