<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3395" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=692054609-25092008><FONT face=Arial
color=#0000ff size=2>Thanks a lot guys - this has been a great
help.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=692054609-25092008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=692054609-25092008><FONT face=Arial
color=#0000ff size=2>I will certainly be looking into
Jabber!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=692054609-25092008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=692054609-25092008><FONT face=Arial
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=692054609-25092008><FONT face=Arial
color=#0000ff size=2>Dan</FONT></SPAN></DIV><!--eMS5.0.5.D22M.9Y.2008-->
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> emofine@gmail.com
[mailto:emofine@gmail.com] <B>On Behalf Of </B>Edwin Fine<BR><B>Sent:</B> 24
September 2008 18:14<BR><B>To:</B> RUBINO, Dana, GBM<BR><B>Cc:</B>
mazen@erlang-consulting.com; erlang-questions@erlang.org<BR><B>Subject:</B> Re:
[erlang-questions] Mnesia best practices<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>Dan,<BR><BR>I shamelessly use techniques that I learn from reading
the code for ejabberd. Even if to some learned Erlangistas it may not be the
<I>ne plus ultra</I> of Erlang code, to me it's got a lot of things in it to
which I say, "I didn't know you could do <I>that</I>!". Sometimes I struggle to
figure out how to do something, being fairly new to Erlang/OTP myself, and I
ask, WWJD (What Would Jabber Do?) and more often than not, there is an answer.
You could do a lot worse than taking a look at its organization and techniques.
It helps that it's a stable, real-world application that's in widespread
production.<BR><BR><A
href="http://www.ejabberd.im/">http://www.ejabberd.im/</A><BR><BR>Of course,
ejabberd is not the only interesting Erlang application out there from which to
cherry-pick idioms and techniques, it's just the first one I really looked into
deeply. There are many others that are well done or cleverly done (and sometimes
both), like RabbitMQ.<BR><BR>Hope this helps.<BR><BR>Regards,<BR>Edwin
Fine<BR><BR>
<DIV class=gmail_quote>On Wed, Sep 24, 2008 at 10:56 AM, <SPAN dir=ltr><<A
href="mailto:Dana.RUBINO@rbs.com">Dana.RUBINO@rbs.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi
Mazen,<BR><BR>Can you be more specific please? I have had a look at the OTP
Design principles i.e. release handling as suggested.<BR><BR>Although it
mentions target systems and building a release (.rel which looks good) it
doesn't specify how I might specify the working Mnesia instance which I also
want starting?<BR><BR>Any ideas?<BR><BR>Thanks,<BR>Dan<BR>
<DIV>
<DIV></DIV>
<DIV class=Wj3C7c><BR>-----Original Message-----<BR>From: Mazen Harake
[mailto:<A
href="mailto:mazen@erlang-consulting.com">mazen@erlang-consulting.com</A>]<BR>Sent:
24 September 2008 15:30<BR>To: RUBINO, Dana, GBM<BR>Cc: <A
href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</A><BR>Subject:
Re: [erlang-questions] Mnesia best practices<BR><BR>Use targets systems that
conform to OTP release handling and and this sort of things come to you for
free... you don't need to start Mnesia from your
application.<BR><BR>/Mazen<BR><BR><A
href="mailto:Dana.RUBINO@rbs.com">Dana.RUBINO@rbs.com</A> wrote:<BR>> Hi
all,<BR>><BR>> Anyone know the prescribed way for ensuring an Mnesia DB
is up and<BR>> running (if not then start it) when starting up an erlang
application?<BR>><BR>> I would ideally like a process which is in charge
of starting Mnesia<BR>> and monitoring it to ensure it has not gone
down?<BR>><BR>> Should I just use a supervisor for this?<BR>><BR>>
Thanks,<BR>> Dan<BR>><BR>>
**********************************************************************<BR>>
************* The Royal Bank of Scotland plc. Registered in Scotland<BR>>
No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.<BR>>
Authorised and regulated by the Financial Services Authority<BR>><BR>>
This e-mail message is confidential and for use by the addressee only.<BR>>
If the message is received by anyone other than the addressee, please<BR>>
return the message to the sender by replying to it and then delete the<BR>>
message from your computer. Internet e-mails are not necessarily<BR>>
secure. The Royal Bank of Scotland plc does not accept responsibility<BR>>
for changes made to this message after it was sent.<BR>><BR>> Whilst all
reasonable care has been taken to avoid the transmission of<BR>> viruses,
it is the responsibility of the recipient to ensure that the<BR>> onward
transmission, opening or use of this message and any<BR>> attachments will
not adversely affect its systems or data. No<BR>> responsibility is
accepted by The Royal Bank of Scotland plc in this<BR>> regard and the
recipient should carry out such virus and other checks<BR>> as it considers
appropriate.<BR>> Visit our websites at:<BR>> <A
href="http://www.rbs.com" target=_blank>www.rbs.com</A><BR>> <A
href="http://www.rbs.com/gbm" target=_blank>www.rbs.com/gbm</A><BR>> <A
href="http://www.rbsgc.com" target=_blank>www.rbsgc.com</A><BR>>
**********************************************************************<BR>>
*************<BR>><BR>>
----------------------------------------------------------------------<BR>>
--<BR>><BR>> _______________________________________________<BR>>
erlang-questions mailing list<BR>> <A
href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</A><BR>>
<A href="http://www.erlang.org/mailman/listinfo/erlang-questions"
target=_blank>http://www.erlang.org/mailman/listinfo/erlang-questions</A><BR><BR>_______________________________________________<BR>erlang-questions
mailing list<BR><A
href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</A><BR><A
href="http://www.erlang.org/mailman/listinfo/erlang-questions"
target=_blank>http://www.erlang.org/mailman/listinfo/erlang-questions</A><BR><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>