Established DB2 DataSource in was

Source: Internet
Author: User
Tags db2

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.