我想将ActiveMQ代理配置为使用jaas身份验证插件。我知道这可以使用xml-configuration来完成,如下所示
<broker useJmx="false" persistent="false" xmlns="http://activemq.apache.org/schema/core" populateJMSXUserID="true">
<plugins>
<!-- use JAAS to authenticate using the login.config file on the classpath to configure JAAS -->
<jaasAuthenticationPlugin configuration="activemq-domain" />
</plugins>
</broker>。但是afaik,这也需要我把spring的东西带到类路径中,这是我想要避免的。可以通过其他方式启动代理插件吗
发布于 2012-12-31 06:26:17
您可以使用BrokerService从Java代码中启动一个activemq代理。您可以在相应的对象上调用各种配置方法。有关更多详细信息,请参阅http://activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.html。这个站点有一个jaas插件的例子。
https://stackoverflow.com/questions/14032164
复制相似问题