Yes, I use BLOBs and it works fine for me. Here's an example of where i
store a Properties objects in mySQL using CMP:
The Bean has:
public Properties props;
public Properties getProps() { return props; }
public void setProps(Properties props) {this.props = props; }
ejb-jar has:
<cmp-field>
<field-name>props</field-name>
</cmp-field>
jaws.xml has:
<cmp-field>
<field-name>props</field-name>
<column-name>props</column-name>
<jdbc-type>JAVA_OBJECT</jdbc-type>
<sql-type>BLOB</sql-type>
</cmp-field>
Hope you find it useful. If not maybe you can explain some more about the
failure you get.
Regards,
Per
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Bjoern Kahle
Sent: den 29 januari 2001 10:16
To: [EMAIL PROTECTED]
Subject: [jBoss-User] mysql - blob
Hello!
I'm using jBoss 2.0 Final in connection with MySQL. I would like to save a
serializable class as a blob field in my db-table.
In jaws.xml I saw that a blob field refers to java.lang.Object. So I created
a byte array of my serializable class and casted it to java.lang.Object in
my Bean. But this fails. All other fields like Strings, ints are working
correctly, but only my blob does not.
Anybody solved this problem before?
Regards,
Bjarne
--
Sent through GMX FreeMail - http://www.gmx.net
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]