由於在3 JMS錯誤發出https://github.com/gpc/jms/issues/27我已經添加到application.ymlGrails的發送消息
jms:
containers:
standard:
connectionFactoryBean: jmsConnectionFactory
adapters:
standard:
messageConverterBean: standardJmsMessageConverter
persistenceInterceptorBean: persistenceInterceptor
應用程序啓動,但是發送消息的應用程序時出現錯誤
org.springframework.beans。 factory.NoSuchBeanDefinitionException:否 bean名爲'standardJmsTemplate'的定義爲 org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:704) a噸 org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1175) 在 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284) 在 有機springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) 在 org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1054) 在 org.springframework.beans.factory。 BeanFactory $ getBean $ 3.call(Unknown Source)at grails.plugin.jms.JmsService.normalizeServiceCtx(JmsService.groovy:381) at sun.reflect.Ge neratedMethodAccessor1971.invoke(未知來源)在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在java.lang.reflect.Method.invoke(Method.java:498)在 org.codehaus.groovy.runtime .callsite.PogoMetaMethodSite $ PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210) 在 org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59) 在 org.codehaus.groovy.runtime.callsite .AbstractCallSite.callCurrentCurrent(AbstractCallSite.java:174) at grails.plugin.jms.JmsService.send(JmsService.groovy:147)at grails.plugin.jms.JmsService.send(JmsService.groovy)at grails.plugin .jms.JmsService $ send.call(Unkno WN源)
Grails的3.1.14 org.grails.plugins:JMS:2.0.0.RC1
我希望,錯誤可能由configureation解決