Hi again,
I misread something. You are still using one machine, but different jvms.
Then it is not a hostname issue.
Anyway, define
akka.remote.netty.tcp.hostname=127.0.0.1
in application.conf
Change startBackend as you described.
When you start worker or backend you should use
val joinAddress = Address("akka.tcp", "Workers", "127.0.0.1", 2551)
Cheers,
Patrik
On Wed, Apr 2, 2014 at 1:11 PM, Patrik Nordwall
<[email protected]>wrote:
> Hi Karen,
>
> Have you defined akka.remote.netty.tcp.hostname?
> 127.0.0.1 or localhost most be changed to real host names or ip addresses.
>
> /Patrik
>
>
> On Tue, Apr 1, 2014 at 10:09 PM, Karen <[email protected]> wrote:
>
>> Hi,
>>
>> I'm trying to get typesafe distributed workers example running in
>> separate jvms.
>>
>> I have the frontend, backend and workers running in separate jvms but the
>> communication between jvms is not working.
>>
>> What changes are required to the configuration of these 3 services?
>>
>> When running in the same app, Main.java starts the backend first, and
>> uses the "*realJoinAddress" *to start the other services.
>>
>> For the backend, I changed startBackend:
>>
>> Config conf = ConfigFactory.parseString("akka.cluster.roles=[" + role +
>> "] \n" +
>> * "akka.remote.netty.tcp.port=2551"*).
>> withFallback(ConfigFactory.load());
>>
>>
>> ActorSystem system = ActorSystem.create(systemName, conf);
>>
>> Not sure if that is correct? Also what changes to I make for starting
>> the frontend and the worker? And are changes are changes required in
>> application.conf ?
>>
>> Thanks for your help.
>>
>> --
>> >>>>>>>>>> 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.
>>
>
>
>
> --
>
> Patrik Nordwall
> Typesafe <http://typesafe.com/> - Reactive apps on the JVM
> Twitter: @patriknw
> JOIN US. REGISTER TODAY! <http://www.scaladays.org/>
> Scala <http://www.scaladays.org/>
> Days <http://www.scaladays.org/>
> June 16th-18th, <http://www.scaladays.org/>
> Berlin <http://www.scaladays.org/>
>
>
--
Patrik Nordwall
Typesafe <http://typesafe.com/> - Reactive apps on the JVM
Twitter: @patriknw
JOIN US. REGISTER TODAY! <http://www.scaladays.org/>
Scala <http://www.scaladays.org/>
Days <http://www.scaladays.org/>
June 16th-18th, <http://www.scaladays.org/>
Berlin <http://www.scaladays.org/>
--
>>>>>>>>>> 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.