I haven't tried it myself but I can't see why using a MongoDB JDBC driver (http://www.unityjdbc.com/mongojdbc/mongo_jdbc.php) would be different from any other jdbc datasource configuration.
What have you tried?
Thanks for answer!
Well, I'll explain a little about my scenario to help you to understand my situation.
I'm developing a poc to Infinispan 6 Server for my company, and in my test scenarios I want to compare the performance of storing cache data with mongoDB and postgreSQL.
To make it possible, I have to configure a mongoDB datasource, and then configure a custom-store to be used by infinispan since it don't support an noSQL persistence by default.
I hope have helped understanding.
I'll try your suggestion and then post here the result.