HiJust want to consult if this make sense .I have an actor that uses as a service to fetch data from the db .for accessing the DB we have a Java Spring project with hibernate and Jpa Repositorywhat is the best participate for testings :the actor should receive as a parameter the repository something like this :class FooService(invoicesRepo:InvoicesRepository,...more repositories goes here ... ) extends Actor ....and while testing to send mock[InvoicesRepository]two questions :is that make sense to use an actor to fetch/update data from the db (tried to find examples at typesafe activator templates but couldn't really find actors )?
if the answer is yes - is it a good practice to send the repository to actor ? or is it better use dependency injection
any examples will be appreciatedThanks
--
>>>>>>>>>> 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 akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/e75kStFFdVQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.