• Using the Tuxedo Scripting Tool describes how the scripting tool works, its modes of operation, and the basic steps for invoking it.
• Navigating MBeans describes how to retrieve Tuxedo domain configuration and run-time information, and edit configuration or custom MBeans.
• Managing the Server Life Cycle describes using TXST to start and stop Tuxedo Server instances and to monitor and manage the server life cycle.You can use the scripting tool online (connected to a running Tuxedo domain or a JMX agent embedded in the tlisten process). For information on TXST commands, see TXST Command and Variable Reference.Interactive mode, in which you enter a command and view the response at a command-line prompt, is useful for learning the tool, prototyping command syntax, and verifying configuration options before building a script. Using TXST interactively is particularly useful for getting immediate feedback after making a critical configuration change. The TXST scripting shell maintains a persistent connection with an instance of Tuxedo domain. Because a persistent connection is maintained throughout the user session, you can capture multiple steps that are performed against the instance. For more information, see Recording User Interactions.Scripts invoke a sequence of TXST commands without requiring your input, much like a shell script. Scripts contain TXST commands in a text file with a .py file extension, for example, filename.py. You use script files with three modes(Invoking TXST with the script, using Jython commands for running scripts and invoking the script with Ant build file). See Running Scripts.Listing 5‑1 Running TXST From a Java Class
2. Set TUXDIR environment variable as Tuxedo install directory and $TUXDIR/bin to the PATH environment variable.
3. Include $TUXDIR/jmx/jython-standalone.jar:$TUXDIR/jmx/tmjmx_tux.jar:$TUXDIR/jmx/tmjmx_metadata.jar in the CLASSPATH. Or you can invoke TXST just using txst.sh or txst.cmd which we provided.txst.sh is placed in $TUXDIR/bin. If you invoke TXST with txst.sh, you do not need to set up the CLASSPATH.If you added the related jar files into CLASSPATH as we mentioned before, you can enter the command: java oracle.tuxedo.TXST. For instance,
Note: If using dmib related commands, you should use the package $TUXDIR/udataobj/tuxj/com.bea.core.jatmi_2.0.0.0.jarListing 5‑2 Running script myscript.py
a. Set your environment in a command shell,which include TUXDIR,CLASSPATH,JAVA_HOME,ANT_HOME and so on.
Listing 5‑3 Changing the Current Management ObjectListing 5‑4 Navigating and Displaying Configuration MBeansTo stop a Tuxedo domain, you should invoke shutdownDomain() command. If domain is shutdown successfully, TXST will disconnect from domain and go back to connect JMX agent. See shutdownDomain.