Play framework and OSGI

前端 未结 2 588
走了就别回头了
走了就别回头了 2021-02-13 13:13

Is it possible to integrate play framework with OSGI to create plugable components? Did someone try it?

2条回答
  •  梦如初夏
    2021-02-13 13:20

    If we're discussing Play 2 then it's definitely worth acknowledging that an important and integral part of Play now is Akka, which could be seen as an alternative to OSGi. Philosophically I think Akka has a lot in common with the core principles of Play and Scala (a functional, stateless, NIO approach), while OSGi is more aligned with the Java EE/Spring camp.

    That's not to say that Akka and OSGi are wholly mutually-exclusive: Akka's documentation suggests you can deploy Akka as an OSGi bundle and create some mutant app which has Akka actors firing up via an OSGi bundle.

    But to answer the question, no, Play doesn't do OSGi, but it very much does do Akka.

提交回复
热议问题