www.it-ebooks.info
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
SALT – Service Arch<strong>it</strong>ecture Leveraging Tuxedo<br />
Mon<strong>it</strong>oring the SCA servers<br />
The command-line util<strong>it</strong>y scaadmin is to mon<strong>it</strong>or the SCA servers, and <strong>it</strong> shows<br />
various service-related <strong>info</strong>rmation and enables administrative tasks. You must set<br />
the TUXCONFIG environment variable accordingly as you run this util<strong>it</strong>y. Here we<br />
will discuss the various options (subcommands) for scaadmin, which can be used for<br />
mon<strong>it</strong>oring purposes:<br />
• default: This sets the machine name, group name, server ID, or server name<br />
to default.<br />
• reload: This dynamically reloads the SCA components hosted in a Tuxedo<br />
server. There are some lim<strong>it</strong>ations w<strong>it</strong>h some OSs for reloading.<br />
• printstats: This displays the list of services w<strong>it</strong>hin the Tuxedo<br />
environment, as well as the related methods, number of queries, and status.<br />
• verbose: This is used to turn on the verbose mode.<br />
• echo: This is used to echo the input on/off.<br />
• qu<strong>it</strong>: This is used to ex<strong>it</strong> a session.<br />
In this section, we have discussed most of the administrative tasks that should be<br />
performed in conjunction w<strong>it</strong>h tasks involved w<strong>it</strong>h the SALT configuration. We have<br />
also briefly brought up tuning issues and the various aspects of <strong>it</strong>.<br />
SALT programming<br />
SALT programming involves mainly two areas, namely web services programming<br />
and SCA programming, which are very much standard programing practices today.<br />
In this section, I will briefly introduce the programming paradigms for SALT, but I<br />
do not intend to go into the details, as we do want to cover how to do web service /<br />
SCA programing in this small book. Most of the SALT-related APIs are listed in the<br />
table in one of the previous sections of this chapter; we will be using them along w<strong>it</strong>h<br />
our web service / SCA programming knowledge.<br />
Web services programming<br />
As we have previously discussed, SALT provides bi-directional communication<br />
between the Tuxedo applications and web-service-based applications, and any<br />
existing Tuxedo services can be easily exposed as a web services w<strong>it</strong>hout much<br />
coding. SALT helps you create a WSDL file that describes the Tuxedo web service<br />
contract so that any standard web service client can call or access Tuxedo services.<br />
[ 120 ]<br />
<strong>www</strong>.<strong>it</strong>-<strong>ebooks</strong>.<strong>info</strong>