xPages: How to overcome an inability of sessionScope to not to be shared among databases?

Using xPages, the sessionScope or applicationScope are not shared among databases. How do you solve this situation in case(very common), where entire application consist of few databases? As I understand from xPages(JSF) point of view, each database is de-facto standalone JSF application.

Thanks,

David