RESTEasy as a servlet filter

Posted by on May 21, 2013 in technology | 1 comment

So I’ve been (slowly) working on converting my budgeting app from Python/Django to Java. I really like Django, but this web app doesn’t really fit in the Django paradigm the way I initially thought. Oh well, it’s a good opportunity to do more programming.

Anyway, as I have been doing the migration I decided to use RESTEasy to do the URL mapping. I’m a big fan of pretty URLs for any site, and RESTEasy makes the whole process nice and easy (or so I thought).

I decided that the nice way to go was with a completely annotation based system (CDI with annotations and RESTEasy Path annotations). Unfortunately the RESTEasy documentation doesn’t do a good job of documenting how to run with both a servlet filter, and annotations (you’ll see their example web.xml snippet has the servlet filter with a JAX-RS Application class). The documentation does say that you can add a configuration switch to have RESTEasy scan for annotations, but it lists them as context-params for the servlet based approach.

After trying a number of different combinations without any luck, I went the debugging route. Slapping the RESTEasy source in my Eclipse project, I ran through the code to find where the configuration switches were loaded with the servlet filter. Luckily it didn’t take too long to find that context-params can be translated to init-params inside the filter element. This resulted in the following:


Read More

two months, really?

Posted by on Jul 24, 2010 in uncategorized | 1 comment

I would like to say that a lot has happened in the two months since my last post, and while I can say that thing have been great, not a whole lot has changed.

Things are still going well at work.  I’m getting new responsibilities all the time (which I love), and I’m really starting to get into the groove of things. I’m still enjoying my project and all the cool little side projects I get to do.  A good friend from MSU who worked with me at Jackson moved to Chicago recently, so that’s a bit of a bummer.

Still loving my new phone, which totally rocks.

Had central air installed at my place by the awesome Jim Horn (I hope that’s the right url), which is seriously nice.

I’m sure there’s more stuff in there, but I’m bored of writing this post already. oke bye.

Read More

to the powers that be

Posted by on May 25, 2010 in uncategorized | 0 comments

please bring a Chick-fil-A to Michigan.  Seriously, Michigan would be much better if there were Chick-fil-A’s everywhere.  Then, the slickdeals free spicy chicken sandwich on Friday would not have gone to waste for me.  I have many other requests, but this one is important…

Read More

YouTube made a mistake

Posted by on May 9, 2010 in life, news, thoughts, updates | 0 comments

As I’m sure you can guess, YouTube decided not to hire me.  While it does make the moving away decision much easier (and everyone that wants us to stay here much happier), I still think that YouTube made a mistake on me.

I found out Monday April 26th, and the following morning I wrote out a 1200+ word post explaining why I thought I was a good fit (yeah, I definitely didn’t post that).  While that might have made me feel a bit better, I’m sure that I’m the only person it would have helped.

Having had quite a bit of time to think about it, I still think that I would have fit well.  I have been a web developer for almost a decade (their main interface is a website), I know programming in Adobe Flash really well (hello?), and I’m all about Python (the language their backend is written in).  My only thought is that the interview process doesn’t do me justice.

Oh well, maybe I’m meant to stay in Lansing…

Read More

super awesomeness

Posted by on Mar 10, 2010 in uncategorized | 0 comments

A few weeks ago I bought a one pound bag of RedVines from Meijer.  Sadly, the ‘vines were ridiculously hard.

So, I sent a message on the RedVines site telling them what happened, and asking if their recipe had changed.

A day or so later, I received an email saying that they had not, in fact, changed their recipe.  The hardness was due to conditions during shipping that they were working on fixing.  They apologized for the bad experience and informed me that they were sending me a replacement product that would arrive in a couple of weeks.

Today I received said replacement product…

American Licorice Company wins 2 awards in my mind:

  1. The new licorice does in fact have perfect “hardness”
  2. Instead of replacing the one pound bag that I purchased, they sent me 3 one pound bags

Serious win.

Read More

scrubs: yes, it’s a show

Posted by on Feb 21, 2010 in fun/interesting | 4 comments

I’m not exactly sure what season I first started watching Scrubs in, but I’m going to guess somewhere around 1 or 2.

The first episode I watched I hated.

I’m sure it had something to do with the mood that I was in, because it wasn’t but a matter of weeks (or months) before I walked in on a marathon of Scrubs watching at the old Klan bachelor pad and fell in love.  Since that fateful moment, I have followed the show with bated breath.

I was definitely sad when I heard that the show was ending, and while the final episode was supremely awesome, I was even more sad after watching it.

Then came along what I will henceforth call the “bonus” season, which was aptly titled Scrubs med school.

This bonus season was definitely not as good as regular Scrubs, but I have been perfectly fine with that.  The bonus served a much greater and more important purpose than continuing the legacy of Scrubs.  It served to dull the pain of the end of 8 great years.

As the bonus season progressed the loss of the familiar faces, and my particular loss of interest, helped to ease me in to a world where JD and Turk would never again share their guy love in my living room.

This bonus season, while nothing in comparison to the real thing, has made me okay with the end.  For that fact alone, I consider it a success.

Read More