【发布时间】:2012-05-31 20:49:19
【问题描述】:
我正在使用 fuseesb 作为我的 esb,我想在 activemq 中创建新消息,所以我正在这样做:
在卡拉夫:activemq:create-broker --name=myBroker
然后我明白了:
Creating file: @|green .../myBroker-broker.xml|
Default ActiveMQ Broker (myBroker) configuration file created at: .../myBroker-broker.xml
Please review the configuration and modify to suite your needs.
我看到文件已创建,但在 karaf 我看到了:
karaf@root> Exception in thread "SpringOsgiExtenderThread-26" java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:368)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
at java.lang.Thread.run(Thread.java:679)
我不知道它是什么...
你能帮帮我吗?
【问题讨论】:
-
这看起来像是一个可能的错误。您能否添加您正在使用的 Karaf 和 ActiveMQ 版本,如果您使用了某个功能,请添加您使用的 URI?另外,如果您正在使用一项功能,您加载了哪些功能?谢谢,斯科特 ES
-
我正在使用 Apache ServiceMix v4.4.1-fuse-06-03
标签: apache-camel activemq apache-servicemix fuseesb