× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks! I will keep this in mind.
-s

Sudha Ramanujan
SunGard Futures Systems
sramanujan@xxxxxxxxxxxxxxxxxx
(312) 577 6179
(312) 577 6101 - Fax

-----Original Message-----
From: Sergio Carabetta [mailto:Sergio.Carabetta@xxxxxxxxxxx] 
Sent: Monday, December 20, 2004 1:33 PM
To: java400-l@xxxxxxxxxxxx
Subject: Re: Beginner java question: Serializable

For God's sake, DON'T!!!

There are a few and specific cases where you can profit from Java's
built-in
serialization mechanism. For sending an object thru a socket connection,
or
writing to disk a parametrized "visual" bean (for use in a visual
builder
IDE, for example), but DO NOT make all your data classes Serializable by
default.

You don't want to fill your file system with "Customer" serialized
objects,
right? Use JDBC and/or EJBs for persisting business data. Use serialize
to
convert a particular object to a byte stream representation and
send/receive
upon a network connection, or saving to/retrieving from disk.

But I would recommend using an XML format representation instead of the
Java-propietary Serializable format. Could be a more flexible approach.

Hope this helps

Sergio

>> message: 5
>> date: Mon, 20 Dec 2004 10:03:34 -0600
>> from: <SRamanujan@xxxxxxxxxxxxxxxxxx>
>> subject: RE: Beginner java question: Serializable
>> 
>> >From what I understand, serializablity of a class is the ability to
>> convert an object to byte array and back to an object.  This 
>> is used to
>> write/read back from an external persistent file/database.  So by
>> default, all the data classes will be defined as 
>> serializable so that we
>> could use their methods to perform these actions.
>> 
>> Thanks,
>> Sudha
>> 
>> Sudha Ramanujan
>> SunGard Futures Systems
>> sramanujan@xxxxxxxxxxxxxxxxxx
>> (312) 577 6179
>> (312) 577 6101 - Fax
-- 
This is the Java Programming on and around the iSeries / AS400
(JAVA400-L) mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.