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 href="mailto:cgsmcmlxxv@gmail.com">cgsmcmlxxv@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Erlang/OTP solution: Ejabberd (XMPP) + JavaScript (see <a href="http://xmpp.org/xmpp-software/libraries/" target="_blank">http://xmpp.org/xmpp-software/<u></u>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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Another good read:<br>
<a href="http://www.metabrew.com/article/a-million-user-comet-application-with-mochiweb-part-1" target="_blank">http://www.metabrew.com/<u></u>article/a-million-user-comet-<u></u>application-with-mochiweb-<u></u>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 href="mailto:summer0nguyen@gmail.com" target="_blank">summer0nguyen@gmail.com</a><u></u>>  wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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 href="http://www.facebook.com/note.php?note_id=14218138919" target="_blank">http://www.facebook.com/note.<u></u>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 href="mailto:summer0nguyen@gmail.com" target="_blank">summer0nguyen@gmail.com</a><br>
Y!h: summer.inthesun<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
<br>
<br>
</div></blockquote><div class="im">
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>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 href="mailto:summer0nguyen@gmail.com" target="_blank">summer0nguyen@gmail.com</a><br>
Y!h: summer.inthesun<br><br><br>