Romain Manni-Bucau explains in his recent blog post how to use CDI event observers to implement the behavior of @Startup without EJB:
CDI and @Startup: SOLVED!Another useful CDI example was posted by Chris Ritchie. He shows how to use CDI producer methods to read properties from a
.properties file and inject them into your beans:
Inject external properties using CDI, Java and WildFly.
Vlad Mihalcea had a detailed look at the CascadeType.LOCK and how the lock is propagated from the parent to the child entities:
Hibernate CascadeType.LOCK gotchas.
Slow database queries are often the cause for performance issues. Therefore a check for slow queries should always be the first step in the analytic process. How to configure Hibernate statistics to get the required information is described in:
How to activate Hibernate Statistics to analyze performance issues.
Java EE 8
There are already lots of great templating solutions available. Therefore the MVC JSR will not provide an additional one but provide a way to use the existing ones:
Templating in the MVC JSR. Ozark, the MVC reference implementation, already supports a list of different templating solutions.
It took some time, but now the JSR 375 (Java EE Security API) Expert Group is formed. David Delabassee gives a short overview about the EG members and how to follow the discussions:
Java EE Security API (JSR 375) Update.
The will be also two upcoming talks about the JSR at JavaLand and Devoxx France.
Security
Red Hat has decided to stop their work on the PicketLink project and merge it into Keycloak. You can read more about the reasons and the official announcement:
PicketLink and Keycloak projects are merging!If you want to give Keycload a try, you should have a look at
Setting up Keycloak on Wildfly. Sebastian Lorenz walks you through the setup process and provides a small sample application to test the configuration.
This and that
Petri Kainulainen wrote a new post in his Getting Started with Gradle series. This time he explains 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.