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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Note that if the server name is not unique, a qualifying -nodename parameter must be specified.
- 2.
For example, see the code\Chap_11\Tree4.py sample script.
- 3.
The complete script can be found in the code\Chap_22\ListPorts.py file.
- 4.
Remember that many of the scripts listed in the book are written to fit within the available horizontal space.
- 5.
Where TSL is an acronym for TreeSelectionListener.
- 6.
- 7.
Remember that old curse, “may you live in interesting times?” See http://en.wikipedia.org/wiki/May_you_live_in_interesting_times .
- 8.
For example, %WAS_HOME%\optionalLibraries\jython\Lib\xml\dom\minidom.py.
- 9.
I admit that I tend to use the J2EE Reference because WebSphere is an Application Server.
- 10.
- 11.
- 12.
Just because it is possible to write a one-line statement to perform this task does not mean that you should.
- 13.
Note that line 4 is too long to fit in the available space and is continued on the next line.
- 14.
For example, see http://www.w3schools.com/dtd/dtd_intro.asp .
- 15.
Note the use of capitalization to differentiate this method name from the import keyword.
- 16.
The complete source can be found in ...\code\Chap_22\WASports_11.py.
- 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.
Author information
Authors and Affiliations
Rights 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
DOI: https://doi.org/10.1007/978-1-4842-0817-5_22
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0818-2
Online ISBN: 978-1-4842-0817-5
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)