Configuring the WebSphere Application Server data source

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

  1. Start the WebSphere Application Server administrative console.
  2. Click Security -> Global security.
  3. On the Configuration panel, expand Java Authentication and Authorization Service and click J2C authentication data.
  4. Click New and enter the Alias, User ID and Password.
  5. Click Ok.
  6. On the WebSphere Application Server administrative console, expand Resources. Expand JDBC then click JDBC Providers.
  7. In the Scope section, choose the Node level from the drop-down list.
  8. Click New to create a new JDBC driver.
  9. Select, in this order, the Database type, Provider type, Implementation type and Name. The Name automatically fills based on the implementation type you choose.
  10. Click Next and configure the database class path. Click Next.
  11. On the Summary page, click Finish.
  12. Click Save to save your selections. The JDBC providers page then appears.
  13. On the WebSphere Application Server administrative console, click Data sources.
  14. 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.

  15. Click Next.
  16. Enter the Database name and deselect the checkbox, Use this data source in container managed persistence (CMP). Click Next.
  17. On the Summary page, click Finish.
  18. 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.
  19. Click Environment > WebSphere Variables.
  20. In the Scope section, select Cell from the drop-down list.
  21. Click New to create a variable.
  22. In the Name field, enter VMM_JDBC_CLASSPATH.
  23. 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.
  24. Click OK. Additionally, copy the specified JDBC driver library files in the ${WAS_HOME}/lib directory of each installed WebSphere Application Server node.
  25. Save the configurations, and restart WebSphere Application Server.
时间: 2024-08-12 19:19:26

Configuring the WebSphere Application Server data source的相关文章

WebSphere Application Server Performance Tuning Toolkit

WebSphere? Application Server Performance Tuning Toolkit 是一款基于 Eclipse 的智能工具,旨在帮助用户通过使用数据收集.数据分析和统计数据推断技术来调优 WebSphere Application Server 的性能.其目的是帮助用户查找瓶颈,并适当调优应用程序. 背景知识 随着基于 Java EE 的企业级多层架构应用程序的大范围部署,出现得越来越多的性能问题,而且难以诊断.多层架构使得性能问题难以定位,而且要花费更多的时间和精

为WebSphere Application Server v8.5安装并配置JDK7

IBM WebSphere Application Server v8.5可以同时支持不同版本的JDK共存,并且可以通过命令设置概要文件所使用的JDK版本.WAS8.5默认安装JDK6,如果要使用JDK7的话需要手动安装JDK. 参考文档: http://www.ibm.com/developerworks/cn/java/j-lo-java7was8/ 该文档对JDK7的特性及为WAS8.5安装JDK7进行了详细的说明. 操作记录: 一.查看WAS已安装JDK 通过managesdk命令可以查

linux/win7下安装websphere application server

说明: 1.参考网址:http://www.ibm.com/developerworks/cn/aix/library/au-wasonlinux/ 2.在ibm官网上下载websphere application server需要申请账号 3.本文简单记录在win7 32位以及centos6.5 32位下安装websphere application server 8.5.5.5过程,如有需要,请另外参考其他的资料   win7 32位下安装: 1.先安装ibm installtion man

IBM WebSphere Application Server Network Deployment 8.5.0.X 安装配置及补丁升级指南之Windows系统篇

自从IBM WebSphere Application Server(简称WAS)8.0发布以来,这个版本以及更高版本的安装与之前的WAS 5.x.6.x.7.x版本(也称传统的WAS版本)直接安装的方式做了一些变动,都需要通过IBM Installation Manager(简称IIM)安装管理工具来进行. 为方便新用户在安装时更加容易地完成安装与配置,特书写此安装指南以备参考. 下载地址为:http://www.java2class.net/bbs/viewthread.php?tid=24

在Intellij IDEA里面配置Tomcat和Websphere Application Server

1, Tomcat 在Edit Configuration里面选择Tomcat Server --> Local, 配置如下 添加Artifact带有exploded的话就可以实时更新war包里面的类和配置文件,定义应用上下文/XXXX 添加jvm变量 2,Websphere Application Server 在Edit Configuration里面选择Websphere Server --> Local, 选择Profile 配置如下: 因为WAS只支持EAR包,EAR包会把整个项目的

Administration of Websphere Application Server

课程目标 ? 描述 WAS 相关概念 ? 安装和配置 WAS 及 IBM HTTP Server (IHS) ? 解释 Java 2 Platform, Enterprise Edition (J2EE)基本概念 ? 集成和安装server-side Java企业应用 ? 使用 WAS 管理工具对企业应用进行配置和管理 ? 对server-side 应用资源配置安全 ? 在群集环境下实现应用 ? 查看有关server和应用的性能信息 使用故障诊断工具和log文件进行故障排除 课程大纲 ? Web

C# 连接SQL Server数据库的几种方式--server+data source等方式

本文转载自忙碌的布谷鸟  如何使用Connection对象连接数据库? 对于不同的.NET数据提供者,ADO.NET采用不同的Connection对象连接数据库.这些Connection对象为我们屏蔽了具体的实现细节,并提供了一种统一的实现方法. Connection类有四种:SqlConnection,OleDbConnection,OdbcConnection和OracleConnection. SqlConnection类的对象连接SQL Server数据库:OracleConnectio

Eclipse 远程调试 WebSphere Application Server (WAS)

我们用 Eclipse 开发 Web 项目时,多会用某个插件(如 MyEclipse) 来对 Tomcat 中的应用进行单步调试.而要调试 WAS 下的应用,MyEclipse 也是可以的,但在 MyEclipse 中启动 WAS 比较慢,且需要在本地安装一个 WAS.再有便捷点的方法是用 WSAD (Websphere Studio Application Developer) 或它的升级版 RAD (Rational Application Developer),它们内置了对 WAS 很好的

[转] --- Error: “A field or property with the name was not found on the selected data source” get only on server

Error: “A field or property with the name was not found on the selected data source” get only on server up vote4down votefavorite2I publish my project without any warning on local iis and it works correctly (localhost/[myprojectName]). so, i upload t