CMP Entity beans do not support CLOB and BLOB fields...neither 1.1 or 2.0
EJB Specification. you will need to use a Bean Managed Entity Bean and use
the JDBC API with CLOB and BLOB. You save them and retrieve them as Streams
rather than objects.

-----Original Message-----
From: Metla, Suri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 9:48 AM
To: Orion-Interest
Subject: RE: big text in string as object over the network: very
strange?


Are there any Data types in Java to access the Long and CLOB columns of the
Oracle Database? The first bottleneck comes with the JDBC driver to map the
Database columns of these types (BLOBS, CLOBS).

Regards,
Suri

-----Original Message-----
From: Tobias Streckel [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 21, 2001 9:32 AM
To: Orion-Interest
Subject: Re: big text in string as object over the network: very strange?

Very strange????

Okay, now I want to create a entity bean which have as attribute a
object(this object have a only StringBuffer() object).

The create method of the entity will be access from a session bean(in the
same apps). The client have access on the session bean.

If the session bean call the create method of the entity and the StingBuffer
is small it will work.

If the StringBuffer() containts a String about 200 KB it throws the message

    javax.ejb.CreateException: Error creating EntityBean: E/A-Exception:
Connection
    reset by peer: socket write error

If the String is bigger than 600 kb I will get the Message:

com.evermind.server.rmi.RMIConnectionException
com.evermind.server.rmi.OrionRemoteException: Disconnected: Disconnected


WHAT HAPPENS´???
I HAVE NO ANSWER HOW I CAN GET IT TO WORK!

THANKS!!!!!

Tobi

-----Ursprüngliche Nachricht-----
Von: Tobias Streckel <[EMAIL PROTECTED]>
An: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Datum: Donnerstag, 21. Juni 2001 13:11
Betreff: Re: big text in string as object over the network:


>Hy,
>
>I want to save a file. In the database I have used a BLOB datatyp for the
>field. What kind of variable is used in the Entity Bean to save the File.
>
>Is it a java.io.File object?
>
>Thanks a lot
>
>by
>
>Tobi
>


Reply via email to