See an example of a JavaEE application with Scala and TomEE
http://goo.gl/P6xV5
Shared publiclyView activity