Serialization 2005-09-20 - By Binil Das Christudas
Back Hi,
Your current deployment environment doesn't mandate your VOs (or TOs) to be Serializable but it is a matter of keeping the application "future ready" - I mean, perhaps if your application needs to talk to a different Virtual Machine for some parts of the functionality (Like a different Application Tier or a different DAO Tier - Leave behind, we surely discourage such practice), keeping the VOs Serializable will make it ready for such a scenario. Moreover, there is no overhead in marking a VO as Serializable in the runtime execution environment, unless we pass it across JVMs.
Regards
Binil http://www.infosys.com
-- --Original Message-- -- From: A mailing list for Java(tm) 2 Platform, Enterprise Edition [mailto:J2EE-INTEREST@(protected)] On Behalf Of SUBSCRIBE EJB-INTEREST anonymous Sent: Monday, September 19, 2005 11:34 PM To: J2EE-INTEREST@(protected) Subject: Serialization
Hi, I have a simple web application created using Struts .The struts action calsses call the DAOs to perform database operation. I get the form values from FormBean class (which extends from ActionForm) and create a VO instance(data transfer objects) ,set all the fields values and pass the VO as parameter to DAO.
My question is do I have to make my VOs serializable by implementing them from Serializable interface?I don't find any need as my action classes and DAOs will reside in the same war.Just want to make sure.
Thanks,
=========================================================================To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
**************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e -mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS***
==========================================================================To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
|
|