You can configure the data source by using the JBoss® Management Console or the Management CLI. Here, you use the Management Console.
Procedure
- Log in to the JBoss Management Console.
By default,
http://localhost:9990/console.
- In the Configuration tab, navigate to
Datasources.
- Select the XA DATASOURCES tab.
- Click Add, and specify the details for the new data source.
- Name:
- Name: RESDatasource
- JNDI: java:/jdbc/resdatasource
- JDBC Driver:
- Name: choose the driver
- XA Data Source Class: Select the XA data provider class.
- XA Properties (at least the connection URL):
- Name: DatabaseName Value: c:/odmres
- Connection Settings:
- Username: the user name for a new connection. Example: RES
- Password: the password for the new connection. Example: RES
- Security domain: the security domain that defines the
javax.security.auth.Subject parameter used to distinguish connections in the
pool. Example: <Empty>