My new MacBook Pro!




Well I guess I have moved up to the big time. Since I have started my new position in Identity Management, they got me a new computer to work with. That computer being a nice, brand new, shinny MacBook Pro. As a long time Windows user I have finding the transition to the Mac‘s operating system a little challenging and exciting all at the same time. To keep my productivity up I am slowly migrating applications and setting up my new Mac while doing day to day processing on the old IBM T43 laptop. I can‘t wait to just make the transition and use my new machine.

I will have to say that the MacBook Pro really is tricked out with 4gb of ram, the look of a Delorean, and when the lights go out the key board lights up. How fun is that. I am looking forward to seeing how much I will love the Mac and is super fancy OS.



Posted on Jun 24, 2008 by Mike Jennings in Mike | 0 Comments | Permalink

Start a new job today!

I have been in the process of interviewing with the Identity Management Group at UNC-Chapel Hill. Well about two weeks ago I got the call from Human Resources asking me if I would like to take the position. Of course I said yes and today is my first day. I am excited about this new opportunity and can‘t wait to get my feet wet.

I feel that this is going to be a great opportunity for me. The Identity Management group has just purchased the Sun Identity Manager product to help with the provisioning of services across campus. The group is also in the process of putting together a new SSO system on campus based on Shibboleth and SAML.

Posted on Jun 16, 2008 by Mike Jennings in Mike | 0 Comments | Permalink

Changing The Name of a Template in Roller 4.0

I found a bug in Roller 4.0 today when I wanted to change the name of one of my templates. I had a template with the name of “about“ and wanted to change it to “About”. Doing this I got a error message saying:


The template about already exists.

It appears that the validation in the system is not doing a case sensitive name comparison, so the template name looks the same. To get around this, I just changed the name to “About2“ and clicked on save. The template name change worked just fine. Now I am able to go in and change the name one more time to “About” to get my desired result.

Posted on Jun 06, 2008 by Mike Jennings in Web | 0 Comments | Permalink

Is Phish on there way BACK?


On the heels of widespread rumors that the band held a conference call
last Friday, Prime Phish lyricist Tom Marshall told PopMatters.com that
“Trey wants to come back“ and “No one wants Phish back more than Trey“; that
he has written more than 15 songs with Trey over the last four months; and
that the two have “a new energy, a spark“ and are “bright-eyed and bushy
tailed“ and “like we‘re in 8th grade again”.

Full article can be read here .

Reading this article has finally given me some hope that I will, once again, get to see the greatest band alive, PHISH! I have missed Phish so much over the past few years, and have always dreamed about them getting back together. It looks like my dreams have come true. Now I wonder who got the Trampolines from Coventry and will they be shipping them back to the band? Here is a video clip of the boys on the trampolines at Coventry. I was there and was loving every minute of it.



Posted on Jun 06, 2008 by Mike Jennings in Mike | 0 Comments | Permalink

Using Spring 2.x to wire Model 1 Servlets

At work I am currently maintaining a older, Model 1 Servlet application. This application is working great in production, even though I think the overall back end design is about as pretty as the Elephant Man! I have always longed for better ways to add functionality to the code, and long for using Spring in parts of the applications.

Well recently I needed to migrate some Spring code from another application into this old one. My first thought is, oh crap, this is going to be interesting. Well things were interesting indeed, and for the positive. I found that there is a nice, clean way to integrate the Spring Framework with my current HTTP Servlets.

First I identified that I would like to have spring wire up some Database Calls in my LoginServlet. To do this I had to make a change to the web.xml to use the ContextLoaderListener class and load the applicaitonContext.xml file.

        <context-param>
          <param-name>contextConfigLocation</param-name>
          <param-value>
            /WEB-INF/applicationContext.xml
          </param-value>
        </context-param>
        
        <listener>
            <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener>
Now that these spring is setup to go, I have identified that the LoginServlet is going to be wired using some spring code. To do this I change my web.xml file to use the HttpRequestHandlerServlet in Spring for the LoginServlet servlet-class definition.
	<servlet>
		<servlet-name>LoginServlet</servlet-name> 
		<display-name>LoginServlet</display-name>
		<!-- servlet-class>edu.unc.ais.bs.onecard.servlets.LoginServlet</servlet-class -->
                <servlet-class>org.springframework.web.context.support.HttpRequestHandlerServlet</servlet-class>
	</servlet>
Next I need to reference the LoginServlet class that is in my application and have is wired with Spring. To do this I created a Spring bean in the applicationContext with the same id name as the servlet-name parameter in the web.xml.
   <bean id="LoginServlet" class="edu.unc.ais.bs.onecard.servlets.LoginServlet">
      <property name="hrEmpApptDataDAO" ref="hrEmpApptDataDAO"/>
      <property name="oneCardAccountDAO" ref="oneCardAccountDAO"/>
      <property name="oneCardSvcDAO" ref="oneCardSvcDAO"/>
   </bean>
The last piece is pretty easy, just go to LoginServlet class and implement the HttpRequestHandler as so.
public class LoginServlet implements HttpRequestHandler {
This will require you to add the handleRequest method to the servlet, which is what is called when you access the servlet from your applicaiton. The doGet and doPost, and other default methods are overridden and handled for you by default. That was it. Now I have this old servlet, which I can wire up and pass Spring JdbcTemplete objects to.

Posted on Jun 04, 2008 by Mike Jennings in Java | 0 Comments | Permalink