I am quite new to Java and EJB and have been working through some
examples using an out-of-the-box jboss environment, with
hypersonic as the database. I get the CMP behavior I expect as
long as my entity beans have primitive typed or String typed data
members. I was under the impression that any type that implements
Serializable can be handled in the same way.

I've tried adding a HashTable and an array of Bytes to my bean. I
get no errors and there are generic fields created in the table
for them, but the fields are empty and the associated data
members are null when a bean is restored.  String and int members
of the same bean are fine.

I can convert these members back and forth to a String
object in ejbLoad() and ejbStore(), but I thought there is 
easy default behavior for any serializable object.  

Am I missing something about configuring CMP for these types, or
is BMP the only option? I haven't found anything in my books or
in the jBoss docs about this.  Could someone just point me at a
good source of info?

Thanks!

-- 
Skip Sopscak, Omaha, NE
alt email: [EMAIL PROTECTED]
http://mote.dhs.org/~dsopscak
Sent via PINE: Power Internet News & Email



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to