Class Hierarchy Previous Next Index
java.lang.Object | +----COM.cloudscape.core.WebLogicDriver
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.
public static final java.lang.String WEBLOGIC_PROTOCOL
public static final java.lang.String WEBLOGIC_SSL_PROTOCOL
public WebLogicDriver()
public boolean acceptsURL(java.lang.String url)
public java.sql.Connection connect(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
public int getMajorVersion()
public int getMinorVersion()
public boolean jdbcCompliant()
Class Hierarchy Previous Next Index