This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Seralization, Buffers and JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Seralization, Buffers and JDBC" Watch "Seralization, Buffers and JDBC" New topic
Author

Seralization, Buffers and JDBC

Al Wells
Ranch Hand

Joined: Apr 18, 2005
Posts: 87
Probably a stupid question but I am wondering if there is a case where a developer would need to use serialization or buffers when everything is stored to an RDBMS? Assuming that the program does have to output data-streams (stored in the DB) in ASCII, XML, PDF, etc, is there ever a reason to use these features even in those cases?

Also, while I find plenty of beginner level books on learning Java, is there one that is either beginner level or full of solid examples on working with databases (using Java as the logic layer)?
Chengwei Lee
Ranch Hand

Joined: Apr 02, 2004
Posts: 884
Serialization is very much in use in RMI. Whenever you need to pass an object over the wire, you need to make sure that the object is serializable, else it won't work. Yes, you can have your nice, expensive RDMS, but its useless if you cannot get the contents & send it over the wire to someone else, and thats where serialization can come into place.

As for buffering, you don't always output to the RDMS, sometimes you need a simple text file or XML file. Not all applications warrants a RDMS.


SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
K Riaz
Ranch Hand

Joined: Jan 08, 2005
Posts: 375
Originally posted by Chengwei Lee:
Serialization is very much in use in RMI. Whenever you need to pass an object over the wire, you need to make sure that the object is serializable, else it won't work.


I would like to ask why it needs to be serialized? Why must you implement the interface?
 
 
subject: Seralization, Buffers and JDBC
 
Similar Threads
How to Improve Windows Programming?
File copy: Java Program or OS Command which is faster
life time of objects
Regarding collection.
why will this block of code never work correctly: