Hi 
Just 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 
Repository 
what 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 appreciated 

Thanks



-- 
>>>>>>>>>>      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