[ Team LiB ] |
JTA Properties in the Administration ConsoleThe Administration Console is an excellent tool with which you can dynamically configure and monitor your transactions in real-time. In this section, we examine some of the more remarkable features of JTA management through the Administration Console. Transaction ConfigurationThe Administration Console enables you to define defaults for transaction timeouts, limits, and transaction manager behavior. The default behavior can be overridden by settings in the weblogic-ejb-jar.xml file or programmatically. Let's take a look at the JTA page in the Administration Console. If you haven't already done so, start WebLogic Server and log in to the Administration Console. Click on the JTA icon in the left panel to display the Transaction Management page of the Administration Console, as shown in Figure 9.1. It's here that you'll turn when you want to change transaction management settings. Figure 9.1. The JTA Management page.Let's take a look at each of the configurable fields and see what each one does:
Transaction MonitoringWebLogic provides real-time transaction monitoring through the Administration Console. To access the Transaction Monitoring page, perform the following steps:
The Transaction Monitoring page is a useful tool to see how your transactions are performing in the real world. It's also a good place to start debugging if there are problems. Let's take a look at some of the Transaction Monitoring fields and see what they mean:
You can also click on the links at the bottom of the page to monitor transactions by name or by resource, and inflight transactions (transactions that are in progress, but have not yet been committed). Transaction LoggingLog files are another useful tool to see how your transactions are performing, and also a good place to debug if there are problems. They are the physical representation of the internal state of the transaction manager. Deleting a log file can cause the transaction manager to fail. These files must be backed up like the rest of the configuration files. If you're using a replication tool to keep a backup computer up-to-date, log files must be replicated, too. In case of a server failure, if you want to use the backup server, the transaction logs are necessary for the normal processing to go on. Transaction logging is configured through the Administration Console. To access the JTA Log File Configuration page, do the following:
Your JTA transaction Log files are normally written out to the root directory of your server, such as C:/bea/user_projects/mydomain/myserver/myserver.0001.tlog The Transaction Log File Configuration page enables you to configure a different pathname and prefix for the server's transaction log file output. The pathname is not absolute, and assumes the path entered to be relative to the root of the directory of the machine on which the server is running. For instance, if you enter the prefix ./Sunday/jun3002, your JTA log files will create a subdirectory /Sunday, and add the jun3002 prefix string to the front of your JTA log files, to be created as C:/bea/user_projects/mydomain/myserver/Sunday/jun3002myserver.0000.tlog where myserver is the name of your domain server. This can help keep your JTA log files organized when debugging. |
[ Team LiB ] |