Class Hierarchy    Previous  Next  Index

Class COM.cloudscape.core.WebLogicDriver

java.lang.Object
    |
    +----COM.cloudscape.core.WebLogicDriver

public class WebLogicDriver
extends java.lang.Object
implements java.sql.Driver
Copyright © 1998-2000, Informix Software, Inc. All rights reserved.

This driver connects to a remote COM.cloudscape.core.JDBCDriver via BEA WebLogic's jdbc driver. This class translates the short URL into the standard WebLogic URL. This driver recognizes two forms of the URL: jdbc:cloudcape:weblogic or jdbc:cloudscape:weblogic-ssl. The second URL is to get a secure access to WebLogic using SSL.

You can load both this driver and COM.cloudscape.core.JDBCDriver to talk to a cloudscape database server and an embedded Cloudscape database in the same JVM.

When the SSL connection is desired, weblogic uses t3s protocol rather than t3. ie if the URL is jdbc:cloudscape:weblogic, the protocol used would be t3. In case of jdbc:cloudscape:weblogic-ssl, the protocol used would be t3s. The standard weblogic URL is of the following form (all in 1 line with no space):
jdbc:weblogic:t3?weblogic.t3.serverURL=t3://hostname:portnum &weblogic.t3.driverClassName=COM.cloudscape.core.JDBCDriver &weblogic.t3.driverURL=jdbc:cloudscape:[dbname] [;cloudscapeAttributes]* [&weblogicAttributes]*
The short URL is of the form (all in one line with no space): jdbc:cloudscape:weblogic:[//hostname:portnum/][dbname] [;cloudscapeAttributes]*[&weblogicAttributes]*
where [x] means 0 or 1 and [x]* means 0 or many

For example
jdbc:cloudscape:weblogic://bigMachine:4444/c:foo/bar/jbmsDB;create=true &weblogic.t3.prefetch=0 is translated to
jdbc:weblogic:t3?weblogic.t3.serverURL=t3://bigMachine:4444 &weblogic.t3.driverClassName=COM.cloudscape.core.JDBCDriver &weblogic.t3.driverURL=jdbc:cloudscape:c:foo/bar/jbmsDB;create=true &weblogic.t3.prefetch=0
For an SSL connection, notice the change in serverURL jdbc:weblogic:t3?weblogic.t3.serverURL=t3s://bigMachine:4444 &weblogic.t3.driverClassName=COM.cloudscape.core.JDBCDriver &weblogic.t3.driverURL=jdbc:cloudscape:c:foo/bar/jbmsDB;create=true &weblogic.t3.prefetch=0

if //hostname:portnum/ is missing, it is translated to the default, which is //localhost:7001. If an SSL connection is desired, the default would be //localhost:7002. In other words,
jdbc:cloudsacpe:weblogic:/e:/foobar is translated to
jdbc:weblogic:t3?weblogic.t3.serverURL=t3://localhost:7001 &weblogic.t3.driverClassName=COM.cloudscape.core.JDBCDriver &weblogic.t3.driverURL=jdbc:cloudscape:/e:/foobar
Or it is translated to the following if SSL connection is used: jdbc:weblogic:t3?weblogic.t3.serverURL=t3s://localhost:7002 &weblogic.t3.driverClassName=COM.cloudscape.core.JDBCDriver &weblogic.t3.driverURL=jdbc:cloudscape:/e:/foobar


if //host:port/ is replaced by the word 'local:' it is treated as if it is missing. In other words,
jdbc:cloduscape:weblogic:local:c|abc/mydb is transated to
jdbc:weblogic:t3?weblogic.t3.serverURL=t3://localhost:7001 &weblogic.t3.driverClassName=COM.cloudscape.core.JDBCDriver &weblogic.t3.driverURL=jdbc:cloudscape:c|abc/mydb

This driver also supports Java2 by using WebLogic's JDBC 2 drivers when the JVM is Java 1.2 or later.


Variable Index

 o WEBLOGIC_PROTOCOL
 
 o WEBLOGIC_SSL_PROTOCOL
 

Constructor Index

 o WebLogicDriver()
 

Method Index

 o acceptsURL(String)
Accept anything that starts with jdbc:cloudscape:weblogic
 o connect(String, Properties)
Connect to the URL if possible
 o getMajorVersion()
Returns the driver's major version number.
 o getMinorVersion()
Returns the driver's minor version number.
 o getPropertyInfo(String, Properties)
Returns an array of DriverPropertyInfo objects describing possible properties.
 o jdbcCompliant()
Report whether the Driver is a genuine JDBC COMPLIANT (tm) driver.

Field Detail

 o WEBLOGIC_PROTOCOL
public static final java.lang.String WEBLOGIC_PROTOCOL
 o WEBLOGIC_SSL_PROTOCOL
public static final java.lang.String WEBLOGIC_SSL_PROTOCOL

Constructor Detail

 o WebLogicDriver
public WebLogicDriver()

Method Detail

 o acceptsURL
public boolean acceptsURL(java.lang.String url)
          Accept anything that starts with jdbc:cloudscape:weblogic
See Also:
java.sql.Driver
 o connect
public java.sql.Connection connect(java.lang.String url,
                          java.util.Properties info) throws java.sql.SQLException
          Connect to the URL if possible
Throws:
java.sql.SQLException - illegal url or problem with connectiong
See Also:
java.sql.Driver
 o getPropertyInfo
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
                                            java.util.Properties info) throws java.sql.SQLException
          Returns an array of DriverPropertyInfo objects describing possible properties.
Throws:
java.sql.SQLException - if a database-access error occurs.
See Also:
java.sql.Driver
 o getMajorVersion
public int getMajorVersion()
          Returns the driver's major version number.
See Also:
java.sql.Driver
 o getMinorVersion
public int getMinorVersion()
          Returns the driver's minor version number.
See Also:
java.sql.Driver
 o jdbcCompliant
public boolean jdbcCompliant()
          Report whether the Driver is a genuine JDBC COMPLIANT (tm) driver.
See Also:
java.sql.Driver

  Class Hierarchy    Previous  Next  Index