Apache JDO Project - PersistenceManager extends Serializable

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > October 2006 > PersistenceManager extends Serializable





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author PersistenceManager extends Serializable
Craig L Russell

2006-10-15, 7:11 pm

Michael Bouschen

2006-10-18, 7:11 pm

Hi Craig,

I think this is a good idea, since it would allow storing a
PersistenceManager as a session attribute (for whatever purpose). The
interesting question is whether any caches get serialized along with the
PersistenceManager? What happens with cached persistent instances of a
non-serializable class?

Regards Michael
> Javadogs,
>
> For easier development of web applications, it would be nice if
> PersistenceManager were Serializable. There is nothing stopping an
> implementation from declaring that their implementation extends
> Serializable, but the behavior is implementation-specific.
>
> For the maintenance release, I'd like to see if we can agree on the
> behavior of serializing a PersistenceManager if it does implement
> Serializable.
>
> Craig
>
> Craig Russell
>
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
>
> 408 276-5638 mailto:Craig.Russell@sun.com
>
> P.S. A good JDO? O, Gasp!
>
>



--
Michael Bouschen Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de http://www.tech.spree.de/
Tel.:++49/30/235 520-33 Buelowstr. 66
Fax.:++49/30/2175 2012 D-10783 Berlin


Geoff hendrey

2006-10-18, 7:11 pm

If the instances in cache are not serializable, then an exception gets thro=
wn at runtime when the instance in cache tries to serialize.=0A(of course a=
PM might be "super smart" and might know how to serialize a PersistanceCap=
able instanc. Heck, it already knows how to map a PC to a database).=0A:-)=
=0A-geoff=0A=0A----- Original Message ----=0AFrom: Michael Bouschen <mbo.te=
ch@spree.de>=0ATo: jdo-dev@db.apache.org=0ACc: JDO Expert Group <jdo-expert=
s-ext@sun.com>=0ASent: Wednesday, October 18, 2006 2:43:43 PM=0ASubject: Re=
: PersistenceManager extends Serializable=0A=0AHi Craig,=0A=0AI think this =
is a good idea, since it would allow storing a =0APersistenceManager as a s=
ession attribute (for whatever purpose). The =0Ainteresting question is whe=
ther any caches get serialized along with the =0APersistenceManager? What h=
appens with cached persistent instances of a =0Anon-serializable class?=0A=
=0ARegards Michael=0A> Javadogs,=0A>=0A> For easier development of web appl=
ications, it would be nice if =0A> PersistenceManager were Serializable. Th=
ere is nothing stopping an =0A> implementation from declaring that their im=
plementation extends =0A> Serializable, but the behavior is implementation-=
specific.=0A>=0A> For the maintenance release, I'd like to see if we can ag=
ree on the =0A> behavior of serializing a PersistenceManager if it does imp=
lement =0A> Serializable.=0A>=0A> Craig=0A>=0A> Craig Russell=0A>=0A> Archi=
tect, Sun Java Enterprise System http://java.sun.com/products/jdo=0A>=0A> 4=
08 276-5638 mailto:Craig.Russell@sun.com=0A>=0A> P.S. A good JDO? O, Gasp!=
=0A>=0A>=0A=0A=0A-- =0AMichael Bouschen Tech@Spree Engineering GmbH=
=0Amailto:mbo.tech@spree.de http://www.tech.spree.de/=0ATel.:++49/30/235=
520-33 Buelowstr. 66=0AFax.:++49/30/2175 2012 D-10783 Berlin=
=0A=0A=0A=0A

Craig L Russell

2006-10-19, 1:11 am

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com