JBUILDER9 + WebLogic7 actual articles (JDBC 2)

zhaozj2021-02-16  54

JBUILDER9 WebLogic7 actual articles

Tool articles (configure JDBC 2)

Author: Kay Huang

E_mail: hk_sz@163.com

Configuring JDBC 2 in WebLogic 7

3.2 Using the JDATASTORE Database

JDATASTORE is a high-performance, small, pure Java implemented database provided by JBuilder. JDATASTORE's database file extension is JDS, in C: / JBuilder9 / Samples / JDATASTORE / DATASTORES (My JBuilder 9 Installation in the C Directory) Directory, you can find JDataStore database files that come with JBuilder, such as Employee.jds.

To use it in WebLogic, first add JDATASTORE drivers in WebLogic Server (My WebLogic installed in C) C: /bea/weblogic700/server/bin/startwls.cmd file C: / jbuilder9 /Lib/jdsRemote.jar, so add: in the ClassPath statement:

Set classpath =% java_hromE% / lib / Tools.jar;% WL_HOME% / server / lib / weblogic_sp.jar;% wl_home% / server / lib / weblogic.jar; c: /jbuilder9/lib/jdsremote.jar;% classpath %

3.2.1 Launching JDATASTORE SERVER

3.2.1.1 Start JBUILDER9

Start JBuilder: Start / Program / Borland JBuilder 9 Enterprise Trial / Borland JBuilder 9 Enterprise Trial

3.2.1.2 Click Tools / JDATASTORE Server in Menu Bar

3.2.2 Start WebLogic Server

Click Start / Programs / Bea WebLogic Platform 7.0 / User Projects / TestDomain / Start Server (TestDomain's Establishment Reference "JBuilder9 WebLogic7 Effective Articles (WebLogic)"

3.2.3 Start IE, enter http: // localhost: 7001 / console, Enter, and Enter username: and password:, here I have training, please remember, because This username and password will be used later. Click Sign IN to enter;

3.2.4 Click Connection Pools;

3.2.5 In the right form, click Configure a New JDBC Connection Pool to establish a connection pool, set in the General tab of the connection pool:

Name: JDATASTOREPOOL

URL: JDBC: Borland: dsremote: // localhost / c: /jbuilder9/samples/jdatastore/datastores/employee.jds

Driver classname: com.borland.datastore.jdbc.DataStoredriver

Properties: user = esample

Password = esample

Click Create to create;

Do the following settings in the Connections tab:

Initial Capacity: 5

Maximum Capacity: 10 Click Apply Application;

Set Employee in the Testing tab for the test table:

Test Table Name: Employee

Click Apply Application;

Set the Targets tab

Set Targets-Server, which is set to set the target server of this connection pool. Select a server from the Available list from the left side, select it to the chosen list on the right. Click Apply App.

3.2.6 Configuring Data Source MyDataSource

Click the JDBC / Data Source item in the domain tree on the left side of the management console, click Configure a New JDBC Data Source in the Window ...

Set the Configuration tab

Name: MyDataSource

JNDI NAME: MyDataSource

Pool name: JDATASTOREPOOL

Click Apply Application;

Set the Targets tab

Set Targets-Server, which is set to set the target server of this connection pool. Select a server from the Available list from the left side, select it to the chosen list on the right. Click Apply App.

3.2.7 Check if the configuration is successful

Restart WebLogic Server, if there is no error, prove that there is no problem with the configuration above. At this point, start JDATASTORE Server, you can see 5 connections to EMPLOYE.JDS through the monitor interface, which is established by the WebLogic Server connection pool (initial capacity set to 5).

Fourth, explanation

This document is adapted from the J2EE Application Development (WebLogic JBuilder) "Chapter 4," J2EE Application Development "," WebLogic Server ", which combines the online information I found and other data. My JBuilder9 and WebLogic7 are installed in the C drive, and the above parameters must be modified according to the actual configuration of your machine, otherwise it will not be able to run success.

My article is the first Auro Forum (www.newer.com.cn/bbs) and programmers forum (www.9cbs.net), welcome to reprint, but please keep the author and the name of the revision, thank you.

转载请注明原文地址:https://www.9cbs.com/read-28155.html

New Post(0)