In CMP, the output streams should be created for you.
The database config xml file should provide a mapping 
of a Serializable object to a BLOB/Image/etc.  If 
this is done, the object will be serialized before 
insertion automatically.

-tim


> -----Original Message-----
> From: Ron Siewert [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 29, 2000 2:31 PM
> To: Orion-Interest
> Subject: Re: How can I use an BLOB datatype
> 
> 
> I'm investigating that myself. I want to get it to work for 
> serializing
> an entity object's dependent objects to a database. From what 
> I can tell,
> you need to implement interface Serializable on the object(s) 
> you want to
> persist. In java.sql api docs, you'll see classes named
> ObjectOutputStream, PreparedStatement and an interface Blob. 
> Looking at
> these you'll see methods relating to writing out a serialized object,
> setting a Blob, getting a Blob, etc. I hope this helps...
> 
> Ron
> 
> Tobias Streckel wrote:
> 
> > Hello,
> >
> > I have a cmp entitybean. How can I implements an BLOB in 
> sourcecode??
> >
> > Thanks
> >
> > Tobi
> 
> 

Reply via email to