# tMongoDBConfiguration

Stores connection information and credentials to be reused by other MongoDB components.

You configure the connection to a MongoDB database in tMongoDBConfiguration and configure the other MongoDB components to reuse this configuration. At runtime, the Spark executors read this configuration in order to connect to MongoDB.

### In this section

* [tMongoDBConfiguration properties for Apache Spark Batch](https://help.qlik.com/talend/en-US/components/8.0/mongodb/tmongodbconfiguration-properties-for-apache-spark-batch)
* [tMongoDBConfiguration properties for Apache Spark Streaming (deprecated)](https://help.qlik.com/talend/en-US/components/8.0/mongodb/tmongodbconfiguration-properties-for-apache-spark-streaming)

**Related concepts**

* [Reading and writing data in MongoDB using a Spark Streaming Job](https://help.qlik.com/talend/en-US/components/8.0/mongodb/tmongodblookupinput-tmongodbconfiguration-ts3configuration-reading-and-writing-data-in-mongodb-using-spark-streaming-job-spark-stream-component-in-this)
* [Writing and reading data from MongoDB using a Spark Batch Job](https://help.qlik.com/talend/en-US/components/8.0/mongodb/tmongodboutput-tmongodbinput-ts3configuration-writing-and-reading-data-from-mongodb-using-spark-batch-job-spark-batch-component-in-this)