Add Mnesia Session to ejabberd

Hi,
I need to activate some queries on mnesia DB to produce daily reports currently ran on C#

I have come to mnesia_session package which give the ability to connect using CORBA to mnesia DB.

The problem is that ejabberd is not come with mnesia_session lib so I cannot activate it inside ejabberd.

Any Idea how can I ran queries on Mnesia DB?

I also thought about convert mnesia DB into MySQL/SQL Server DB and ran regular SQL queries from my C# Reporter program.

Thanks,
Sharon.

Three solutions

I see at least three solutions:

  • Get the full Erlang/OTP binaries your your system, and copy the modules you want to ejabberd install dir. Erlang binaries are .beam files. Maybe you can simply copy them.
  • Install mod_ctlextra. And add new commands that generate the reports you want. You can call this code from the command line. i don't know if this works on Windows.
  • Install mod_xmlrpc. And add new calls that generate the reports you want. You can send queries using XML-RPC.
Syndicate content