title: Grails 2.0.1 : async messaging: `jmsConnectionFactory` compilation error
body: <p>I have resource.groovy</p>
  
  <pre><code>beans = {
      jmsConnectionFactory(org.apache.activemq.ActiveMQConnectionFactory) { brokerURL = 'vm://localhost' }
  }
  </code></pre>
  
  <p>and on run it says</p>
  
  <pre><code> Running Grails application
  | Error 2012-02-24 18:02:13,490 [pool-6-thread-1] ERROR spring.GrailsRuntimeConfigurator  - [RuntimeConfiguration] Unable to load beans from resources.groovy
  Message: No such property: org for class: resources
     Line | Method
  -&gt;&gt;   3 | doCall                    in resources$_run_closure1
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  |   736 | invokeBeanDefiningClosure in grails.spring.BeanBuilder
  |   569 | beans . . . . . . . . . . in     ''
  |   736 | invokeBeanDefiningClosure in     ''
  |   569 | beans . . . . . . . . . . in     ''
  |   511 | invokeMethod              in     ''
  |   303 | innerRun . . . . . . . .  in java.util.concurrent.FutureTask$Sync
  |   138 | run                       in java.util.concurrent.FutureTask
  |   886 | runTask . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
  |   908 | run                       in     ''
  ^   662 | run . . . . . . . . . . . in java.lang.Thread
  | Error 2012-02-24 18:02:16,537 [pool-6-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: Error creating bean with name 'delayedCreateMessageJmsListenerContainer': Cannot resolve reference to bean 'jmsConnectionFactory' while setting bean property 'connectionFactory'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jmsConnectionFactory' is defined
  Message: Error creating bean with name 'delayedCreateMessageJmsListenerContainer': Cannot resolve reference to bean 'jmsConnectionFactory' while setting bean property 'connectionFactory'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jmsConnectionFactory' is defined
  </code></pre>
  
  <p>It worked all well before upgrade, after updating to 2.0.1 it failed with this error, I am using groovy compiler 1.8.6</p>