views:

1780

answers:

5

Are there any guides or tutorials which explain the possibility to use scala actors remotely? All I have found until now is one example (without comments) but that's hardly enough.

+1  A: 

None of which I am aware. It's pretty much a "hack your way through the jungle" approach. Judging from the API though, things should work pretty much the same as regular actors, for which there exist one or two tutorials (as well as a few books now).

If you do make use of remote actors, we (the community) would certainly welcome such a tutorial from an experienced user!

Daniel Spiewak
+3  A: 

Just be careful to send messages that are serializable (case classes and case objects are!) and be sure the opposite side can create the class. Watch out for custom ClassLoaders or missing JARs in you classpaths.

Szymon Jachim
+3  A: 

I have written an article with an example app to explain the use of Remote Actors a bit some time ago.

Well, it has no comments inside the code (maybe you even meant that article), but there are explanations below the code.

dmeister
There is another new example based on my code but simpler and it sets the classpath manually which avoids problems: http://youshottheinvisibleswordsman.co.uk/2009/04/01/remoteactor-in-scala/
dmeister
dmeister what happened to you blog?
Alexander Stolz
+1  A: 

Dirkmeisters Blog Post it moved, stop it.

Hexren
+1  A: 

The Akka framework has remote actors. The API is pretty similar to regular scala actors.

They provide some level of automatic clustering as well, but it's not complete.

Quartz