TAILIEUCHUNG - Bắt đầu với IBM Websphere smash - p 20

172 Chapter 8 Database Access Databases Supported in WebSphere sMash Before we begin, we need to cover the database vendors supported in WebSphere sMash. Vendors not listed will probably work as long as they support JDBC, and you can acquire the necessary driver files required to connect to the database server. The database vendors that are supported and known to work with WebSphere sMash are as follows: • Apache Derby • MySQL • IBM® DB2® • Informix • Microsoft® SQL Server® • Oracle Configuration Settings As with most things in WebSphere sMash, we need to start by configuring our application dependencies. To use database accesses in. | 172 Chapter 8 Database Access Databases Supported in WebSphere sMash Before we begin we need to cover the database vendors supported in WebSphere sMash. Vendors not listed will probably work as long as they support JDBC and you can acquire the necessary driver files required to connect to the database server. The database vendors that are supported and known to work with WebSphere sMash are as follows Apache Derby MySQL IBM DB2 Informix Microsoft SQL Server Oracle Configuration Settings As with most things in WebSphere sMash we need to start by configuring our application dependencies. To use database accesses in the application you need to first add the dependency as shown here dependency name org zero rev The next step is to define the database connections. There are only a couple items to be concerned about here such as defining the database driver and the connection details. If you are impatient skip ahead to the ZRM discussion because WebSphere sMash will work automatically with the embedded Apache Derby database with no configuration requirements. All database connection information is placed inside config db stanzas in the config file. For each database connection configuration there needs to be a named database section that is used to access the manager associated with that connection. The name should be symbolic of the data accessed more than any particular connection specifics. For the samples used in this chapter we use the name bookmark because we ll be accessing a database of URL references that may be shared among several users. Within the configuration stanza a driver name must be defined that indicates the actual JDBC class to be used to access the data. It is preferred to use a normal JDBC Type 4 driver. These are pure Java solutions and do not require any special operating system configuration. Just place the appropriate JAR file inside the environment CLASSPATH or preferably add it to the .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.