Managed bean view scope

We tried to use the managed bean to load data from RDBMS in XPages, but the beans are not stable and can be lost after a slight time. Has anyone done something similar?