Well,
I think it is not spec compliant because this fetaure is not supported by
other appservers.  For them I will have to serialize my object to the
database.  An my original problem was that if the version (serialization
speaking) of this object change, I may have problem with old records in the
database.  Then if I implement a jboss specific feature and abuse of it, I
will have to find another trick if I want to deploy my application on
another ejb server.
That said, I have the trick for these other appserver(explained in last
mail) so if you think JBoss could gain by imlementing such a feature, I am
still ready to implement it.
In fact I have almost finish programming it.

BTW, I was also thinking about a XML-Jaws that could use JAXB to store
entity beans in XML databases.  Just an idea, I have not really think about
it.

Vincent.


> -----Message d'origine-----
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de
> David Jencks
> Envoyé : samedi 9 juin 2001 15:30
> À : [EMAIL PROTECTED]
> Objet : RE: [JBoss-dev] CMP fields XML Serialization
>
>
> Hi,
> I thought you had a great idea.  I'm very curious about why this was a bad
> idea and how it is not spec compliant.
>
> Thanks
> david jencks
>
> On 2001.06.09 03:52:17 -0400 Vincent Harcq wrote:
> > Forget it.
> > I find it more spec compliant to have a String cmp field containing my
> > XML
> > respresentation.
> > a getter method that do XML-->Object
> > a setter method that do Object-->XML
> >
> > Anyway, make the storage of cmp field to db field in Jaws is not
> > difficult
> > but finally I don't think it's a good idea.
> >
> > Vincent.
> > > -----Message d'origine-----
> > > De : [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]De la part de
> > > Vincent Harcq
> > > Envoyé : vendredi 8 juin 2001 17:47
> > > À : [EMAIL PROTECTED]
> > > Objet : RE: [JBoss-dev] CMP fields XML Serialization
> > >
> > >
> > > Hi,
> > > I will look at this idea, by having a new jdbc-type in jaws.xml for
> > which
> > > parameters can be set that tells Jaws how to insert/retrieve
> > > attribute/field.
> > > But I still want to keep it simple and keep the constraint one cmp
> > field /
> > > one database field.
> > > Regards.
> > > Vincent.
> > >
> > > > -----Message d'origine-----
> > > > De : [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED]]De la part de
> > Bill
> > > > Burke
> > > > Envoyé : vendredi 8 juin 2001 16:51
> > > > À : [EMAIL PROTECTED]
> > > > Objet : RE: [JBoss-dev] CMP fields XML Serialization
> > > >
> > > >
> > > > Can you plug-in how a CMP field is stored in the database?  If not,
> > this
> > > > would be the best first step.
> > > >
> > > > Bill
> > > >
> > > > > -----Original Message-----
> > > > > From: [EMAIL PROTECTED]
> > > > > [mailto:[EMAIL PROTECTED]]On Behalf Of
> > > > > Vincent Harcq
> > > > > Sent: Friday, June 08, 2001 3:23 AM
> > > > > To: Dev JBoss
> > > > > Subject: [JBoss-dev] CMP fields XML Serialization
> > > > >
> > > > >
> > > > > Hi,
> > > > > In CMP Entity beans, fields that can not be mapped automaticaly
> > > > > to primitive
> > > > > SQL type are
> > > > > serialized and saved as Object in the database.  One problem is
> > > > > then if you
> > > > > want to change the Object, you have to take care of Serialization
> > > > > versions,...
> > > > > everything is not possible here.  Another problem is if you
> > > want to give
> > > > > access
> > > > > to your db to a non Java world.
> > > > > One solution for that could be to XMLize the object to a
> > > VARCHAR/String
> > > > > format.
> > > > > The power on changes of the Object will be more powerfull by
> > > > > implementation
> > > > > of
> > > > > method like "importXML" and "exportXML".
> > > > >
> > > > > What do you think of a feature like that ?
> > > > >
> > > > > What I try to avoidby using that is BMP , TopLink/Castor,
> > XML/Object
> > > > > Databases.
> > > > >
> > > > > Vincent.
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Jboss-development mailing list
> > > > > [EMAIL PROTECTED]
> > > > > http://lists.sourceforge.net/lists/listinfo/jboss-development
> > > > >
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Jboss-development mailing list
> > > > [EMAIL PROTECTED]
> > > > http://lists.sourceforge.net/lists/listinfo/jboss-development
> > >
> > >
> > > _________________________________________________________
> > > Do You Yahoo!?
> > > Get your free @yahoo.com address at http://mail.yahoo.com
> > >
> > >
> > > _______________________________________________
> > > Jboss-development mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-development
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > _______________________________________________
> > Jboss-development mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-development
> >
>
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to