[Biojava-l] persistence - and the problems with it

Gerald Loeffler Gerald.Loeffler@vienna.at
Wed, 03 May 2000 23:48:09 +0200


Mark Schreiber wrote:
> 
...
> 
> I may have this completely wrong but isn't serialization important for
> piping objects between threads. (To be honest i've never tried piping an
> object not marked as serializable). If this is the case however it would
> be a good idea to mark anything that is likely to be thrown around by
> threads as serializable.

nope - serialization only comes into play when you want to export/import
an object from/to a JVM - either to/from another JVM (e.g. over the net
(sockets, RMI, HTTP, ...)) or to/from external storage (e.g. a file).

To be honest, you surely could pipe a serialised representation of an
object from one thread to another thread running within the same JVM -
but i don't see why you would want to do that, because you could easily
(and more efficiently) just pass an (immutable?) reference between
threads.

	cheers,
	gerald
> 
> Just my $NZ 0.02 (thats about $US 0.01).
> 
> Mark
> 
> >
> > _______________________________________________
> > Biojava-l mailing list  -  Biojava-l@biojava.org
> > http://biojava.org/mailman/listinfo/biojava-l
> >
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Mark Schreiber                  Ph: 64 3 4797875
> Rm 218                          email mark_s@sanger.otago.ac.nz
> Department of Biochemistry      email m.schreiber@clear.net.nz
> University of Otago
> PO Box 56
> Dunedin
> New Zealand
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> _______________________________________________
> Biojava-l mailing list  -  Biojava-l@biojava.org
> http://biojava.org/mailman/listinfo/biojava-l

-- 
   Gerald.Loeffler@vienna.at _________________ Software Architect
   http://www.imp.univie.ac.at ____ http://www.daemonstration.com
   OOA&D, Java, J2EE, JSP, Servlets, JavaBeans, ODBMS, RDBMS, XML