Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

why to use serializable with java bean

/*
One good reason, with respect to servlets, is that if you put 
serializable beans into your web server session, your web server can 
serialize them to disk if it's shutting down, and then deserialize them 
back into memory when it starts up. In this way, users wouldn't lose 
their sessions / logins when the server comes back up.
  
If there are any non-serializable beans in session, tomcat will fail to 
serialize sessions to disk.
I believe it's also necessary if you want to sync sessions between 
multiple servers in a cluster.
*/
Comment

PREVIOUS NEXT
Code Example
Java :: hibernate create query count return 
Java :: how to split a string in java 
Java :: read file in java 
Java :: sort string java 
Java :: isblank vs isempty 
Java :: spring security enable global cors 
Java :: java hashmap for loop 
Java :: create arraylist from array java 
Java :: json date format for localdate java 
Java :: how to make an activity default in android studio 
Java :: android.permission.INTERNET 
Java :: hanoi tower java 
Java :: check character is alphanumeric java 
Java :: java display two dimensional array 
Java :: how to add music to java 
Java :: space in java 
Java :: how to create an array list of ints in java 
Java :: java or symbol 
Java :: how to write a json file using java 
Java :: android push notification icon 
Java :: java launch exe 
Java :: pi in java 
Java :: execute code after delay java 
Java :: java convert LocalDateTime to long 
Java :: java 8 list stream delete by name 
Java :: java file system append new line 
Java :: java get folder content 
Java :: close a popup selenium python 
Java :: jframe change icon 
Java :: get average of all the array items android 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =