Hi,<br>What is the common (or easy) way to integrate Mnesia in an OTP application?<br><br>I mean, my app rely on Mnesia.<br>Thus, when my app start, it check that mnesia is running and start it if necessary.<br>If my app started mnesia, I would like to stop mnesia when I stop my app ... but I cannot call mnesia:stop/0 while I am in myapp:stop/0 (it hangs, probably there is single application manager... or something like that).
<br><br>How do you guys solved this problem for your app?<br>Is it a real case or is it a bad idea to start mnesia from another app?<br><br>Is there a mnesia supervisor I could use to put mnesia inside my app supervision tree?
<br>Could I see Mnesia as a "included application"?<br><br>Thanks<br>