Have you heard about Unsynchronized Persistence Contexts in JPA 2.1?
Well, don't worry, if you haven't. It is rarely discussed in the community. But Reza Rahman found a short video by the JPA 2.1 specification lead Linda DeMichiel about it:
Unsynchronized Persistence Contexts in JPA 2.1/Java EE 7.
Vlad Mihalcea published the next issue of his Hibernate Master Class series. This time he shows
how the PESSIMISTIC_READ and PESSIMISTIC_WRITE lock modes work.
Abhishek Gupta wrote a nice post about cache-control header in JAX-RS and how this can be simplified by using CDI producer methods to create an initialized CacheControl class. Always nice to see how these simple producer methods can provide huge benefits:
Simplifying JAX-RS caching with CDI.
Java EE 8
Weld is the CDI reference implementation and the development team is currently working on a series of CDI 2.0 prototype releases. The latest release is Weld 3.0.0.Alpha5 and was published a few days ago. Jozef Hartinger wrote a blog post to announce the release and describe its highlights:
Weld 3.0.0.Alpha5.
This and that
When we test a method, we often want to call it with different sets of parameters and make sure that we get the correct result. This can be done in lots of different ways. One of the better ways is to use
parameterized JUnit tests as RafaĆ Borowiec describes in his blog post.
Are you familiar with branching in git or just like to refresh your knowledge? Than have a look at
Learn Git Branchning. This site provides an interactive tutorial to explain the concepts behind branching in git.
for the next issue of
Java Weekly. You don't want to wait so long, than follow me on
twitter, where I share great resources during the week.
If you like to suggest a link for next weeks issue or something I can improve on, please write me a comment.