Using the queue module seems like the easiest to me.<br><br><a href="http://www.erlang.org/doc/man/queue.html">http://www.erlang.org/doc/man/queue.html</a><br><br>Spawn the JInterface nodes, push them into a queue as they come online with queue:in/2.  queue:out/1 when you need to dispatch to one, then push it back when its done.<br>
<br><div class="gmail_quote">On Sun, Feb 15, 2009 at 6:00 AM,  <span dir="ltr"><<a href="mailto:erlang-questions-request@erlang.org">erlang-questions-request@erlang.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Message: 1<br>
Date: Sat, 14 Feb 2009 22:27:10 +0200<br>
From: Dmitrii Dimandt <<a href="mailto:dmitriid@gmail.com">dmitriid@gmail.com</a>><br>
Subject: [erlang-questions] pool of jinterface noes<br>
To: <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
Message-ID: <<a href="mailto:22DEB843-A230-4FE2-AABA-77709C31A275@gmail.com">22DEB843-A230-4FE2-AABA-77709C31A275@gmail.com</a>><br>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes<br>
<br>
What's the simplest way to create a load-balancing pool of jinterface<br>
nodes.<br>
<br>
I realize simplest is not always the most efficient, so if anyone has<br>
an efficient implementation, I'd love to learn that as well :)<br>
</blockquote></div><br>