• Post Reply Bookmark Topic Watch Topic
  • New Topic

Where Serialization is implemented  RSS feed

 
Rajendra Prakash
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am newbie to java. where serialization is implemented in web applicaion. I mean which file exactly
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you're asking.

What are you trying to do?
 
Rajendra Prakash
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read serialization is a process of storing the state of an object by converting in to byte stream. where we implement this in j2ee web application. I mean in action form or which class
 
Karthik Shiraly
Bartender
Posts: 1210
25
Android C++ Java Linux PHP Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Java serialization is implemented internally by the JRE itself. You don't need to do anything special, other than marking your application class as implementing Serializable interface. If at all you want to customize serialization of your class, add two methods - writeObject() and readObject() - to your class.

It's extremely rare for web apps to store data in java serialization format. More commonly, object fields are persisted into databases or to XMLs. There are different APIs for doing both - you don't need java serialization for them.
 
Manish Singh
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where serialization is implemented in web applicaion


I have never felt a need to implement serialization in the web app.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This probably isn't directly related to your question, but you may run into problems if you put objects into an HttpSession that are not Serializable. That's generally the most you need to know about serialization and web apps.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!