Configuring the WebSphere Application Server data source
2016-12-16 13:54
323 查看
Configuring the WebSphere Application Server data source
Version WebSphere Application Server 7.0.0.x WebSphere Application Server 8.0.0.x Installed applications use data sources as resources to obtain connection to relational databases. To create these connections between an application and a relational database, WebSphere Application Server uses the driver implementation classes that are encapsulated by the JDBC provider, which is an object that represents vendor-specific JDBC driver classes to WebSphere Application Server. For access to a relational databases, applications use the JDBC drivers and data sources that you configure for WebSphere Application Server.Procedure
Start the WebSphere Application Server administrative console.Click Security -> Global security.
On the Configuration panel, expand Java Authentication and Authorization Service and click J2C authentication data.
Click New and enter the Alias, User ID and Password.
Click Ok.
On the WebSphere Application Server administrative console, expand Resources. Expand JDBC then click JDBC Providers.
In the Scope section, choose the Node level from the drop-down list.
Click New to create a new JDBC driver.
Select, in this order, the Database type, Provider type, Implementation type and Name. The Name automatically fills based on the implementation type you choose.
Click Next and configure the database class path. Click Next.
On the Summary page, click Finish.
Click Save to save your selections. The JDBC providers page then appears.
On the WebSphere Application Server administrative console, click Data sources.
Click New to create a new data source. Enter the Data source name and the JNDI name, and choose the authentication alias from the drop-down list in Component-managed authentication alias. The JNDI name should match the datasourceName value set in wimconfig.xml. By default, it is jdbc/wimDS.
Note: For Apache Derby v10.2 embedded databases, leave the Component-managed authentication alias field set to NONE.
Click Next.
Enter the Database name and deselect the checkbox, Use this data source in container managed persistence (CMP). Click Next.
On the Summary page, click Finish.
The Data sources page displays. Click Save, and then select the check box for the authentication alias previously created. Click Test Connection. The message should indicate that the connection is successful. Ignore any warnings, and then click Next.
Click Environment > WebSphere Variables.
In the Scope section, select Cell from the drop-down list.
Click New to create a variable.
In the Name field, enter VMM_JDBC_CLASSPATH.
In the Value field, enter the complete path to the JDBC driver library files separated by a colon (:) for UNIX or Linux or a semicolon (;) for Windows. For example, the path to Linux or UNIX is as follows: /opt/IBM/SQLLIB/java/db2jcc.jar:/opt/IBM/SQLLIB/java/db2jcc_license_cu.jar.
Click OK. Additionally, copy the specified JDBC driver library files in the ${WAS_HOME}/lib directory of each installed WebSphere Application Server node.
Save the configurations, and restart WebSphere Application Server.
相关文章推荐
- [转] --- Error: “A field or property with the name was not found on the selected data source” get only on server
- Using the latest Jython with a WebSphere Application Server wsadmin thin client
- Changing the default port in WebSphere Application Server
- Configuring the Object Data Source
- Unable to connect to data source (DSN: shangjihuiclient; Network Address: ; Port Number: 53397). Cannot connect to TimesTen Server. Verify that the TimesTen Server is running or verify that your TCP PORT is set correctly.
- Simplest way to serve static data from outside the application server in a Java web application
- JBoss in Action: Configuring the JBoss Application Server
- 2010年7月19日_周一_Using the Common Data Source API in a Web application
- Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path 解决(VS2010+IIS7.5)
- mysql 5.7.21 CMake Error: The source directory "/data/server/mysql" does not appear to contain CMak
- Get Database Connection from Web Application Server Data Source
- The data source does not support server-side data paging.
- Error: Application server fails to start with the following error WSNAT_CAT:1008: ERROR: Could not establish listening address o
- WebsphereApplicationServerNetworkDeployment V6.0的开发部署中的常见问题(初级)
- Always set the "applicationName" property when configuring ASP.NET 2.0 Membership and other Providers
- 利用 Application Server Toolkit 6.1 在 Websphere Application Server 6.1 上开发 SIP 应用
- Installing V6.0.2 WebSphere Application Server on Solaris systems
- Websphere jdbc connection pool make the server done
- Server-side ASP .NET Data Binding, Part 2: Customizing the DataGrid Control
- Configuring and Controlling the Management Server