Currently, the idempotent-receiver-router XML element allows only a fixed set of object stores to be configured: in-memory-store and simple-text-file-store. You cannot, however, configure a custom obejct store.
Allow the following config:
As workaround you can use the custom-inbound-router element and configure it though spring properties like this:
(DatabaseObjectStore is a plain spring:bean in the config)