Coming Up for Air

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.

Yum Pseudo-Transactions

Jason Lee 2012-09-19

If you follow me on Twitter , you may have seen that I've been looking for a good media player. This long, painful process involved installing project Foo, along with its 87 dependencies, only to see that I didn't like it, then running into the same thing with Bar and Baz. Now I have a ton of packages installed that I don't need, which will irritate me as I think of all the wasted disk space. This morning, I decided to give Cinnamon a try. After seeing its long list of dependencies, I decided to tackle that problem and (the sadly named) tx_yum was born.

Converting Many Images to One PDF

Jason Lee 2012-09-05

I recently had the need to convert several scanned images into one multi-page PDF. While there are probably tools to help do this manually, I knew that there was a good chance I'd have to do something like this again, quite possibly with a large number of images, so I did what any good geek would do: I scripted it. In this entry, I'll show how I went about that.

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