Groovy Spring DSL Constructor Argument

April 9th, 2010

I have been trying to create an inner class instance of a Spring constructor argument and have been looking at the Grails documentation that states Constructor arguments can be defined using parameters to each method that reside between the class of the bean and the last closure: (from http://www.grails.org/Spring+Bean+Builder) bb.beans { exampleBean(MyExampleBean, "firstArgument", 2) { [...]

  • Share/Bookmark

Read full article | 1 Comment »

Using WebServiceTemplate and HTTPClient to enable Webservice read timeout

April 9th, 2010

I was tasked to implement read timeouts in my Spring webservices. I need to be able to implement this on dozens of webservices fairly easy and be maintainable. I also wanted to use Groovy Spring DSL for my bean declarations, and have my timeout configurable, and Integration testable.

  • Share/Bookmark

Read full article | 1 Comment »

Using resources.groovy for Spring DSL with Environment switch

April 2nd, 2010

I was having issues trying to get my Spring DSL to operate in ./grails-app/spring/resources.groovy. I have been able to use XML formatting in resources.xml, but I wanted to leverage groovy as well as be able to replace certain beans based on environment such as using Mock objects during test.

  • Share/Bookmark

Read full article | 1 Comment »

Cannot create JDBC driver of class ” for connect URL ‘null’

March 17th, 2010

So I keep getting this error complaining about org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class ” for connect URL ‘null’ in a Hibernate DAO JUnit 4 test case I have and this is the full trace:

  • Share/Bookmark

Read full article | No Comments »

Cannot locate BeanDefinitionParser for element

September 29th, 2009

When I upgraded from Camel 2.0-SNAPSHOT to 2.0.0, while I was using Spring 2.5.6, I started getting the following errors on deployment: error: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionParser for element [jta-transaction-manager]

  • Share/Bookmark

Read full article | No Comments »