how to integrate mongo with a desktop application? Please help

906 views
Skip to first unread message

Sherry Ummen

unread,
Sep 13, 2014, 12:05:26 PM9/13/14
to mongod...@googlegroups.com
Hello,

We have a desktop application and we are testing mongodb as our database. But I want to know how to integrate mongodb with our desktop app so that we can ship it as one package. I see there is a way to embed mongodb but that makes the application to be open source or AGPL but that's not at all possible with our application.

So please propose some alternatives or solutions.

Matt Johnston

unread,
Sep 13, 2014, 12:27:21 PM9/13/14
to mongod...@googlegroups.com
Can you use a hosted mongodb and have user access sessions? They have drivers for all sorts of languages http://docs.mongodb.org/manual/applications/drivers/.

Sherry Ummen

unread,
Sep 13, 2014, 2:04:34 PM9/13/14
to mongod...@googlegroups.com
Cannot since the application is mostly used offline. Why did U ask that? Is it so mongodb not recommended to be used this way?

And we are using c# driver.

Matt Johnston

unread,
Sep 13, 2014, 3:14:56 PM9/13/14
to mongod...@googlegroups.com
I don't know if it is or not, but I have not used it this way before. If it is only data for the local application you might be able to bootstrap it on localhost, but that would involve the clients computer running a db, which is abnormal and intensive.

A

unread,
Sep 15, 2014, 3:14:44 PM9/15/14
to mongod...@googlegroups.com
You don't have to "install" mongo as a windows service to use it; put it in a folder within you application and when someone starts your app, start the mongod.exe (depends on your application needs)

Adnan Hafeezullah

unread,
Jul 23, 2015, 11:18:29 AM7/23/15
to Setti Mahesh, mongodb-user
All you need to do is execute a process commandline as such 
Process.start(c:\fullpath\mongod.exe --dbpath c:\pathOfDBFiles )

Run that on application start - check for connection before continuing


On Thu, Jul 23, 2015 at 11:03 AM, Setti Mahesh <sett...@gmail.com> wrote:
Are you sure, will mongod.exe work automatically? then how to call in node webkit application?
Reply all
Reply to author
Forward
0 new messages