GeeCON Prague 2014*
The moose likes EJB and other Java EE Technologies and the fly likes Generated Serial ID Vs. Default Serial ID in EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Generated Serial ID Vs. Default Serial ID in EJB" Watch "Generated Serial ID Vs. Default Serial ID in EJB" New topic
Author

Generated Serial ID Vs. Default Serial ID in EJB

Matheus Mendes
Ranch Hand

Joined: May 15, 2007
Posts: 66
Hi folks !

I have a noob doubt, or not so noob at all. I was thinking about the serialization and on my actual job I found a lot of classes that have the serial IDs generateds and other classes that have It with its default value, 1L.

The project is a group of 8 modules where one is the generic and have almost all EJBs, so thinking that we are working with EJBs and this system will be used in a cluster environment, what is the real matter with the serial IDs, I mean we have to use the generated or we could use whatever ?

I always had concern about the importance of the serial IDs and always thought that we must use the generated IDs, not the default.

Anyone could give me a good explanation or point some links and material for read about it ?

Thanks all!

The Death of one is a tragedy, but the Death of a million is just a statistic. Joseph Stalin

SCJP 6.0, SCJD
 
GeeCON Prague 2014
 
subject: Generated Serial ID Vs. Default Serial ID in EJB