That sounds like it may have the potential to violate actor encapsulation—actors should only be created by the ActorSystem itself. It would depend on the exact implementation but that sounds worrisome to me.
Why not just use composition? Let your actors contain and manage business service objects. On Thursday, November 5, 2015 at 3:04:27 AM UTC-7, Chinmay Raval wrote: > > Hi, > > I am using Java 8 with Akka 2.3.12 for an enterprise application. > > To keep business logic and infrastructure separate, we are planning to use > java dynamic proxy that convert business services into akka actors in the > run time (with help of spring). > > I just want to confirm is this the right way to achieve separation or > there is some better way available? > > Thx, > Chinmay > -- >>>>>>>>>> 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.
