Skip to content

Instantly share code, notes, and snippets.

@mekya
Created August 4, 2017 13:39
Show Gist options
  • Save mekya/233cefd7ca1d12bc2761110e4a416b9a to your computer and use it in GitHub Desktop.
Save mekya/233cefd7ca1d12bc2761110e4a416b9a to your computer and use it in GitHub Desktop.
MongoDB and Rest Service Integration
<context:component-scan base-package="io.antmedia.rest" />
<bean id="db.datastore" class="io.antmedia.datastore.db.MongoStore">
<constructor-arg value="${webapp.dbName}" />
</bean>
<bean id="web.handler" class="Enter your web handler class that inherits from AntMediaApplicationAdapter" >
<property name="dataStore" ref="db.datastore" />
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment