-
1. Re: Blob storing problem with CMP
earlgrey Mar 30, 2002 2:36 PM (in response to ups2000)you might want to try this thread:
http://main.jboss.org/thread.jsp?forum=46&thread=10253
Lars -
2. Re: Blob storing problem with CMP
ups2000 Apr 1, 2002 2:35 PM (in response to ups2000)well, I read it.
I still didnt understood if it possible to use BLOB types with CMP2. If I am using CMP2, then I just have to specify sql-type in jbosscmp-jdbc.xml of specific cmp field. What else?
If I want t store long String as a Blob in Oracle, do I have to cast it to any specific type before call setter in etity bean?
BTW, the exception throwed after ejbCreate(..) before ejbPostCreate(..), before I call my setBlobField(Object someField).
Please any advise -
3. Re: Blob storing problem with CMP
ahmay Apr 10, 2002 9:56 PM (in response to ups2000)has this problem been resolved? I'm currently seeing the same problem.
I'm using jboss3.0.0beta2, oracle 9i, and oci8 driver.
thanks,
--may -
4. Re: Blob storing problem with CMP
earlgrey Apr 11, 2002 7:19 AM (in response to ups2000)> has this problem been resolved? I'm currently seeing
> the same problem.
>
************************
> well, I read it.
> I still didnt understood if it possible to use BLOB
> types with CMP2.
it certainly is. however, not with (non-spec-compliant) oracle jdbc driver (since it does not support getBinaryStream() for writing into blobs).
I now implemented blob-storing into oracle manually. But as Dain states, this is completely unreasonable.
> If I am using CMP2, then I just have
> to specify sql-type in jbosscmp-jdbc.xml of specific
> cmp field. What else?
1) do not use oracle
2) do it manually
3) use the patch mentioned in that other thread (you need to patch several jboss-classes, though)
> If I want t store long String as a Blob in Oracle, do
> I have to cast it to any specific type before call
> setter in etity bean?
you can explicitely declare different jdbc type mapping for the long string value.
lars -
5. Re: Blob storing problem with CMP
bleupen Jul 15, 2002 12:07 PM (in response to ups2000)ups2000,
have you figured out how to save BLOBS in Oracle 9i?
b