Bug 36137 - Slide fails when using Oracle and WebLogic with J2EE Store (OracleRDBMSAdapter)
Summary: Slide fails when using Oracle and WebLogic with J2EE Store (OracleRDBMSAdapter)
Status: NEW
Alias: None
Product: Slide
Classification: Unclassified
Component: Stores (show other bugs)
Version: 2.1
Hardware: All All
: P3 normal with 7 votes (vote)
Target Milestone: ---
Assignee: Slide Developer List
Depends on:
Reported: 2005-08-11 02:57 UTC by Paul King
Modified: 2005-08-12 02:15 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Paul King 2005-08-11 02:57:35 UTC
WebLogic in its wisdom wraps BLOBS from Oracle when accessing Oracle via
DataSources. OracleRDBMSAdapter hard codes in the Blob class "oracle.sql.BLOB"
but when accessing Blobs via a WebLogic DataSource, this needs to be

To work around this we just extended OracleRDBMSAdapter to create an
OracleWebLogicRDBMSAdapter which overrode the Constructor and set
the above class as the classname in the Class.forName() method.

A slightly better solution would be to allow the blob class to be fed in as a
parameter in Domain.xml. This would require setParameters() to be overriden in
OracleRDBMSAdapter. The default class could be set in the constructor and the
call to Class.forName could be delayed until the setParameters() call. If no
suitable "blobClass" parameter was set, it would default to the current code.
Comment 1 Paul King 2005-08-12 10:15:58 UTC
This appears to be an alternative solution to bug #30445 but that seems to have
been closed but never fixed. The suggestions below have the added advantage of
not requiring weblogic.jar to compile.