A noob's attempt on Google App Engine using Java and Maven part 2

In my last entry, I modified my Maven project so it can be deployed to Google App Engine. This time, I’m going to work on my actual application so I can finally have something to show to other people. Right now, my Spring web application works fine on Google App Engine. Let me go over the code that I have so far. I first made a bean called Manufacturer: 1 2 3 4 5 6 7 8 9 10 11 package com....

March 26, 2011 · 3 min · 629 words

A noob's attempt on Google App Engine using Java and Maven

Since I solved most of the problems that I encountered with Spring MVC, I decided to take it up a notch by using Google App Engine. If you haven’t heard about GAE, it’s basically a host for web applications that are built in Java or Python. Also, it’s an engine for building web applications (as you can see from the name). One of the benefits that you get from GAE is that your web application gets to be hosted by the same servers that power Google....

March 12, 2011 · 6 min · 1241 words

Bad start with Spring part 2 - Resolved

Last time, I was kind of frustrated as well as lazy about my problem. As a recap, I had a problem with manually injecting beans in Spring 3.0 because I tried doing it the old fashioned way. After a long time of reading and thinking, I realized that I’m having problems because I didn’t embrace the sudden transition I had with annotations. Since I’m the kind of person who embraces change, I decided to stop whining and use the auto wiring feature instead....

March 11, 2011 · 2 min · 297 words

Bad start with Spring part 2

Recently, I realized that Spring 2.5 was really old already. I was even called out for it: Terence why do you start with Spring 2.5 now when Spring 3 is already over a year old? – Sean Patrick Floyd Feb 24 at 10:50 The quote came from a comment in my question on StackOverflow. Anyway, I decided to try and use Spring 3.0 because of that. One of the new things that I encountered was the way Spring 3....

March 7, 2011 · 5 min · 1042 words

Bad start with Spring - Resolved

In my previous entry, I started to learn how to do simple CRUD operations using Spring-MVC’s JDBC feature. Unfortunately, it didn’t turn out to be as simple as I thought. So my problem was with this unit test that was failing because it returns an empty result set: 1 2 3 4 5 public void testGetCompany() { Company company = companyDao.getCompany(1); assertEquals("Benjo", company.getName()); } This is getCompany()’s logic:...

March 6, 2011 · 3 min · 445 words