2 Replies Latest reply on Feb 17, 2014 9:21 AM by renato.ibanhez

    How to configure MongoDB Datasource

    renato.ibanhez

      Hi everyone!

       

      I am using Jboss AS 7.1 and need to configure a MongoDB connection. I have searched for any information about but I didn't find nothing.

      Is there anybody who passed through this situation?

      Is it possible to configure a MongoDB datasource in jboss server? If yes, could you send an example of this configuration present in standalone.xml?

       

      Thanks for any help!

        • 1. Re: How to configure MongoDB Datasource
          welle

          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?

          • 2. Re: How to configure MongoDB Datasource
            renato.ibanhez

            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.