![]() ![]() ![]() ![]() ![]() ![]() |
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
At the core of WebLogic's pure Java technology is the integrated
WebLogicTM multitier
architecture, a key element in client-network
computing. Applications using WebLogic share access to a set of
cooperative server facilities, such as security, name and directory
services, application-wide logging, a graphical management console for
instrumentation and configuration, and scarce resource management.
Multiple WebLogic Servers can be configured as a WebLogic Cluster -- a
scalable, loosely-coupled cluster in one or more locations over a
multitier heterogeneous distributed environment -- for load balancing
and distributed processing.
WebLogic/JDBC provides JDBC
database connectivity services within WebLogic's multitier
WebLogic framework. With WebLogic JDBC, the WebLogic Server acts as a
distributed server managing database interaction between T3Clients and
one or more heterogeneous databases. You can use dbKona on top of
WebLogic JDBC to provide a set of database objects that are more
flexible and more abstract than the low-level JDBC interface.
Other WebLogic
services -- like a WebLogic Events for realtime event management and
notification, and WebLogic RMI and WebLogic Enterprise JavaBeans for
distributed computing -- also operate within the WebLogic Server.
The examples on this page show how WebLogic JDBC is used within the WebLogic Server
to create interactive applets with data from a remote DBMS. These
examples use Java JDK 1.1 applets that work with the Netscape 3.0 or
Microsoft IE 3.0.2 browsers, or later. Applet use in browsers early
than Netscape 3.0 or Microsoft IE 3.0.2 is not supported.
One of the objects that the T3Client can save in its Workspace is
a JDBC Connection. Once a connection has been created and named,
you can return to the same open connection to the DBMS over and
over again, without having to supply any further parameters for
access to the database.
This example shows how to create a reusable JDBC Connection, save it
into a T3Client's Workspace, and return to the Workspace and the
connection.
The registration in the properties file for this connection pool is:
The second property sets up an access control list for the connection pool. Note
that the T3Client we create in this example must be associated with a
T3User found in the access control list. But "guest" is included in
the list of allowable T3Users, and a T3Client created without a T3User
-- like the one in the sample code -- is automatically created as the
default T3User "guest."
In this example, we illustrate how you can use a startup class to
query a database and populate a dbKona DataSet that is saved into the
system workspace on the Weblogic Server. That allows one or more
T3Clients to log in and use the same dbKona DataSet over an extended
period of time, without having to query the DBMS again. None of the
clients needs to execute a query, or in fact have any information
about access to the DBMS.
First take a look at how the connection is made and the DataSet is
stored in the startup() method for this class. Then check how
the DataSet is fetched by a T3Client in the main() of this
class.
Copyright
Last updated
12/29/1998
|