1: Security-"Jaas configuration-" J2C Authentication data:
New-"Name (optional)
Database user Name
Password. Database Password
2: Application Server? Server1? Web container? Session management? Distributed environment setting data source Jndi Name: Jdbc/redrs (related to project) user identification: Database username password: database password
3: Resources-"JDBC Provider-" DB2 Universal jdbc Driver Provider
The class path. Find the path to the three jar packages and replace the variables.
Actual class Name: Com.ibm.db2.jcc.DB2ConnectionPoolDataSource
Point "Data source":-"new name: Free up
Jndi name: Consistent with Jndi name.
Container managed Authentication alias: 1 from the name
Component Managed authentication alias: 1 from the name
Mapping-Configuration alias: Defaultprincipalmapping.
Custom properties: DatabaseName: Database name (actual name, not at random)
ServerName: Database host IP (or host name)
PortNumber: Port number.
4: You can deploy the war package.
application/Enterprise Application create a new
After deployment, the corresponding JSP and other files are copied to the corresponding ear.
Established DB2 DataSource in was