Coming Up for Air

Oracle JDK and the Linux Alternatives System

Jason Lee 2013-01-15

For both work and fun, I run Linux. I'm also a Java guy, which poses some interesting challenges, as most Linux distributions have a long, sad tale regarding shipping Java. Things are a bit better, I guess, with OpenJDK, but I've always liked running the "real thing", which historically meant the Sun JDK, and now Oracle's JDK . At the moment, though, I'm running Linux Mint , so I get to use the tarball.

Most of the time that works fine, but for reasons I don't remember, OpenJDK was installed on my system, and now everything is using that (which is at Update 7, and not the recently released and more secure Update 11 that I want). I'd rather not monkey with changing PATH and all that, so I turned to the Linux alternatives system to handle things. Sadly, it wasn't quite that easy, as alternatives needs to know about your alternatives, so before I could change things, I had to educate it, which turned out be easier than I feared. With Java 7 Update 11 installed in /opt/java/jdk1.7.0_11 and symlinked from /opt/java/latest, I had to do two things.

Asynchronous JAX-RS

Jason Lee 2012-12-19

Recently, I had to add support for asynchronous REST calls to the GlassFish REST interface to satisfy some customer requirements. In process of doing so, I learned something pretty provides some sort of REST asynchrony, but I'm not sure what UPDATE #1: As noted in the comments, I know next to nothing about Atmosphere. I mention it here only as some weak attempt at completeness that is, in hind sight, a really bad choice), implementing an async REST resource with JAX-RS is really quite simple. In this post, we'll take a look at two different approaches to "asynchronous" REST.

Using Server Sent Events and the GlassFish REST Interface

Jason Lee 2012-12-10

Wikipedia defines Server-Sent Events as "a technology for providing push notifications from a server to a browser client in the form of DOM events. The Server-Sent Events EventSource API is now being standardized as part of HTML5 by the W3C." It's a great alternative to polling the server for updates. Long story short, thanks to the work of the Jersey team, we have "easy" access to this in GlassFish, and we've added support for it to our RESTful administration interface. Let's take a look at a quick sample.

Maven Project Version from the Command Line

Jason Lee 2012-10-30

A friend asked me today how to get a project's version out of a Maven POM file without having to read and parse it. A quick Google search brought up the answer , which I thought I'd share here.

Search

Quotes

Sample quote

Quote source

About

My name is Jason Lee. I am a software developer living in the middle of Oklahoma. I’ve been a professional developer since 1997, using a variety of languages, including Java, Javascript, PHP, Python, Delphi, and even a bit of C#. I currently work for Red Hat on the WildFly/EAP team, where, among other things, I maintain integrations for some MicroProfile specs, OpenTelemetry, Micrometer, Jakarta Faces, and Bean Validation. (Full resume here. LinkedIn profile)

I am the president of the Oklahoma City JUG, and an occasional speaker at the JUG and a variety of technical conferences.

On the personal side, I’m active in my church, and enjoy bass guitar, running, fishing, and a variety of martial arts. I’m also married to a beautiful woman, and have two boys, who, thankfully, look like their mother.

My Links

Publications