Thursday, October 20, 2016

Scheduling asynchronous task in a Play application

Scheduling of asynchronous task in Play should be done with Akka actors. Play documentation about scheduling is rather laconic. It gives just code fragments and does not elaborate.
This post goes a bit further and shows basic but full example of scheduling of a periodic asynchronous task in a Play.

Sunday, October 9, 2016

Akka messages scheduling with Lambda actors

The official Akka documentation shows messages scheduling examples, which are implemented with the UntypedActor and hard-coded scheduling interval. This post demonstrates implementation of scheduling with Lambda actor and flexible interval.

Getting started Akka

I started to learn Akka and came up against several tutorials and fragments of code. Neither of them give the complete example of a simple "HelloWorld" project with the recent Akka release. This post should fill the gap: it gives complete examples of several simple Akka applications. It is recommended to have some reading on Akka documentation site before going on.

Tuesday, October 4, 2016

Examples of JPA attribute converters

Custom attribute conversion allows specify mapping between database and Java representation of an attribute. This may be done by implementing the JPA interface AttributeConverter. This post shows two examples of conversion:
1. A boolean Java attribute into an integer in DB
2. A String Java attribute into encrypted String in DB

About the author

My Photo
I trust only simple code and believe that code should be handsome. This is not a matter of technology, but professional approach, consolidated after years of software development. I enjoy to cause things working and feel very happy, when I manage to solve a problem.
Back to Top