Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this chapter, you’ve seen how to leverage Lift’s integration of commonplace Java enterprise technologies—specifically the Java Persistence API. You saw how Lift provides some idiomatic abstractions upon JPA, specifically related to its entity manager and resolving the JPA sessions in the scope of any given request. Lift’s integration is designed to provide Scala-like interfaces for well-known Java technology, so for the most part JPA is left as is, in terms of querying and persistence semantics.
Finally, this chapter covered distribution and messaging. Lift comes with an integration module for AMQP, which is based upon the actor-programming model. This allows you to both publish and receive messages from the AMQP broker using the familiar actor abstraction. Additionally, we touched upon the Akka service framework and how you can make use of its robust distributed and concurrent programming abstractions to push dynamic, event-driven data into your application and right through to the browser.