how to start remote actors in scala

I want to start remote actors from my local computer using scala . Can I just start running the actors on the remote computer without manually starting a server program of some kind in the remote computer. I have a master actor which has to start some remote actors. So any ideas on how I should do it? or can I do it without executing some kind of program on the remote computer to which i have to connect first in order to start new remote actors.


You would need to have a program running on the remote side that you would have to connect to. In that program have an actor that listens for messages from your local computer and creates other actors.

For example - local side:

remoteActor ! Props(new SomeActor)

Remote side:

def receive = {
  case p @ Props(_,_,_,_) => 
    val actor = context.actorOf(p)
    sender ! actor

Of course you can't; that'd be an enormous security hole!

See the akka documentation for what you need to run on the remote computer to start an akka service.

Need Your Help

Why can't I do <img src=“C:/localfile.jpg”>?

javascript html filesystems src

It works if the html file is local (on my C drive), but not if the html file is on a server and the image file is local. Why is that?

How to change the label of shared App bar in windows phone 8.1

c# windows-phone windows-phone-8.1

Im developing an windows phone 8.1 app. I have used shared app bar across the pages. At some point of time, I need to change the label or the icon of the global app bar. Is this possible?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.