# MongoDb and Ignition: new module

**URL:** <https://forum.inductiveautomation.com/t/mongodb-and-ignition-new-module/15332>\
**Category:** Module Development\
**Created:** [September 13, 2017, 5:31pm UTC](https://forum.inductiveautomation.com/t/mongodb-and-ignition-new-module/15332 "2017-09-13T17:31:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kcabatic](https://avatars.discourse-cdn.com/v4/letter/k/b19c9b/32.png) [@kcabatic](https://forum.inductiveautomation.com/u/kcabatic)\
**Post date:** [September 13, 2017, 5:31pm UTC](https://forum.inductiveautomation.com/t/mongodb-and-ignition-new-module/15332/1 "2017-09-13T17:31:16Z")

</div>

Hi,

I am new to developing ignition modules (so please bear with my limited knowledge) and we are at a point in where we want to start developing our own modules. At the moment I am trying to re-create module that talks to MongoDB

I found the original instructions here: [Ignition Programming: MongoDB in Ignition](http://ignitionprogramming.blogspot.ca/2012/10/mongodb-in-ignition.html)

I also found: [Ignition Programming: Including Libraries in your Ignition Modules](http://ignitionprogramming.blogspot.ca/2017/05/including-libraries-in-your-ignition.html)

From my understanding I just have to add the MongoDB library to my pom.xml file.

It built successfully, signed, and was able to install on Ignition gateway

However, when trying to run script from example I get error:

TypeError: ‘javapackage’ object is not callable

Am I missing something else for my module? I have included the IntelliJ source code

Thanks

Ken

[mongo.zip](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/4c95a3d551456db7e176a62ecc1d9fa05734f18d.zip) (2.0 MB)

---

<div class="post-metadata">

**Author:** ![PerryAJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/perryaj/32/3281_2.png) [@PerryAJ](https://forum.inductiveautomation.com/u/PerryAJ)\
**Post date:** [September 22, 2017, 10:31pm UTC](https://forum.inductiveautomation.com/t/mongodb-and-ignition-new-module/15332/2 "2017-09-22T22:31:04Z")

</div>

Hi Ken,

Can you post the script you are trying to execute? Also, is it gateway or client?

I took a look at your module and it looked ok at a glance (jars in the modl, and entries in the module.xml). If it installed and was running ok, could just be an error in your script.

---

<div class="post-metadata">

**Author:** ![kcabatic](https://avatars.discourse-cdn.com/v4/letter/k/b19c9b/32.png) [@kcabatic](https://forum.inductiveautomation.com/u/kcabatic)\
**Post date:** [September 25, 2017, 3:53pm UTC](https://forum.inductiveautomation.com/t/mongodb-and-ignition-new-module/15332/3 "2017-09-25T15:53:51Z")

</div>

Hi Perry,

I actually got it working. I realized instead of loading

mongo-java-driver I was loading mongo-driver

After updating module, I was able to write and read from mongo database using scripting

Ken
