天天看点

Websphere中为PostgreSQL和PPAS配JDBC数据源

1

创建JDBC提供程序

Websphere中为PostgreSQL和PPAS配JDBC数据源

Ppas的实现类名: com.edb.jdbc2.optional.ConnectionPool

Pg的实现类名: org.postgresql.jdbc2.optional.ConnectionPool

2

JDBC提供程序类路径

Websphere中为PostgreSQL和PPAS配JDBC数据源

Ppas类路径: C:\Program Files\IBM\WebSphere\AppServer\lib\ext\edb-jdbc14.jar

pg类路径: C:\Program Files\IBM\WebSphere\AppServer\lib\ext\ postgresql-9.2-1002.jdbc3.jar

3

Click 完成

Websphere中为PostgreSQL和PPAS配JDBC数据源

4

点击创建的 jdbc提供程序 ‘edb1 JDBC provider’.

Websphere中为PostgreSQL和PPAS配JDBC数据源

5

点击新建数据源

Websphere中为PostgreSQL和PPAS配JDBC数据源

6

配置数据源

Websphere中为PostgreSQL和PPAS配JDBC数据源

7

Help类名:

Websphere中为PostgreSQL和PPAS配JDBC数据源

8

点击完成

Websphere中为PostgreSQL和PPAS配JDBC数据源

9

配置 JAAS-J2C 认证数据,输入用户名和密码,点击完成

Websphere中为PostgreSQL和PPAS配JDBC数据源

ppas用户标识/密码: enterprisedb/password

pg用户标识/密码: postgres/password

10

配置定制属性,新建databaseName,serverName和portNumber,输入相应的数据库名字,服务器IP和数据库服务端口。

Websphere中为PostgreSQL和PPAS配JDBC数据源

11

在数据源上测试成功

Websphere中为PostgreSQL和PPAS配JDBC数据源