无法在TomEE中配置自定义ActiveMQ代理

无法在TomEE中配置自定义ActiveMQ代理

本文介绍了无法在TomEE中配置自定义ActiveMQ代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

直到现在,我在TomEE中使用默认的ActiveMQ配置。现在,我想打开调度程序支持,因此我将这些内容添加到tomee.xml:

 <资源id = MyJmsResourceAdapter type = ActiveMQResourceAdapter> 
BrokerXmlConfig =代理人:(tcp://127.0.0.1:61616)?usekahadb = true& persistent = true& schedulerSupport = true
< / Resource>

<资源id = MyJmsConnectionFactory type = javax.jms.ConnectionFactory>
ResourceAdapter = MyJmsResourceAdapter
< / Resource>

但是我收到以下错误消息:

有人可以帮我做什么吗?可惜我发现的有关在TomEE中配置ActiveMQ的每个文档都很糟糕,而且我无法弄清楚如何在TomEE内部打开调度程序支持

解决方案

问题在于,TomEE中ActiveMQ的基本目录是TomEE的bin文件夹,并且它不能被TomEE写入,因此TomEE无法为KahaDB创建文件夹。



在ActiveMQ创建必要的文件夹之后,出于安全原因,我已将bin文件夹的权限更改回原始状态。 / p>

Until now I used the default ActiveMQ configuration in TomEE. Now I would like to turn on scheduler support, so I added these things to tomee.xml:

<Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter">
    BrokerXmlConfig = broker:(tcp://127.0.0.1:61616)?usekahadb=true&amp;persistent=true&amp;schedulerSupport=true
</Resource>

<Resource id="MyJmsConnectionFactory" type="javax.jms.ConnectionFactory">
    ResourceAdapter = MyJmsResourceAdapter
</Resource>

But I get these error messages:

Can anyone help me what to do? Every documentation that I found about configuring ActiveMQ inside TomEE is sadly poor, and I cannot figure out how to turn on scheduler support inside TomEE.

解决方案

The problem was that the base directory for ActiveMQ inside TomEE is the TomEE's bin folder and it was not writeable by TomEE so TomEE could not create folders for KahaDB. Making bin writeable for tomee process solved the problem.

After ActiveMQ created necessary folders, I have changed permissions on bin folder back to the original state (for security reason).

这篇关于无法在TomEE中配置自定义ActiveMQ代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 02:56