I have a service that collects data, can I save the data in case of reboot or any other action that will restart the service, and how can I do it?
Or use the serialization API
http://java.sun.com/developer/technicalArticles/Programming/serialization/