This is how I define them in my files:

@weblogic.transaction-isolation TRANSACTION_READ_COMMITTED_FOR_UPDATE
@weblogic.dbms-column-type OracleClob

Hope this helps.

-- mike

On Jul 21, 2004, at 9:31 AM, [EMAIL PROTECTED] wrote:

OK, I am trying this, but neither the @weblogic.dbms-column-type or the
@weblogic.transaction-isolation have a parameter identified. What am I
suppose to use as ???="TRANSACTION_READ_COMMITTED_FOR_UPDATE"?



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mike
Moulton
Sent: Tuesday, July 20, 2004 5:26 PM
To: [EMAIL PROTECTED]
Subject: Re: [Xdoclet-user] FW:
http://e-docs.bea.com/wls/docs61/ejb/cmp.html#1061636


Look at the @weblogic.dbms-column-type tag in the docs. Note to get blob/clobs to work properly I had to set the transaction isolation to TRANSACTION_READ_COMMITTED_FOR_UPDATE for the specific bean. Look at the docs surround the @weblogic.transaction-isolation tag.

-- Mike

On Jul 20, 2004, at 5:00 PM, [EMAIL PROTECTED] wrote:

Does anyone know how I am going to set this up in XDoclet?

 -----Original Message-----
From:   Horvath, Tibor
Sent:   Tuesday, July 20, 2004 4:45 PM
To:     Horvath, Tibor; Knutson, Mick
Subject:        RE: http://e-docs.bea.com/wls/docs61/ejb/cmp.html#1061636



 -----Original Message-----
From:   Horvath, Tibor
Sent:   Tuesday, July 20, 2004 3:02 PM
To:     Knutson, Mick
Subject:        http://e-docs.bea.com/wls/docs61/ejb/cmp.html#1061636

BLOB and CLOB DBMS Column Support for the Oracle DBMS

WebLogic Server supports Oracle Binary Large Object (BLOB) and
Character
Large Object (CLOB) DBMS columns with EJB CMP. BLOBs and CLOBs are
data
types used for efficient storage and retrieval of large objects.
CLOBs are
string or char objects; BLOBs are binary or serializable objects such
as
pictures that translate into large byte arrays.

BLOBs and CLOBs map a string variable, a value of OracleBlob or
OracleClob, to a BLOB or CLOB column. WebLogic Server maps CLOBs only
to
the data type java.lang.string. At this time, no support is available
for
mapping char arrays to a CLOB column.

To enable BLOB/CLOB support:

        In the bean class, declare the variable.
        Edit the XML by declaring the dbms-column-type deployment descriptor
in the weblogic-cmp-rdbms jar.xml file.
        Create the BLOB or CLOB in the Oracle database.

Using BLOB or CLOB may slow performance because of the size of the
BLOB or
CLOB object.

Specifying a BLOB Using the Deployment Descriptor

The following XML code shows how to specify a BLOB object using the
dbms-column element in weblogic-cmp-rdbms-jar-xml file.

Figure 5-2 Specifying a BLOB object

        <field-map>
                <cmp-field>photo</cmp-field>
                <dbms-column>PICTURE</dbms-column>
                <dbms_column-type>OracleBlob</dbms-column-type>
        </field-map>

Controlling Serialization of cmp-fields Mapped to OracleBlobs

By default, when WebLogic Server writes and reads a cmp-field of type
byte[] that is mapped to an OracleBlob, it serializes and
deserializes the
field, respectively.
Mick,
This and the previous message came from searching the BEA web site.
Do you have this covered?
The clob(4000) seems to be a red herring.  All clobs show up as 4000
on
Oracle DESCRIBE command.
Tibor

If WebLogic Server reads a BLOB that was written directly to the
database
by another program, errors can result, because the container assumes
that
the data is serialized.

To specify that the data is not serialized, compile the EJB with this
flag:

        java -Dweblogic.byteArrayIsSerializedToOracleBlob=false
        weblogic.ejbc std_ejb.jar ejb.jar

Specifying a CLOB Using the Deployment Descriptors

The following XML code shows how to specify a CLOB object using the
dbms-column element in the weblogic-cmp-rdbms-jar-xml file.

Figure 5-3 Specifying a CLOB object

        <field-map>
                <cmp-field>description</cmp-field>
                <dbms-column>product_description</dbms-column>
                <dbms_column-type>OracleClob</dbms-column-type>
        </field-map>



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


:� mike moulton :� meltmedia :� 1429 north 1st street :� phoenix� az� 85004 : :� [EMAIL PROTECTED] :� mmoulton66 | aim :� 602.340.9440 | ofc :� 602.432.2568 | cel :� 602.340.1003 | fax : :� meltmedia.com



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idG21&alloc_id040&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user


:� mike moulton :� meltmedia :� 1429 north 1st street :� phoenix� az� 85004 : :� [EMAIL PROTECTED] :� mmoulton66 | aim :� 602.340.9440 | ofc :� 602.432.2568 | cel :� 602.340.1003 | fax : :� meltmedia.com



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to