Services can often be optimized with asynchronous processing even without changing their behavior towards the outside world. The reason why some services aren’t efficient is that they need to wait for other services to provide a result to continue further. Let’s look how to call external REST services without waiting for them and also do multiple parallel calls independently and combine their results later with a reactive pipeline in Java EE 8.

(more…)

Answering Stackoverflow questions provides a great feedback for finding out gaps in the official documentation of my favourite opensource tools. One of the questions which I answered here was how to change Payara Server master password in docker container. Obviously, in a standard server installation, this is simple – just use the  asadmin change-master-password  command, then type the old and new password in to the console and it’s done. Not in docker though, where the configuration has to be automated by a script. The same applies to all infrastructure-as-a-code solutions like Chef or Puppet. So I had to dig deeper into the documentation and experiment a bit. (more…)

As a Java EE developer, I sometimes envy how fast it’s possible to see the result of a code change in a running application with interpreted languages like PHP or JavaScript. With Java, it’s always necessary to rebuild the source code in a bytecode, which can be then safely updated only by restarting the whole application. And all developers know that restoring the desired state of the application after a fresh restart takes time and is tedious.

Many developers know that JRebel can help a lot with updating the code on the fly. There’s been a lot of effort put into it to support all sorts of code and resource changes and refresh them with virtually any Java framework used by the application. But the downside is that it’s pretty expensive for a casual developer, doing just some hacking on his/her own or working on a non-commercial project. I have some experience with JRebel and I liked it a lot, but I was using it on a commercial project where I didn’t pay for the license. A while ago I’ve come across an opensource alternative called HotswapAgent, which has worked very well for me for my personal Java EE projects. I’m going to write up how I got it running in my IDE and my Java EE server of choice – Payara Server. (more…)

Last week, Oracle announced their intentions to open Java EE and transfer it to an open source foundation to continue its development in a more open way. I’ve been involved in some email discussions (here and here) and in a conference call organized by Oracle and I want to summarize what I know and expect in the future. I’m also a MicroProfile project member, so I’ll comment on its relation and future benefits to Java EE. (more…)

As a public presenter, I always wonder what kind of presentation should I submit for tech conferences. Knowing what people want to hear about is always important to submit a good talk, and to give a good presentation once the talk is accepted by the conference. Here are some insights which I’ve collected from public feedback on conferences in 2016, and also a summary of my impressions and most common topics I’ve seen. (more…)

A singleton pattern is probably the simplest well-known design pattern, but still people often implement it incorrectly in Java. (more…)

Well, not yet…but they announced to shutdown java.net and kenai by May 2017. I have been interviewed about this for an ADTmag article The ‘Sunsetting’ of Kenai and java.net

As Oracle provided little information to what will happen to critical projects that are already hosted on java.net, most of what was written in the article is still valid. Therefore I’m reposting my comments here again.

(more…)

In June, I had a public presentation at a Java User Group in Prague. It was the first time I gave my new talk about building reactive applications with Java EE. And as a bonus, I wanted to introduce Payara project and how it relates to the GlassFish project. (more…)

In March, I’ve started working for Payara and I’ve definitely enjoyed it since then. It’s been very refreshing. I really love all the new experience, including

  • the startup-like company culture (have a look at the courageous company web site)
  • being part of the Payara open-source project and community
  • helping customers directly instead of programming in an IT department several layers below
  • writing technical blogs and cooperating with our innovative marketing department
  • being the face of the Payara project and evangelist in Java EE community
  • and all this working remotely from home

I could write several posts about all this new experience. Hopefully another time. But now, I will just share the blog posts and screen casts about Payara Server features that I’ve authored and co-authored. (more…)

Anton Smutný is a software engineering manager at Muehlbauer Group, an international industrial company specializing in wide array of technologies. At the technology center located in Nitra, Slovakia, they are building a new agile Java team to fulfil growing internal needs for innovation and automation. Their team approached me to guide them in adopting new features and best practices in Java EE 7 effectively.

Anton, what were the reasons for choosing Java and Java EE, which alternatives did you consider?

This was not a question of creativity or technology. We knew that we have to build up the thin web based applications. We also wanted to avoid the necessity to build native mobile apps besides usual desktop applications. Why? It was a luxury for us. (more…)

This site uses cookies to improve your experience. By using this site you agree to these cookies being set. More in our cookies policy

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close