days
-4
-1
hours
0
-4
minutes
-2
-6
seconds
0
-3
search
JAX Developers Puzzle deadline approaching: Play for a chance to win a complimentary JAX London 2018 ticket!
The latest in Java

Java Weekly 10/15: Java Threads, lock modes, JAX-RS caching and more…

Thorben Janssen
News image via Shutterstock

From Unsynchronized Persistence Contexts to using parameterized JUnit tests, the newest edition of Thorben Janssen’s Java Weekly brings us the latest links, debates and news from the Java world.

This post was originally published on thoughts-on-java.org, where Thorben Janssen blogs about Java and Java EE.

The Java world is evolving at a rapid pace and it can be challenging to keep track of it. Fortunately lots of great resources are created every week, explaining new features or looking at existing stuff from a different angle.

I am using the Java Weekly series to collect the most interesting links I found during the last week and present them to you all in one place. I hope you find it useful and that it makes it easier for you to keep up-to-date. If you like to suggest a resource or something I can improve on, please leave me a comment.

Java

Heinz Kabutz published the 226th issue of his Java Specialists’ Newsletter. This time he has a look at the creation of threads in Java and the role of the SecurityManager in this process. As always, a very interesting read for all advanced Java developers!

Java EE

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 Branching. This site provides an interactive tutorial to explain the concepts behind branching in git.

Author
Thorben Janssen
Thorben is a senior developer and regular Java blogger with more than 10 years of experience in Java EE development and architecture. During these years he has acted as developer, architect, project and technical lead to create high available, clustered mobile billing solutions and laboratory information management systems.

Leave a Reply

Be the First to Comment!

avatar
400
  Subscribe  
Notify of