Hello

I am trying to model a problem as  

ActorSystem1 in JVM1 with LocalActor
ActorSystem2 in JVM2 with RemoteActor

What I have now?

I start ActorSystem2 (which starts RemoteActor on 127.0.0.1:5150)
Then I start ActorSystem1 with LocalActor (which watches RemoteActor on 
127.0.0.1:5150)

*Requirements that do not match*
There are following things that I am not able to do as per my requirement

   1. When RemoteActor crashes, LocalActor is notified of it, but since it 
   does not supervises, it can not restart (what do I do?)
   2. Is there a way to start ActorSystem2(in JVM2) from ActorSystem1(in 
   JVM1).

I read following from docs 
<http://doc.akka.io/docs/akka/2.3.12/scala/remoting.html#Programmatic_Remote_Deployment>
 
but did not understand if I can deploy remote system as well

Programmatic Remote Deployment

To allow dynamically deployed systems, it is also possible to include 
deployment configuration in the Props which are used to create an actor: 
this information is the equivalent of a deployment section from the 
configuration file, and if both are given, the external configuration takes 
precedence.

With these imports:


   1. import akka.actor.{ Props, Deploy, Address, AddressFromURIString }
   2. import akka.remote.RemoteScope

and a remote address like this:


   1. val one = AddressFromURIString("akka.tcp://sys@host:1234")
   2. val two = Address("akka.tcp", "sys", "host", 1234) // this gives the same

you can advise the system to create a child on that remote node like so:


   1. val ref = system.actorOf(Props[SampleActor].
   2.   withDeploy(Deploy(scope = RemoteScope(address))))


Any ideas?

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to