You can define the master index application to distribute transactions across applications, to distribute transactions only within the master index application, or to not use distributed transactions at all. You can define transactional support by using the Configuration Editor or by modifying the XML file directly. When you define transactional support for the master index, make sure to use the appropriate transaction properties for the database connection in the Sun Java System Admin Console.
In the Projects window, right-click the Configuration node in the project you want to modify, and then click Edit.
The Configuration Editor appears.
Click the Deployment tab.
In the Transaction Mode field, select LOCAL.
On the Configuration Editor toolbar, click Save.
To configure the database connection, launch the application service Admin Console, and do one of the following:
If the database connection is already defined, do the following on the Admin Console:
If the database connection is not already defined, follow the instructions provided in Defining the Database Connection Pools in Developing Sun Master Indexes . Select either javax.sql.DataSource or javax.sql.ConnectionPoolDataSource for the connection pool Resource Type.
In the Projects window, right-click the Configuration node in the project you want to modify, and then click Edit.
The Configuration Editor appears.
Click the Deployment tab.
In the Transaction Mode field, select XA (across applications).
On the Configuration Editor toolbar, click Save.
Launch the application server Admin Console (from NetBeans, click the Services tab, expand Servers, right-click the domain, and select View Admin Console).
To configure the database connection, launch the application service Admin Console, and do one of the following:
If the database connection is already defined, do the following on the Admin Console:
If the database connection is not already defined, follow the instructions provided in Defining the Database Connection Pools in Developing Sun Master Indexes . Select javax.sql.XADataSource for the Resource Type.
In the Projects window, right-click the Configuration node in the project you want to modify, and then click Edit.
The Configuration Editor appears.
Click the Deployment tab.
In the Transaction Mode field, select XA (within application only).
On the Configuration Editor toolbar, click Save.
To configure the database connection, launch the application server Admin Console and do one of the following:
If the database connection is already defined, do the following on the Admin Console:
If the database connection is not already defined, follow the instructions provided in Defining the Database Connection Pools in Developing Sun Master Indexes . Select javax.sql.XADataSource for the Resource Type.