Skip to content

kleysonr/pentaho-cda-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Configuring MongoDB connection as JNDI in Pentaho

  • tomcat/webapps/pentaho/META-INF/context.xml
<Resource name="mongodb/MongoClient"
       auth="Container"
       type="com.mongodb.MongoClient"
       closeMethod="close"
       factory="com.mongodb.client.jndi.MongoClientFactory"
       singleton="true"
       connectionString="mongodb://localhost"/>
  • tomcat/webapps/pentaho/WEB-INF/web.xml
<resource-ref>
   <res-ref-name>mongodb/MongoClient</res-ref-name>
   <res-auth>Container</res-auth>
   <res-type>com.mongodb.MongoClient</res-type>
</resource-ref>
  • Copy the pentaho-cda-mongodb-<version>.jar file into the tomcat/webapps/pentaho/WEB-INF/lib folder.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages