Erlang Mailing Lists

Author Message

<  RabbitMQ mailing list  ~  Scala remote actors [was Intro]

Guest
Posted: Tue Aug 07, 2007 5:10 am Reply with quote
Guest
Steve,

"Steve Jenson" <stevej@pobox.com> writes:

> I just added myself to the rabbitmq-discuss list. I've CC'd this
> discussion there (and removed all the original CC email addresses) so
> we can keep it flying!

Cheers.

I have just looked at API docs for Scala's actors. Looks like they have
moved on quite a bit since I last checked them out and have become much
more Erlang-like. Has anybody investigated hooking them into an Erlang
system directly, via Erlang's Jinterface?

This would only give you AMQP interop via a rather indirect route,
i.e. by invoking RabbitMQ's Erlang API, which Ben Hood has been working
on; see mailing list archives. So it is no substitute for an AMQP
binding along the lines I suggested. It would be an interesting project
though, providing seamless interop between Erlang processes and Scala
actors.


Matthias.

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post recived from mailinglist
Guest
Posted: Sun Aug 19, 2007 12:50 am Reply with quote
Guest
That's an interesting idea. So far, the Java libraries are working
fine for me, though. Speaking of, I wrote a quick hack to serialize
objects into a RabbitMQ cluster using Scala.

Client:
http://sieve.net/websvn/filedetails.php?repname=Steve%27s+Happy+Time+Petri+Dish&path=%2Fhacks%2FClient.scala

"Server":
http://sieve.net/websvn/filedetails.php?repname=Steve%27s+Happy+Time+Petri+Dish&path=%2Fhacks%2FServer.scala

And the class definition for Multiplication lies in here:
http://sieve.net/websvn/filedetails.php?repname=Steve%27s+Happy+Time+Petri+Dish&path=%2Fhacks%2FMain.scala

One thing that's not clear to me from the javadoc is how to keep my
client processing new messages coming into the queue instead of
exiting at the end. Am I supposed to wrap the call to
channel.basicConsume around a busy-loop or is there a better
mechanism?

Thanks,
Steve

On 8/6/07, Matthias Radestock <matthias@lshift.net> wrote:
> Steve,
>
> "Steve Jenson" <stevej@pobox.com> writes:
>
> > I just added myself to the rabbitmq-discuss list. I've CC'd this
> > discussion there (and removed all the original CC email addresses) so
> > we can keep it flying!
>
> Cheers.
>
> I have just looked at API docs for Scala's actors. Looks like they have
> moved on quite a bit since I last checked them out and have become much
> more Erlang-like. Has anybody investigated hooking them into an Erlang
> system directly, via Erlang's Jinterface?
>
> This would only give you AMQP interop via a rather indirect route,
> i.e. by invoking RabbitMQ's Erlang API, which Ben Hood has been working
> on; see mailing list archives. So it is no substitute for an AMQP
> binding along the lines I suggested. It would be an interesting project
> though, providing seamless interop between Erlang processes and Scala
> actors.
>
>
> Matthias.
>

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post recived from mailinglist
Guest
Posted: Sun Aug 19, 2007 1:35 am Reply with quote
Guest
Steve Jenson wrote:
> I wrote a quick hack to serialize objects into a RabbitMQ cluster using Scala.

That looks pretty neat.

> One thing that's not clear to me from the javadoc is how to keep my
> client processing new messages coming into the queue instead of
> exiting at the end. Am I supposed to wrap the call to
> channel.basicConsume around a busy-loop or is there a better
> mechanism?

Any mechanism that stops the program from terminating will do. So, for
example, you could spawn a thread and make it wait for something.


Matthias

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum