java - Configuring MongoDB datasource in JBoss 7 -


does know how can configure mongodb datasource in jboss 7?

i'm guessing can set mongo driver module in jboss in same way have done mysql driver, add dependency in manifest of ear. correct approach?

i couldn't find documentation on turns out pretty simple. download driver , set module in jboss this.

then add dependency meta-inf/manfest.mf file of ear. if you're using maven can add configuration section of ear plugin in pom.xml.

        <archive>             <manifestentries>                 <dependencies>com.mongodb</dependencies>             </manifestentries>         </archive> 

there doesn't seem need configure data source. i've done , can see in logs database accepting connections.


Comments

Popular posts from this blog

html - height not adding height to a empty div -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

python - Robot Framework location and name of keyword -