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
Post a Comment