title: Scala Akka TCP Actors
body: <p>I have a question about the <a href="http://doc.akka.io/docs/akka/snapshot/scala/io-tcp.html" rel="nofollow">Akka 2.4 TCP API</a>. </p>
  
  <p>I running a server and have 2 TCP servers in Akka TCP, one for incoming clients and one for my server's worker nodes (which are on other computers/IPs). I have one current connection to a client, and one connection to a worker node.</p>
  
  <p>If receiving a message from a client, I want to pass some of that information to the worker node, but my TCP Akka Actor representing the worker node connection doesn't seem to like when I, from the thread running the Client Akka Actor, send messages to the Akka Actor worker node.</p>
  
  <p>So, as an example, if the client sends a message to delete a file, and that partitions on that file is on a worker node, I want to send a TCP message to that worker node that it should delete the partitions.</p>
  
  <p>How can I from the client Actor send a message to the worker node Actor, that it should pass to the worker node server through TCP? When just doing the regular <code>workerActorRef ! msg</code> it doesn't receive it at all and no logging is shown.</p>
  
  <p>I hope this question wasn't unclear but essentially I want the <code>workerActorRef</code> to in some way be able to have some functionality similar to "send <em>this</em> through the TCP socket".</p>
  
  <p>Cheers,</p>
  
  <p>Johan</p>