Tuesday, October 26, 2010

No Hibernate Session bound to thread

Problem:
I am converting an application that uses HibernateDaoSupport in the DAOs to use POJOs instead.
Each pojo now must autowire a sessionFactory in order to hook into hibernate.

I am getting the following error when i try to getSession() on my sessionFactory:


No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here

Solution:
add a OpenSessionInViewFilter to my web.xml and filter on * with it

Saturday, October 16, 2010

MLSPin google maps grease monkey script

I am looking at houses.
I am on the mlspin website which has addresses but no maps. I end up having to go look up these addresses in google maps.

This plugin adds a google map iframe on each listing page in mls pin.

download:
http://userscripts.org/scripts/show/88186

Runs on: http://vow.mlspin.com/clients/