web stats
Using SQLite, MongoDB or other DBs as internal DB - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 09-10-2014, 03:20 AM
gkittlaus gkittlaus is offline
OBX.3 Kenobi
Join Date: Jan 2012
Posts: 104
gkittlaus is on a distinguished road
Default Using SQLite, MongoDB or other DBs as internal DB


is there a way to get mirth installed on a MongoDB or SQLite?
I've seen a SQLite Driver/Option for the database reader/writer channels.
Is it possible to use it for mirth as well?

Simply editing the mirth.properties won't do it, right?
Something like:

# options: derby, mysql, postgres, oracle, sqlserver
#database = sqlite
database = mongodb

# examples:
#	Derby		jdbc:derby:${dir.appdata}/mirthdb;create=true
#	PostgreSQL	jdbc:postgresql://localhost:5432/mirthdb
# 	MySQL		jdbc:mysql://localhost:3306/mirthdb
#	Oracle		jdbc:oracle:thin:@localhost:1521:DB
#	SQLServer	jdbc:jtds:sqlserver://localhost:1433/mirthdb
database.url = jdbc:mongodb://username:password@localhost:27017/mirthdb
Thank you in advance and best regards!

Last edited by gkittlaus; 09-10-2014 at 03:25 AM.
Reply With Quote
Old 09-10-2014, 07:25 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road

Right, just editing mirth.properties won't make it work. You'll need to actually edit the source code and add XML query mappings for a new DB (like here and here) and possibly implement a specific DAO factory for it (here). There's a lot of work that goes into supporting a backend database. Not only writing all those queries, but also all the testing on different server/channel configurations to make sure there are no problems (like concurrency issues / deadlocks / etc.).

Also, SQLite might work since it's an actual RDBMS, but not MongoDB (which is NoSQL). Supporting a NoSQL internal database would require a lot more changes to the source code.
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.

- How do I foo?
- You just bar.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 12:38 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation