[ejabberd] Communicate with other modules
michael.weibel+xmpp at gmail.com
Mon Jan 30 12:49:39 MSK 2012
I'm implementing multiple modules which should use the same connection to a
mongodb (I'm using the official mongodb-erlang driver).
To achieve this, I'd like to create a module which just opens the
connection to the db and other modules could call this generic module.
How can I do this?
In the generic module I create a gen_server which opens the db connection
and now I tried from the other modules to call it with
But this doesn't work.
Do I need to create an application for that?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ejabberd