<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    You're welcome. Just be careful with Ejabberd that external services
    do not work as intended (at least in the previous versions and I
    don't know if they manage to do something about). For that I used
    exmpp which works like a charm and it's very simple. In my project
    (something similar with your's) I used YAWS (Erlang/OTP web server)
    which allowed me exmpp instances without too much of a trouble (both
    being written in Erlang/OTP).<br>
    <br>
    Another option (even simpler) is CouchDB which works great for
    blogging, but it can simulate pretty easily a messenger. CouchDB is
    Erlang/OTP and JavaScript. The main disadvantage is that it doesn't
    follow any messaging standard.<br>
    <br>
    Good luck!<br>
    CGS<br>
    <br>
    <br>
    <br>
    On 11/02/2011 08:54 AM, Summer nguyen wrote:
    <blockquote
cite="mid:CAFQD8Xcxs74XjFmYku3XKRqoH5SsjfqPBHiXtKYzGGBAKxNpxg@mail.gmail.com"
      type="cite">Thank you very much,CGS <br>
      <br>
      <br>
      <div class="gmail_quote">On Wed, Nov 2, 2011 at 2:48 PM, CGS <span
          dir="ltr"><<a moz-do-not-send="true"
            href="mailto:cgsmcmlxxv@gmail.com">cgsmcmlxxv@gmail.com</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          Erlang/OTP solution: Ejabberd (XMPP) + JavaScript (see <a
            moz-do-not-send="true"
            href="http://xmpp.org/xmpp-software/libraries/"
            target="_blank">http://xmpp.org/xmpp-software/libraries/</a>
          for some examples).<br>
          <br>
          Cheers,<br>
          CGS
          <div>
            <div class="h5"><br>
              <br>
              <br>
              <br>
              <br>
              On 11/02/2011 08:00 AM, Ngoc Dao wrote:<br>
            </div>
          </div>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            <div>
              <div class="h5">
                Another good read:<br>
                <a moz-do-not-send="true"
href="http://www.metabrew.com/article/a-million-user-comet-application-with-mochiweb-part-1"
                  target="_blank">http://www.metabrew.com/article/a-million-user-comet-application-with-mochiweb-part-1</a><br>
                <br>
                Why the Swing Desktop Client does not connect to the
                Erlang Server?<br>
                Isn't this simpler?<br>
                All clients<-- Comet -->  Erlang frontend
                server<-- Thrift --><br>
                Processing backend Java server<br>
                <br>
                Ngoc<br>
                <br>
                <br>
                On Wed, Nov 2, 2011 at 12:58 PM, Summer nguyen<<a
                  moz-do-not-send="true"
                  href="mailto:summer0nguyen@gmail.com" target="_blank">summer0nguyen@gmail.com</a>>
                 wrote:<br>
              </div>
            </div>
            <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
              0.8ex; border-left: 1px solid rgb(204, 204, 204);
              padding-left: 1ex;">
              <div>
                <div class="h5">
                  Hello experts,<br>
                  My job is implementing a Chat System between a Web
                  user ( Comet client) and<br>
                  a Swing Desktop Client.<br>
                  After searching google, I found a topic of a Facebook
                  Engineer that make me<br>
                  choose Erlang:<br>
                  <a moz-do-not-send="true"
                    href="http://www.facebook.com/note.php?note_id=14218138919"
                    target="_blank">http://www.facebook.com/note.php?note_id=14218138919</a><br>
                  <br>
                  So I'm very new to Erlang and Thrift.<br>
                  After studying , Here is my solution:<br>
                  <br>
                  Comet Server ( using Erlang)<br>
                  <br>
                  Accept Comet Clients<br>
                  If the client is New, Call Processing Server  using
                  Thrift to generate an ID<br>
                  for him.<br>
                  Store Response Object in a Dict using the abobe ID<br>
                  Get Message from Comet Client and Call Processing
                  Server  using Thrift to<br>
                  send Message to Swing Desktop Client<br>
                  Open a Thrift Server Service (1) that listen from
                  Processing Server action:<br>
                  send message to ID xxx ( and then response to the
                  right comet Client)<br>
                  <br>
                  Processing Server ( Using Java)<br>
                  <br>
                  Accept Swing Desktop Client<br>
                  Open a Thrift Server Service (2) that listen from
                  Comet Server actions:<br>
                  generate ID, send message ( and then Send to Swing
                  Desktop Client)<br>
                  Receive message from Swing Desktop Client , then Call
                  Comet Server  using<br>
                  Thrift to send Message to Comet Client<br>
                  <br>
                  Please give me advice if Erlang have a better solution
                  for me.<br>
                  If you don't understand my idea, please tell me. My
                  english is not good.<br>
                  Thank you very much.<br>
                  <br>
                  --<br>
                  Name: Nguyen Huu Ha<br>
                  HCMC University of Technology<br>
                </div>
              </div>
              Faculty of  Computer Science&  Engineering
              <div class="im"><br>
                Tel: 01699987252<br>
                Email: <a moz-do-not-send="true"
                  href="mailto:summer0nguyen@gmail.com" target="_blank">summer0nguyen@gmail.com</a><br>
                Y!h: summer.inthesun<br>
                <br>
                <br>
                <br>
                _______________________________________________<br>
                erlang-questions mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:erlang-questions@erlang.org"
                  target="_blank">erlang-questions@erlang.org</a><br>
                <a moz-do-not-send="true"
                  href="http://erlang.org/mailman/listinfo/erlang-questions"
                  target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
                <br>
                <br>
              </div>
            </blockquote>
            <div class="im">
              _______________________________________________<br>
              erlang-questions mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:erlang-questions@erlang.org"
                target="_blank">erlang-questions@erlang.org</a><br>
              <a moz-do-not-send="true"
                href="http://erlang.org/mailman/listinfo/erlang-questions"
                target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
            </div>
          </blockquote>
          <div class="HOEnZb">
            <div class="h5">
              <br>
              _______________________________________________<br>
              erlang-questions mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:erlang-questions@erlang.org"
                target="_blank">erlang-questions@erlang.org</a><br>
              <a moz-do-not-send="true"
                href="http://erlang.org/mailman/listinfo/erlang-questions"
                target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
      -- <br>
      Name: Nguyen Huu Ha<br>
      HCMC University of Technology<br>
      Faculty of  Computer Science & Engineering<br>
      Tel: 01699987252<br>
      Email: <a moz-do-not-send="true"
        href="mailto:summer0nguyen@gmail.com" target="_blank">summer0nguyen@gmail.com</a><br>
      Y!h: summer.inthesun<br>
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>