You can create a typed.ActorSystem and from the guardian typed actor you
can create an untyped actor with ActorContext's actorOf. Then you have an
untyped actor and access to its system with context.system, which can be
used for Akka streams.

I don't see a way to do it the other way around, because as you say there
is no way to create the top level typed actor.

/Patrik

On Sat, Jul 25, 2015 at 2:37 AM, Jack Daniels <rus...@walkmind.com> wrote:

> How do I mix typed and untyped actors ? As I understood I have to specify
> main actor when I create instance of ActorSystem like this
>
>
> val system: akka.typed.ActorSystem[Start] = akka.typed.ActorSystem("main", 
> Props(mainBehaviour))
>
>
> On the other hand I use akka-http which is initialized like this
>
>
> implicit val system = ActorSystem()implicit val executor = 
> system.dispatcherimplicit val materializer = ActorMaterializer()// etc...
>
>
> I see that I can create typed system from untyped system by calling
>
>
> object ActorSystem {
>   def apply(untyped: akka.actor.ActorSystem): ActorSystem[Nothing] = new 
> Wrapper(untyped.asInstanceOf[ExtendedActorSystem])}
>
>
> So assuming I did
>
>
> val typeSystem = akka.typed.ActorSystem(untypedSystem)
>
>
> how do I create my first typed actor from typeSystem ? There is no typed
> ActorContext whose actorOf I can call.
>
>
> What general recommendations would you give for using Akka Typed with
> Akk-Http ?
>
>
> Thanks!
>
>
>
> http://stackoverflow.com/questions/31621607/how-do-i-mix-typed-and-untyped-actors
>
> --
> >>>>>>>>>> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      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+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
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