Hi Christophe!
With JBoss/JAWS you do not need to do any additional thing. Just some
things you should think of:
1) An object as a property will be serialized (-> must "implement"
serializable) and stored as a BLOB in the database.
2) Be careful when changing the implementation of the serialized
objects. The stored objects may not be deserializable again if the old
version is still in the DB. Check this first ! (Has anyone some
experience when this will be a problem ?)
3) If the object is another CMP bean JAWS will take care of it and only
store the handler (as a reference to the bean) and will not stored it as
a serialized object.
4) Check how 1) and 3) will work with other application server vendors.
I have no experience in this field. Anyone else ?
5) If your standard mapping for you database for JAWS comes with a
mapping for java.lang.Object you don't need any _special_ tags in the
XML file(s). Nevertheless you need to declare the object property as a
CMP field in ejb-jar.xml. Here EJX could be helpful for you (comes with
jBoss).
6) Any more questions ?
Tobias
Christophe Demez wrote:
>
> Hi,
>
> I have create a CMP Bean with several attributes.
>
> I have also create a custom class MyBoolean that must contains some boolean
> values, each boolean
> value in my Bean should be a MyBoolean !
>
> What do I need to do to support other type than the standard Java Type ?
>
> - I need to implement some interface
> - I need to rewrite some methods
> - DO I need to specivy this in some XML files
>
> (I currently use JBoss, but I need to use some others one later !!)
>
> Thanks a lot for your help
>
> Christophe Demez
> BIMACO
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]