https://github.com/akka/akka/tree/master/akka-osgi/src/main/scala/akka/osgi 
<https://github.com/akka/akka/tree/master/akka-osgi/src/main/scala/akka/osgi> 
shows how to instantiate an ActorSystem under OSGI, which is similar to Spring 
in that it can be considered a dependency injected framework with a lifecycle. 
You should be able to map this code with little difficulty.

Brian

> On Jun 9, 2015, at 2:50 PM, Maatary Okouya <[email protected]> wrote:
> 
> Hi, I do not wished to instantiate actor from the bean, but just an actor 
> system.
> 
> 
> The only solution i see so far is to wrap, the actor system in an 
> ActorSystemBen and provide a getActorsystem method to it. The point is, from 
> this bean i can call  ActorSystem()  apply method.
> 
> 
> Is there something more elegant or better ?
> 
> 
> Best,
> 
> M
> 
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/>
> >>>>>>>>>> Check the FAQ: 
> >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html 
> >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html>
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user 
> >>>>>>>>>> <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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/akka-user 
> <http://groups.google.com/group/akka-user>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

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

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to