title: Akka actor initializing a variable multiple times causing multiple rows
body: <p>I have an actor that initializes an object and then saves it to database</p>
  
  <pre><code>MyObject myObject = new MyObject();
  myObject.setProp(prop);
  dao.save(myObject);
  </code></pre>
  
  <p>In the database I see</p>
  
  <pre><code>MyObject table
  id prop 
  1  prop
  2  prop
  3  prop
  4  prop
  </code></pre>
  
  <p>I am trying to resolve why this is, nowhere else have I initialized this object out side this actor. Given the ids in the database column are differnt, the object does seem like initialized 4 times. Is this because the actor is initializing this 4 times? How should I manage this actor?></p>
  
  <p>I create the actor in the following way</p>
  
  <pre><code>    Props MyActorProps = Props.create(MyActor.class);
      getContext().actorOf(MyActorProps).tell(...mymessage);
  </code></pre>
  
  <p>Doesn't actorOf() ensure that there is just one instance of the actor?</p>